gentoo/net-misc/trurl/trurl-9999.ebuild
Sam James 7df386abd5
net-misc/trurl: restrict tests for now
They fail with >=net-misc/curl-8.15.

Bug: https://github.com/curl/trurl/issues/394
Signed-off-by: Sam James <sam@gentoo.org>
2025-08-11 14:29:35 +01:00

50 lines
1.1 KiB
Bash

# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
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/releases/download/${P}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64"
fi
LICENSE="curl"
SLOT="0"
IUSE="test"
# Tests fail w/ >=net-misc/curl-8.15
# https://github.com/curl/trurl/issues/394
RESTRICT="!test? ( 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
}