git: a1761023a003 - main - devel/got: update to 0.98

From: Christian Weisgerber <naddy_at_FreeBSD.org>
Date: Tue, 23 Apr 2024 14:08:12 UTC
The branch main has been updated by naddy:

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

commit a1761023a003d8f3faddbae018b2a22993bac4b8
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2024-04-23 14:06:26 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2024-04-23 14:06:26 +0000

    devel/got: update to 0.98
    
    User-visible changes:
    - speed up got tag -l by caching timestamps
    - make 'got ref -l' output consistent when packed references exist
    - make 'got ref -l' work consistently when a reference argument is given
    - add log -t option which enables topological sorting of commits
    - make 'got rebase' find a merge base with topological sorting if needed
    - make 'got status' display interrupted rebase, histedit, and merge operations
    - add http clone/fetch support using a new got-fetch-http helper
    - require -R option for staging or unstaging directory contents
    - got patch: fix applying on empty files
    
    HTTP(S) clone/fetch requires the "smart" Git protocol.  It works with
    GitHub, Codeberg, Savannah.  Also git.freebsd.org, but you should use
    anon-ssh there.
---
 devel/got/Makefile  | 17 ++++++++++++++---
 devel/got/distinfo  |  6 +++---
 devel/got/pkg-plist |  1 +
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/devel/got/Makefile b/devel/got/Makefile
index cc9f2fcc79d8..3ea370244689 100644
--- a/devel/got/Makefile
+++ b/devel/got/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	got
-DISTVERSION=	0.97
+DISTVERSION=	0.98
 CATEGORIES=	devel
 MASTER_SITES=	https://gameoftrees.org/releases/
 
@@ -10,7 +10,7 @@ WWW=		https://gameoftrees.org
 LICENSE=	ISCL
 LICENSE_FILE=	${WRKSRC}/LICENCE
 
-USES=		uidfix
+USES=		localbase:ldflags uidfix
 
 CONFLICTS_INSTALL=	p5-App-GitGot
 
@@ -27,8 +27,19 @@ post-extract:
 # The regression test suite requires:
 #  installed got
 #  installed git
+#  installed perl and HTTP::Daemon
 #  ssh to 127.0.0.1
 regress:
 	@(cd ${WRKSRC}/regress && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} regress)
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# When using LibreSSL use its own libtls, but when using OpenSSL
+# use libtls from libretls.
+.if ${SSL_DEFAULT:Mlibressl*}
+#	/* empty */
+.else
+LIB_DEPENDS+=	libtls.so:security/libretls
+.endif # SSL_DEFAULT
+
+.include <bsd.port.post.mk>
diff --git a/devel/got/distinfo b/devel/got/distinfo
index 2c439e4c3f8b..b9e3f9a5be79 100644
--- a/devel/got/distinfo
+++ b/devel/got/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1710146453
-SHA256 (got-0.97.tar.gz) = 00b992ba66042514f36cb2b396c014ad3a6ef31e24a155ac628d86fde52a7e4e
-SIZE (got-0.97.tar.gz) = 926936
+TIMESTAMP = 1713879270
+SHA256 (got-0.98.tar.gz) = 1ff7ec010b62413afb3e88d57ea52e67788b2ccbd2078ad0156df73c099759da
+SIZE (got-0.98.tar.gz) = 971797
diff --git a/devel/got/pkg-plist b/devel/got/pkg-plist
index 4614cdf0b9e1..5fd6c3f4a51f 100644
--- a/devel/got/pkg-plist
+++ b/devel/got/pkg-plist
@@ -1,6 +1,7 @@
 bin/got
 bin/gotadmin
 bin/tog
+libexec/got-fetch-http
 libexec/got-fetch-pack
 libexec/got-index-pack
 libexec/got-read-blob