From ee67b712a8dbf167544a63486d289ef4c3590ea8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 10 Apr 2023 10:27:39 +0100 Subject: net-misc/trurl: add 0.4 Signed-off-by: Sam James --- net-misc/trurl/Manifest | 1 + net-misc/trurl/trurl-0.4.ebuild | 44 ++++++++++++++++++++++++++++++++++++++++ net-misc/trurl/trurl-9999.ebuild | 3 ++- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 net-misc/trurl/trurl-0.4.ebuild diff --git a/net-misc/trurl/Manifest b/net-misc/trurl/Manifest index 01260fdd3e92..d4fa4de2b366 100644 --- a/net-misc/trurl/Manifest +++ b/net-misc/trurl/Manifest @@ -1,2 +1,3 @@ DIST trurl-0.2.tar.gz 9095 BLAKE2B 1fab191158ca914c6a8e561095edc5329f7b565849dc1add85d17c05062f46fa82160bc6595c16e28a216821ffab7944edbce3be4a38895191f3c901ccef611f SHA512 e6ad68183acefb09985b453d0bdc7d0afe9e4c916c4e32fe67cee9afd23aa437e0b538cdc9456bc2ed93dc8996c9c64efeeff74a1415f044d0c1e52d0f5f00c7 DIST trurl-0.3.tar.gz 11622 BLAKE2B 013554669c2c9ed8fc8090977d3a729bacb0200078283785b5ff9526317b0923de99ce33747358dd643e977fd67e024182ca03ae8153c05a9c14ce050f6c20df SHA512 c7361bc49439219177e6150804ee665103d37b80145d308fd02a4260134bb098d937279cb8c23a6192f307f9464ab0f34a34997251fdff13db623a9765b90e0c +DIST trurl-0.4.tar.gz 23602 BLAKE2B c780fc52010f868fddbe1a06feb1ed1df627eb9ff8916d0212c8196c1efeb282b06900d2259dbaa4abdbc3c68002b1f3dfeb308c4ae2202578c40c112120b77c SHA512 7d106bf7dd39fb39316a9890bc562a5824dc046acfa50b97954e87ba455b479a2b86cfbf09a130dd39000abbc2e0fdc7038109410cf44c97812489d410693a01 diff --git a/net-misc/trurl/trurl-0.4.ebuild b/net-misc/trurl/trurl-0.4.ebuild new file mode 100644 index 000000000000..78443cfb2991 --- /dev/null +++ b/net-misc/trurl/trurl-0.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Command line tool for URL parsing and manipulation" +HOMEPAGE="https://curl.se/trurl/ https://daniel.haxx.se/blog/2023/04/03/introducing-trurl/" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/curl/trurl" + inherit git-r3 +else + SRC_URI="https://github.com/curl/trurl/archive/refs/tags/${P}.tar.gz" + S="${WORKDIR}"/${PN}-${P} + + KEYWORDS="~amd64" +fi + +LICENSE="curl" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# Older curls may work but not all features will be present +DEPEND=">=net-misc/curl-7.81.0" +RDEPEND="${DEPEND}" +BDEPEND=" + test? ( + dev-lang/perl + virtual/perl-JSON-PP + ) +" + +src_compile() { + tc-export CC + + default +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install +} diff --git a/net-misc/trurl/trurl-9999.ebuild b/net-misc/trurl/trurl-9999.ebuild index 5c9ebf0edda3..78443cfb2991 100644 --- a/net-misc/trurl/trurl-9999.ebuild +++ b/net-misc/trurl/trurl-9999.ebuild @@ -23,7 +23,8 @@ SLOT="0" IUSE="test" RESTRICT="!test? ( test )" -DEPEND=">=net-misc/curl-7.62.0" +# Older curls may work but not all features will be present +DEPEND=">=net-misc/curl-7.81.0" RDEPEND="${DEPEND}" BDEPEND=" test? ( -- cgit v1.2.3-65-gdbad