diff options
author | Sam James <sam@gentoo.org> | 2023-04-18 05:03:14 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-18 05:03:14 +0100 |
commit | 6aae086aadec1c30eb0186d54952548df1d7d41f (patch) | |
tree | 3fa37f00f2450e81c46bec78627a57cd8c7acb8d /net-misc/trurl/trurl-9999.ebuild | |
parent | net-misc/trurl: drop 0.2, 0.3 (diff) | |
download | gentoo-6aae086aadec1c30eb0186d54952548df1d7d41f.tar.gz gentoo-6aae086aadec1c30eb0186d54952548df1d7d41f.tar.bz2 gentoo-6aae086aadec1c30eb0186d54952548df1d7d41f.zip |
net-misc/trurl: add 0.5
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/trurl/trurl-9999.ebuild')
-rw-r--r-- | net-misc/trurl/trurl-9999.ebuild | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/net-misc/trurl/trurl-9999.ebuild b/net-misc/trurl/trurl-9999.ebuild index 78443cfb2991..fe0c58e18fdd 100644 --- a/net-misc/trurl/trurl-9999.ebuild +++ b/net-misc/trurl/trurl-9999.ebuild @@ -3,7 +3,8 @@ EAPI=8 -inherit toolchain-funcs +PYTHON_COMPAT=( python3_{9..11} ) +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/" @@ -26,12 +27,15 @@ 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 - ) -" +BDEPEND="test? ( ${PYTHON_DEPS} )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5-fix-makefile.patch +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} src_compile() { tc-export CC @@ -39,6 +43,10 @@ src_compile() { default } +src_test() { + emake PYTHON3="${EPYTHON}" test +} + src_install() { emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install } |