Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: remove or update devel/git-lfs
To:
Marco van Hulten <marco@hulten.org>
Cc:
ports@openbsd.org
Date:
Tue, 21 Oct 2025 16:08:23 +0100

Download raw body.

Thread
try this one instead. it produces a binary, at least...

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/git-lfs/Makefile,v
diff -u -p -r1.20 Makefile
--- Makefile	11 Mar 2022 18:50:06 -0000	1.20
+++ Makefile	21 Oct 2025 15:06:35 -0000
@@ -1,34 +1,49 @@
 COMMENT =		Git extension for versioning large files
 
-GH_PROJECT =		git-lfs
-GH_ACCOUNT =		git-lfs
-GH_TAGNAME =		v2.13.2
+V =			3.7.0
+DISTNAME =		git-lfs-$V
+DISTFILES =		git-lfs-v$V.tar.gz
+PKGNAME =		git-lfs-$V
 
 CATEGORIES =		devel
 
 HOMEPAGE =		https://git-lfs.github.com/
+SITES =			https://github.com/git-lfs/git-lfs/releases/download/v$V/
+
+# generated from "go mod tidy + go mod vendor", tar contains git-lfs-$V/vendor
+SITES.v =		https://spacehopper.org/mirrors/
+DISTFILES.v =		git-lfs-$V-vendor.tar.gz
 
 # MIT
 PERMIT_PACKAGE =	Yes
 
 WANTLIB +=		c pthread
 
-MODULES =		lang/go \
-			lang/ruby
-MODRUBY_BUILDDEP =	No
-MODRUBY_RUNDEP =	No
-
-BUILD_DEPENDS =		textproc/groff \
-			textproc/ruby-ronn
+MODULES =		lang/go
+BUILD_DEPENDS =		textproc/asciidoctor
 RUN_DEPENDS =		devel/git
+ALL_TARGET =		github.com/git-lfs/git-lfs/v3
+
+post-configure:
+	cd ${MODGO_WORKSPACE}/src; \
+	mkdir -p github.com/git-lfs/; \
+	mv ${ALL_TARGET}/vendor/github.com/git-lfs/* github.com/git-lfs/; \
+	rmdir ${ALL_TARGET}/vendor/github.com/git-lfs
+
+	cd ${MODGO_WORKSPACE}/src; \
+	mv ${ALL_TARGET}/vendor/github.com/* github.com/; \
+	rmdir ${ALL_TARGET}/vendor/github.com
+
+	cd ${MODGO_WORKSPACE}/src; \
+	mv ${ALL_TARGET}/vendor/* ./; \
+	rmdir ${ALL_TARGET}/vendor
 
-# Convert the manpages with ronn instead of mangen.go
 post-build:
-	cd ${WRKSRC}/docs/man/ && \
-		for m in *.ronn; do ronn${MODRUBY_BINREV} -r $$m; done
+	cd ${WRKSRC}/docs/man/; asciidoctor -b manpage *.adoc
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/docs/man/*.1 ${PREFIX}/man/man1/
 	${INSTALL_MAN} ${WRKSRC}/docs/man/*.5 ${PREFIX}/man/man5/
+	mv ${PREFIX}/bin/v3 ${PREFIX}/bin/git-lfs
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/git-lfs/distinfo,v
diff -u -p -r1.16 distinfo
--- distinfo	5 Jun 2021 13:08:03 -0000	1.16
+++ distinfo	21 Oct 2025 15:06:35 -0000
@@ -1,2 +1,4 @@
-SHA256 (git-lfs-2.13.2.tar.gz) = eC5idd+co3BzCUURLhaguMZLmBnwth+uUroeu8jc4tU=
-SIZE (git-lfs-2.13.2.tar.gz) = 2527736
+SHA256 (git-lfs-3.7.0-vendor.tar.gz) = hzwJMh7Om1qBYI85WWcL40C26YG33NlkVQEtC6wiO4o=
+SHA256 (git-lfs-v3.7.0.tar.gz) = 0Hi4OTUUxlxIXRYo5hBEm6BIr3RnSZEr0ILYGLJFQ0g=
+SIZE (git-lfs-3.7.0-vendor.tar.gz) = 3135300
+SIZE (git-lfs-v3.7.0.tar.gz) = 700986
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/git-lfs/pkg/PLIST,v
diff -u -p -r1.7 PLIST
--- pkg/PLIST	11 Mar 2022 18:50:06 -0000	1.7
+++ pkg/PLIST	21 Oct 2025 15:06:35 -0000
@@ -2,6 +2,7 @@
 @man man/man1/git-lfs-checkout.1
 @man man/man1/git-lfs-clean.1
 @man man/man1/git-lfs-clone.1
+@man man/man1/git-lfs-completion.1
 @man man/man1/git-lfs-dedup.1
 @man man/man1/git-lfs-env.1
 @man man/man1/git-lfs-ext.1
@@ -13,6 +14,7 @@
 @man man/man1/git-lfs-locks.1
 @man man/man1/git-lfs-logs.1
 @man man/man1/git-lfs-ls-files.1
+@man man/man1/git-lfs-merge-driver.1
 @man man/man1/git-lfs-migrate.1
 @man man/man1/git-lfs-pointer.1
 @man man/man1/git-lfs-post-checkout.1