From 7288c6e5fa05acddbf692a5187d925ef85662b46 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Apr 2023 11:55:01 +0100 Subject: gentoo auto-resync : 18:04:2023 - 11:55:01 --- net-misc/trurl/trurl-9999.ebuild | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'net-misc/trurl/trurl-9999.ebuild') 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 } -- cgit v1.2.3