diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2024-09-20 10:05:32 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-22 12:08:20 +0100 |
commit | 7d981fd7985e46026edc69a1c6055dc4f6c97a40 (patch) | |
tree | 744c4be3f94a88c5f9fd1739289a4aa5705bedfc /net-misc | |
parent | media-libs/x265: build cli for native_abi only, fix bug 939909 (diff) | |
download | gentoo-7d981fd7985e46026edc69a1c6055dc4f6c97a40.tar.gz gentoo-7d981fd7985e46026edc69a1c6055dc4f6c97a40.tar.bz2 gentoo-7d981fd7985e46026edc69a1c6055dc4f6c97a40.zip |
net-misc/trurl: add 0.16
https://github.com/curl/trurl/releases/tag/trurl-0.16
Signed-off-by: Emanuele Torre <torreemanuele6@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38700
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/trurl/Manifest | 1 | ||||
-rw-r--r-- | net-misc/trurl/trurl-0.16.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/net-misc/trurl/Manifest b/net-misc/trurl/Manifest index 06eee8f0023a..909f70d23366 100644 --- a/net-misc/trurl/Manifest +++ b/net-misc/trurl/Manifest @@ -1,2 +1,3 @@ DIST trurl-0.14.tar.gz 47830 BLAKE2B 15be36ef5c5989cf15d3983827055c793f15ae59efe8e02cc2f55ad9b19c528bb568aacc0583590017a6d6a3a74db1bd6bd3e18d3fee1c7c7d86e71f503d57f7 SHA512 25c1a3035095065368c8a11547e1d918b6f688e293982895a7bc27d9e161c0193ceccfaa0c2440f5c42a8ba4d5176a3f6a4fb843f5fa573328ef9baf5a438165 DIST trurl-0.15.1.tar.gz 51397 BLAKE2B 41104b5e3b9bfbba17aaa829e5a0766879af963c73f5548d26eac8a80c0f8eb61da77de11a4dfd6321be522121f12ab239384e8e720d72564d4c841d395de0f2 SHA512 b2aabc77861686de137f0013c8782309bf04c0fa51a657384dca0d0f89aa0ca166d7de2c5d7c5c1ff63c1c4a5564e127658e2965dc4ab164939c1c4223f76eac +DIST trurl-0.16.tar.gz 54414 BLAKE2B ace93c0ec54e81131bed91a78092bb5a2768a92cf2dee763f29327221a2b5ac3f657c7500e1f1cb895a29c1dd73500c15140eaadede72a6ee57a31d7ebe5c414 SHA512 4411769ba36109dc0e0c27ff605b7b6eb9dc9da3ab53290dc0049f44d853f7363699a9e22716dbf4c2d912f5c0c1556ea0d14f55475f44b48ea2e320b00a75e7 diff --git a/net-misc/trurl/trurl-0.16.ebuild b/net-misc/trurl/trurl-0.16.ebuild new file mode 100644 index 000000000000..b27cb174ba1e --- /dev/null +++ b/net-misc/trurl/trurl-0.16.ebuild @@ -0,0 +1,49 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit toolchain-funcs python-any-r1 + +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 ~arm ~arm64" +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? ( ${PYTHON_DEPS} )" + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_compile() { + tc-export CC + export NDEBUG=1 + + default +} + +src_test() { + emake PYTHON3="${EPYTHON}" test +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install +} |