git: f001ef66d919 - main - misc/trurl: Add new port

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Fri, 28 Apr 2023 19:32:14 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f001ef66d9190ce02c6a11fb39a5ee4bb94117ff

commit f001ef66d9190ce02c6a11fb39a5ee4bb94117ff
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-04-05 12:11:49 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-04-28 19:31:28 +0000

    misc/trurl: Add new port
    
    trurl is a command line tool for URL parsing and manipulation.
    
    WWW:            https://github.com/curl/trurl
---
 misc/Makefile        |  1 +
 misc/trurl/Makefile  | 26 ++++++++++++++++++++++++++
 misc/trurl/distinfo  |  3 +++
 misc/trurl/pkg-descr |  3 +++
 4 files changed, 33 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index a095bd368e54..7d8034c8307b 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -556,6 +556,7 @@
     SUBDIR += tlci
     SUBDIR += toilet
     SUBDIR += translate
+    SUBDIR += trurl
     SUBDIR += ttyrec
     SUBDIR += tudu
     SUBDIR += tvbrowser
diff --git a/misc/trurl/Makefile b/misc/trurl/Makefile
new file mode 100644
index 000000000000..132c34bac63f
--- /dev/null
+++ b/misc/trurl/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	trurl
+DISTVERSION=	0.5
+CATEGORIES=	misc www
+
+MAINTAINER=	otis@FreeBSD.org
+COMMENT=	Command line tool for URL parsing and manipulation
+WWW=		https://github.com/curl/trurl
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libcurl.so:ftp/curl
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	curl
+GH_TAGNAME=	${PORTNAME}-${DISTVERSION}
+
+MAKE_ARGS=	CFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
+
+ALL_TARGET=	${PORTNAME}
+
+PLIST_FILES=	bin/trurl \
+		share/man/man1/trurl.1.gz
+
+.include <bsd.port.mk>
diff --git a/misc/trurl/distinfo b/misc/trurl/distinfo
new file mode 100644
index 000000000000..583a65ab7949
--- /dev/null
+++ b/misc/trurl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682699294
+SHA256 (curl-trurl-0.5-trurl-0.5_GH0.tar.gz) = b5c5600cd3533e208b720f13aa06de724270d1750406b41a22f48ce95c51844d
+SIZE (curl-trurl-0.5-trurl-0.5_GH0.tar.gz) = 28792
diff --git a/misc/trurl/pkg-descr b/misc/trurl/pkg-descr
new file mode 100644
index 000000000000..8d9d5a346674
--- /dev/null
+++ b/misc/trurl/pkg-descr
@@ -0,0 +1,3 @@
+Command line tool for URL parsing and manipulation.
+
+It can be used as a complementary tool with `curl'.