blob: fe0c58e18fdd5b788e4c2aa22e4c30333b42d93c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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/"
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? ( ${PYTHON_DEPS} )"
PATCHES=(
"${FILESDIR}"/${PN}-0.5-fix-makefile.patch
)
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_compile() {
tc-export CC
default
}
src_test() {
emake PYTHON3="${EPYTHON}" test
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
}
|