Skip to content

Commit

Permalink
devel/git-filter-repo-devel: Add new port
Browse files Browse the repository at this point in the history
devel/git-filter-repo-devel tracks git-filter-repo development. It
includes fixes not yet available in the latest release. Most
specifically bug #261, opened by myself, that results in the loss
of files.
  • Loading branch information
cschuber committed Oct 21, 2024
1 parent 9c84b1d commit 077bf08
Show file tree
Hide file tree
Showing 7 changed files with 2,468 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@
SUBDIR += git-delta
SUBDIR += git-extras
SUBDIR += git-filter-repo
SUBDIR += git-filter-repo-devel
SUBDIR += git-gui
SUBDIR += git-lab
SUBDIR += git-lfs
Expand Down
55 changes: 55 additions & 0 deletions devel/git-filter-repo-devel/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
PORTNAME= git-filter-repo
PORTVERSION= ${GFR_COMMIT_DATE}
CATEGORIES= devel
PKGNAMESUFFIX= -devel

MAINTAINER= [email protected]
COMMENT= git filter-repo is a versatile tool for rewriting history
WWW= https://github.com/newren/git-filter-repo

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING.mit

CONFLICTS= git-filter-repo-[0-9]*

RUN_DEPENDS= git:devel/git

USES= python shebangfix

SHEBANG_FILES= git-filter-repo

USE_GITHUB= yes
GH_ACCOUNT= newren
GH_TAGNAME= a9093a6
GFR_COMMIT_DATE= 20241021

NO_BUILD= yes
NO_ARCH= yes

#
# XXX: The man page only exists in the upstream docs branch. Unfortunately
# there is no clean way to extract just one file from a different
# upstream branch. Therefore we include it in files. To discover
# which version of the git-filter-repo.1 file in the docs branch
# corresponds with the extracted tag,
#
# - git clone https://github.com/newren/git-filter-repo.git
# - git log, looking for the current tag's hash.
# - git switch docs
# - git log and look for the matching hash in the commit log.
# - git checkout HASH
# - copy the file to the files subdirectory of this port
#
# Until a better approach can be discovered.
#
post-extract:
@${MKDIR} ${WRKSRC}/Documentation/man1;
${CP} ${FILESDIR}/git-filter-repo.1.in ${WRKSRC}/Documentation/man1/git-filter-repo.1

do-install:
cd ${WRKSRC}; \
${MKDIR} ${STAGEDIR}/${PREFIX}/libexec/git-core; \
${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR}; \
${MAKE} prefix=${STAGEDIR}/${PREFIX} pythondir=${STAGEDIR}/${PYTHON_SITELIBDIR} install

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/git-filter-repo-devel/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1729542272
SHA256 (newren-git-filter-repo-20241021-a9093a6_GH0.tar.gz) = 553f4f153ac40dc1c8e81d558b2d7ff25474c1f720e63038b52a4c77da97eed4
SIZE (newren-git-filter-repo-20241021-a9093a6_GH0.tar.gz) = 180295
Loading

0 comments on commit 077bf08

Please sign in to comment.