diff options
author | egypcio <egypcio@FreeBSD.org> | 2018-11-15 18:54:05 +0800 |
---|---|---|
committer | egypcio <egypcio@FreeBSD.org> | 2018-11-15 18:54:05 +0800 |
commit | 1341ac2b0c0966a5940204c9924a1c5b6bad88f0 (patch) | |
tree | 2e9523a749ebfde0da4f26cf321b0750cb8d6c6e /devel/git-lfs | |
parent | 54fad9dfb70790f84e7a25b1abead9cb87b02a40 (diff) | |
download | freebsd-ports-gnome-1341ac2b0c0966a5940204c9924a1c5b6bad88f0.tar.gz freebsd-ports-gnome-1341ac2b0c0966a5940204c9924a1c5b6bad88f0.tar.zst freebsd-ports-gnome-1341ac2b0c0966a5940204c9924a1c5b6bad88f0.zip |
devel/git-lfs: update to v2.6.0
- adopted the port;
- made better use of port's Go framework;
- removed 'shells/bash' and 'devel/gmake' from BUILD_DEPENDS;
- added 'devel/git' to RUN_DEPENDS;
- added 'pkg-message' with info from upstream on how to setup LFS;
- added new 'MANPAGES' option.
Approved by: araujo (mentor), mat
Differential Revision: https://reviews.freebsd.org/D17904
Diffstat (limited to 'devel/git-lfs')
-rw-r--r-- | devel/git-lfs/Makefile | 32 | ||||
-rw-r--r-- | devel/git-lfs/distinfo | 10 | ||||
-rw-r--r-- | devel/git-lfs/pkg-message | 22 | ||||
-rw-r--r-- | devel/git-lfs/pkg-plist | 31 |
4 files changed, 78 insertions, 17 deletions
diff --git a/devel/git-lfs/Makefile b/devel/git-lfs/Makefile index 81abc4096510..bae48e8a2cf7 100644 --- a/devel/git-lfs/Makefile +++ b/devel/git-lfs/Makefile @@ -2,32 +2,36 @@ PORTNAME= git-lfs DISTVERSIONPREFIX= v -DISTVERSION= 2.5.2 +DISTVERSION= 2.6.0 CATEGORIES= devel -MAINTAINER= ports@FreeBSD.org +MAINTAINER= egypcio@googlemail.com COMMENT= Git extension for versioning large files LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md -BUILD_DEPENDS= bash:shells/bash +RUN_DEPENDS= git:devel/git -USES= go gmake +USES= go USE_GITHUB= yes -PLIST_FILES= bin/git-lfs + +GH_TUPLE= davecgh:go-spew:d8f796a:davecgh_spew/vendor/github.com/davecgh/go-spew \ + pmezard:go-difflib:792786c:pmezard_difflib/vendor/github.com/pmezard/go-difflib GO_PKGNAME= github.com/${PORTNAME}/${PORTNAME} -do-build: - @cd ${GO_WRKSRC} && ${MKDIR} ${WRKSRC}/.tmp && \ - ${SETENV} ${MAKE_ENV} ${GO_ENV} \ - TMPDIR=${WRKSRC}/.tmp GOARCH=${GOARCH} GOOS="freebsd" \ - VERSION="" GIT_LFS_SHA="" GO=${GO_CMD} \ - ${SH} -c "${GO_CMD} generate ${GO_PKGNAME}/commands && \ - ${MAKE_CMD} bin/git-lfs" +OPTIONS_DEFINE= MANPAGES +OPTIONS_DEFAULT= MANPAGES +OPTIONS_SUB= yes + +MANPAGES_BUILD_DEPENDS= ronn:textproc/rubygem-ronn + +post-build-MANPAGES-on: + cd ${GO_WRKSRC}/docs/man && ${LOCALBASE}/bin/ronn -r *.ronn -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/git-lfs ${STAGEDIR}${PREFIX}/bin/git-lfs +post-install-MANPAGES-on: + ${INSTALL_MAN} ${GO_WRKSRC}/docs/man/*.1 ${STAGEDIR}${LOCALBASE}/man/man1 + ${INSTALL_MAN} ${GO_WRKSRC}/docs/man/*.5 ${STAGEDIR}${LOCALBASE}/man/man5 .include <bsd.port.mk> diff --git a/devel/git-lfs/distinfo b/devel/git-lfs/distinfo index 99f813a51272..96587daa5deb 100644 --- a/devel/git-lfs/distinfo +++ b/devel/git-lfs/distinfo @@ -1,3 +1,7 @@ -TIMESTAMP = 1537290659 -SHA256 (git-lfs-git-lfs-v2.5.2_GH0.tar.gz) = 0ab21f0f9b6c40acd9748a1669f1023ef38f913d8be83bbf7b7c7d983bd3c4d1 -SIZE (git-lfs-git-lfs-v2.5.2_GH0.tar.gz) = 947150 +TIMESTAMP = 1541665734 +SHA256 (git-lfs-git-lfs-v2.6.0_GH0.tar.gz) = e75b361d828d7b6e9ba537137d5243fa1e000a20686cddec2775b533a6b08f01 +SIZE (git-lfs-git-lfs-v2.6.0_GH0.tar.gz) = 1605203 +SHA256 (davecgh-go-spew-d8f796a_GH0.tar.gz) = d009b3cf2f72f26e6b79371cd1220bfd0cccdc94fa0f538f6c1ac1df2275bd79 +SIZE (davecgh-go-spew-d8f796a_GH0.tar.gz) = 42167 +SHA256 (pmezard-go-difflib-792786c_GH0.tar.gz) = 7c2a6d7ea0700411ba7d13865230c03bd6734d3ff6c213357bda121f5bb707fb +SIZE (pmezard-go-difflib-792786c_GH0.tar.gz) = 11401 diff --git a/devel/git-lfs/pkg-message b/devel/git-lfs/pkg-message new file mode 100644 index 000000000000..e667e2877fe4 --- /dev/null +++ b/devel/git-lfs/pkg-message @@ -0,0 +1,22 @@ +To get started with Git LFS, the following commands can be used: + + 1. Setup Git LFS on your system. You only have to do this once per + repository per machine: + + $ git lfs install + + 2. Choose the type of files you want to track, for examples all ISO + images, with git lfs track: + + $ git lfs track "*.iso" + + 3. The above stores this information in gitattributes(5) files, so + that file need to be added to the repository: + + $ git add .gitattributes + + 4. Commit, push and work with the files normally: + + $ git add file.iso + $ git commit -m "Add disk image" + $ git push diff --git a/devel/git-lfs/pkg-plist b/devel/git-lfs/pkg-plist new file mode 100644 index 000000000000..44d322cd3049 --- /dev/null +++ b/devel/git-lfs/pkg-plist @@ -0,0 +1,31 @@ +bin/git-lfs +%%MANPAGES%%man/man1/git-lfs-checkout.1.gz +%%MANPAGES%%man/man1/git-lfs-clean.1.gz +%%MANPAGES%%man/man1/git-lfs-clone.1.gz +%%MANPAGES%%man/man1/git-lfs-env.1.gz +%%MANPAGES%%man/man1/git-lfs-ext.1.gz +%%MANPAGES%%man/man1/git-lfs-fetch.1.gz +%%MANPAGES%%man/man1/git-lfs-filter-process.1.gz +%%MANPAGES%%man/man1/git-lfs-fsck.1.gz +%%MANPAGES%%man/man1/git-lfs-install.1.gz +%%MANPAGES%%man/man1/git-lfs-lock.1.gz +%%MANPAGES%%man/man1/git-lfs-locks.1.gz +%%MANPAGES%%man/man1/git-lfs-logs.1.gz +%%MANPAGES%%man/man1/git-lfs-ls-files.1.gz +%%MANPAGES%%man/man1/git-lfs-migrate.1.gz +%%MANPAGES%%man/man1/git-lfs-pointer.1.gz +%%MANPAGES%%man/man1/git-lfs-post-checkout.1.gz +%%MANPAGES%%man/man1/git-lfs-post-merge.1.gz +%%MANPAGES%%man/man1/git-lfs-pre-push.1.gz +%%MANPAGES%%man/man1/git-lfs-prune.1.gz +%%MANPAGES%%man/man1/git-lfs-pull.1.gz +%%MANPAGES%%man/man1/git-lfs-push.1.gz +%%MANPAGES%%man/man1/git-lfs-smudge.1.gz +%%MANPAGES%%man/man1/git-lfs-status.1.gz +%%MANPAGES%%man/man1/git-lfs-track.1.gz +%%MANPAGES%%man/man1/git-lfs-uninstall.1.gz +%%MANPAGES%%man/man1/git-lfs-unlock.1.gz +%%MANPAGES%%man/man1/git-lfs-untrack.1.gz +%%MANPAGES%%man/man1/git-lfs-update.1.gz +%%MANPAGES%%man/man1/git-lfs.1.gz +%%MANPAGES%%man/man5/git-lfs-config.5.gz |