summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-03 23:04:54 +0100
committerSam James <sam@gentoo.org>2023-04-03 23:05:35 +0100
commitbd10c614994c083dd8087e4b77008c3e60353ff8 (patch)
tree365b77dc61a0a62d446f985075990eee6aaf5392 /net-misc/trurl
parentnet-misc/ytmdl: Stabilize 2023.2.28 amd64, #903740 (diff)
downloadgentoo-bd10c614994c083dd8087e4b77008c3e60353ff8.tar.gz
gentoo-bd10c614994c083dd8087e4b77008c3e60353ff8.tar.bz2
gentoo-bd10c614994c083dd8087e4b77008c3e60353ff8.zip
net-misc/trurl: new package, add 0.2, add 9999
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/trurl')
-rw-r--r--net-misc/trurl/Manifest1
-rw-r--r--net-misc/trurl/metadata.xml11
-rw-r--r--net-misc/trurl/trurl-0.2.ebuild38
-rw-r--r--net-misc/trurl/trurl-9999.ebuild38
4 files changed, 88 insertions, 0 deletions
diff --git a/net-misc/trurl/Manifest b/net-misc/trurl/Manifest
new file mode 100644
index 000000000000..47c21657781a
--- /dev/null
+++ b/net-misc/trurl/Manifest
@@ -0,0 +1 @@
+DIST trurl-0.2.tar.gz 9095 BLAKE2B 1fab191158ca914c6a8e561095edc5329f7b565849dc1add85d17c05062f46fa82160bc6595c16e28a216821ffab7944edbce3be4a38895191f3c901ccef611f SHA512 e6ad68183acefb09985b453d0bdc7d0afe9e4c916c4e32fe67cee9afd23aa437e0b538cdc9456bc2ed93dc8996c9c64efeeff74a1415f044d0c1e52d0f5f00c7
diff --git a/net-misc/trurl/metadata.xml b/net-misc/trurl/metadata.xml
new file mode 100644
index 000000000000..9c4ccfbaf759
--- /dev/null
+++ b/net-misc/trurl/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">curl/trurl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/trurl/trurl-0.2.ebuild b/net-misc/trurl/trurl-0.2.ebuild
new file mode 100644
index 000000000000..d746c034e362
--- /dev/null
+++ b/net-misc/trurl/trurl-0.2.ebuild
@@ -0,0 +1,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
+}
diff --git a/net-misc/trurl/trurl-9999.ebuild b/net-misc/trurl/trurl-9999.ebuild
new file mode 100644
index 000000000000..d746c034e362
--- /dev/null
+++ b/net-misc/trurl/trurl-9999.ebuild
@@ -0,0 +1,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
+}