devel/git-filter-repo: Use example 18 in the handbook as a template

With this approach, the distfile fetched from GH created a WRKSRC name
not expected by ports plumbing. We also need to Adjust WRKSRC to match
the extracted directory name from the tarball.

Reported by:	diizzy
This commit is contained in:
Cy Schubert 2024-10-21 16:01:49 -07:00
parent 9cd03fae4c
commit db5655d043

View file

@ -2,12 +2,14 @@ PORTNAME= git-filter-repo
DISTVERSIONPREFIX= v DISTVERSIONPREFIX= v
DISTVERSION= 2.45.0 DISTVERSION= 2.45.0
PORTREVISION= 1 PORTREVISION= 1
DISTVERSIONSUFFIX= -a9093a6
CATEGORIES= devel CATEGORIES= devel
MAINTAINER= cy@FreeBSD.org MAINTAINER= cy@FreeBSD.org
COMMENT= git filter-repo is a versatile tool for rewriting history COMMENT= git filter-repo is a versatile tool for rewriting history
WWW= https://github.com/newren/git-filter-repo WWW= https://github.com/newren/git-filter-repo
WRKSRC= ${WRKDIR}/${PORTNAME}${DISTVERSIONSUFFIX}
LICENSE= MIT LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING.mit LICENSE_FILE= ${WRKSRC}/COPYING.mit
@ -21,7 +23,6 @@ SHEBANG_FILES= git-filter-repo
USE_GITHUB= yes USE_GITHUB= yes
GH_ACCOUNT= newren GH_ACCOUNT= newren
GH_TAGNAME= a9093a6
NO_BUILD= yes NO_BUILD= yes
NO_ARCH= yes NO_ARCH= yes