git: 8938ccc47ba3 - main - devel/gcli: update to 2.5.0

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 16 Sep 2024 20:20:03 UTC
The branch main has been updated by fuz:

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

commit 8938ccc47ba3ecd7b6e7d766ef857a7798e39734
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-09-09 22:06:44 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-09-16 20:14:14 +0000

    devel/gcli: update to 2.5.0
    
     - refactor port for new build system
     - libgcli is no longer shipped
     - can now leverage libedit or readline
     - can now depend on textproc/lowdown
    
    Changelog: https://lists.sr.ht/~herrhotzenplotz/gcli-announce/%3CZsyLOQM5PWINzHhH@hades%3E
    
    PR:             281138
    Reported by:    Nico Sonack <nsonack@herrhotzenplotz.de>
---
 devel/gcli/Makefile  | 26 ++++++++++++++++++++------
 devel/gcli/distinfo  |  6 +++---
 devel/gcli/pkg-plist | 18 +-----------------
 3 files changed, 24 insertions(+), 26 deletions(-)

diff --git a/devel/gcli/Makefile b/devel/gcli/Makefile
index aef8221f342f..723fd96b0227 100644
--- a/devel/gcli/Makefile
+++ b/devel/gcli/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	gcli
-DISTVERSION=	2.3.0
+DISTVERSION=	2.5.0
 CATEGORIES=	devel net
 MASTER_SITES=	https://herrhotzenplotz.de/gcli/releases/gcli-${DISTVERSION}/
 
@@ -13,16 +13,30 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libcurl.so:ftp/curl
 TEST_DEPENDS=	kyua:devel/kyua
 
-USES=		libtool pathfix pkgconfig tar:xz
+USES=		libtool pathfix pkgconfig ssl tar:xz
 
-GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
+HAS_CONFIGURE=	yes
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS=	--debug
+.else
+CONFIGURE_ARGS=	--release
+.endif
 TEST_TARGET=	check
 
-OPTIONS_DEFINE=	TEST
+OPTIONS_DEFINE=	LOWDOWN TEST
+OPTIONS_DEFAULT=	LIBEDIT LOWDOWN
+OPTIONS_RADIO=	LINEEDIT
+OPTIONS_RADIO_LINEEDIT=	LIBEDIT READLINE
+LIBEDIT_USES=		libedit
+LIBEDIT_CONFIGURE_ENABLE=	libedit
+LOWDOWN_LIB_DEPENDS=	liblowdown.so:textproc/lowdown
+LOWDOWN_CONFIGURE_ENABLE=	liblowdown
+LOWDOWN_DESC=		pretty-print Markdown using textproc/lowdown
+READLINE_USES=		readline
+READLINE_CONFIGURE_ENABLE=	libreadline
 TEST_LIB_DEPENDS=	libatf-c.so:devel/atf
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgcli.so
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gcli
 
 .include <bsd.port.mk>
diff --git a/devel/gcli/distinfo b/devel/gcli/distinfo
index a256c53c554b..3818851e135e 100644
--- a/devel/gcli/distinfo
+++ b/devel/gcli/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1711582809
-SHA256 (gcli-2.3.0.tar.xz) = 8c7b86fdc8bfda92ef5b6fb707cd6e2c5d4252bec09a8a37e749de5987cdb4bc
-SIZE (gcli-2.3.0.tar.xz) = 398128
+TIMESTAMP = 1725918182
+SHA256 (gcli-2.5.0.tar.xz) = 05f6f36b443aeb046b82ae46ea45286c9b24c0f00922c783bbf640ffec80ee75
+SIZE (gcli-2.5.0.tar.xz) = 364056
diff --git a/devel/gcli/pkg-plist b/devel/gcli/pkg-plist
index 28622e4ae8d3..71dae9ba923c 100644
--- a/devel/gcli/pkg-plist
+++ b/devel/gcli/pkg-plist
@@ -1,21 +1,4 @@
 bin/gcli
-include/gcli/comments.h
-include/gcli/curl.h
-include/gcli/forks.h
-include/gcli/gcli.h
-include/gcli/gitlab/snippets.h
-include/gcli/issues.h
-include/gcli/labels.h
-include/gcli/milestones.h
-include/gcli/pulls.h
-include/gcli/repos.h
-include/gcli/sshkeys.h
-include/gcli/status.h
-lib/libgcli.a
-lib/libgcli.so
-lib/libgcli.so.0
-lib/libgcli.so.0.0.0
-libdata/pkgconfig/libgcli.pc
 share/man/man1/gcli-api.1.gz
 share/man/man1/gcli-comment.1.gz
 share/man/man1/gcli-config.1.gz
@@ -25,6 +8,7 @@ share/man/man1/gcli-issues.1.gz
 share/man/man1/gcli-labels.1.gz
 share/man/man1/gcli-milestones.1.gz
 share/man/man1/gcli-pipelines.1.gz
+share/man/man1/gcli-pulls-review.1.gz
 share/man/man1/gcli-pulls.1.gz
 share/man/man1/gcli-releases.1.gz
 share/man/man1/gcli-repos.1.gz