summaryrefslogtreecommitdiff
path: root/net-misc/trurl/trurl-9999.ebuild
blob: d746c034e362e28db81a3bc90eda2dab2c8af75b (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
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Command line tool for URL parsing and manipulation"
HOMEPAGE="https://daniel.haxx.se/blog/2023/04/03/introducing-trurl/ https://github.com/curl/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 )"

DEPEND=">=net-misc/curl-7.62.0"
RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-lang/perl )"

src_compile() {
	tc-export CC

	default
}

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
}