Changeset View
Changeset View
Standalone View
Standalone View
www/gohugo/Makefile
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | GH_TUPLE= \ | ||||
yosssi:ace:v0.0.5:yosssi_ace/vendor/github.com/yosssi/ace | yosssi:ace:v0.0.5:yosssi_ace/vendor/github.com/yosssi/ace | ||||
GO_BUILDFLAGS= -ldflags="\ | GO_BUILDFLAGS= -ldflags="\ | ||||
-s -w \ | -s -w \ | ||||
-X github.com/gohugoio/hugo/hugolib.BuildDate=${SOURCE_DATE_EPOCH:U${SOURCE_DATE_EPOCH_CMD:sh}} \ | -X github.com/gohugoio/hugo/hugolib.BuildDate=${SOURCE_DATE_EPOCH:U${SOURCE_DATE_EPOCH_CMD:sh}} \ | ||||
-X github.com/gohugoio/hugo/hugolib.CommitHash=${COMMIT_ID}" \ | -X github.com/gohugoio/hugo/hugolib.CommitHash=${COMMIT_ID}" \ | ||||
${BUILD_TAGS} | ${BUILD_TAGS} | ||||
SOURCE_DATE_EPOCH_CMD= date -r $$(grep TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') '+%FT%TZ%z' | |||||
COMMIT_ID= 253e5fdc699fe915305c3f685843dcd45f05b3c9 | |||||
OPTIONS_DEFINE= MANPAGES EXTENDED | OPTIONS_DEFINE= MANPAGES EXTENDED | ||||
OPTIONS_DEFAULT= MANPAGES EXTENDED | OPTIONS_DEFAULT= MANPAGES EXTENDED | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
EXTENDED_DESC= Enable SCSS/SASS support | EXTENDED_DESC= Enable SCSS/SASS support | ||||
EXTENDED_VARS= CGO_ENABLED=1 BUILD_TAGS="-tags extended" | EXTENDED_VARS= CGO_ENABLED=1 BUILD_TAGS="-tags extended" | ||||
EXTENDED_VARS_OFF= CGO_ENABLED=0 | EXTENDED_VARS_OFF= CGO_ENABLED=0 | ||||
PORTMANS= hugo-config.1 hugo-convert-toJSON.1 hugo-convert-toTOML.1 \ | PORTMANS= hugo-config.1 hugo-convert-toJSON.1 hugo-convert-toTOML.1 \ | ||||
hugo-convert-toYAML.1 hugo-convert.1 hugo-env.1 \ | hugo-convert-toYAML.1 hugo-convert.1 hugo-env.1 \ | ||||
hugo-gen-autocomplete.1 hugo-gen-chromastyles.1 \ | hugo-gen-autocomplete.1 hugo-gen-chromastyles.1 \ | ||||
hugo-gen-doc.1 hugo-gen-man.1 hugo-gen.1 \ | hugo-gen-doc.1 hugo-gen-man.1 hugo-gen.1 \ | ||||
hugo-import-jekyll.1 hugo-import.1 hugo-list-drafts.1 \ | hugo-import-jekyll.1 hugo-import.1 hugo-list-drafts.1 \ | ||||
hugo-list-expired.1 hugo-list-future.1 hugo-list.1 \ | hugo-list-expired.1 hugo-list-future.1 hugo-list.1 \ | ||||
hugo-new-site.1 hugo-new-theme.1 hugo-new.1 hugo-server.1 \ | hugo-new-site.1 hugo-new-theme.1 hugo-new.1 hugo-server.1 \ | ||||
hugo-version.1 hugo.1 | hugo-version.1 hugo.1 | ||||
.include <bsd.port.pre.mk> | |||||
SOURCE_DATE_EPOCH_CMD= date -r $$(grep TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') '+%FT%TZ%z' | |||||
COMMIT_ID= 253e5fdc699fe915305c3f685843dcd45f05b3c9 | |||||
tobik: I think this could use a short comment in the Makefile as to why it is after bsd.port.pre.mk. | |||||
do-build-MANPAGES-on: | do-build-MANPAGES-on: | ||||
@cd ${GO_WRKSRC} && ${GO_WRKDIR_BIN}/${PORTNAME} gen man --dir man/man1/ | @cd ${GO_WRKSRC} && ${GO_WRKDIR_BIN}/${PORTNAME} gen man --dir man/man1/ | ||||
do-install-MANPAGES-on: | do-install-MANPAGES-on: | ||||
.for i in ${PORTMANS} | .for i in ${PORTMANS} | ||||
${INSTALL_MAN} ${WRKSRC}/man/man1/$i ${STAGEDIR}/${PREFIX}/man/man1 | ${INSTALL_MAN} ${WRKSRC}/man/man1/$i ${STAGEDIR}/${PREFIX}/man/man1 | ||||
.endfor | .endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> |
I think this could use a short comment in the Makefile as to why it is after bsd.port.pre.mk.
I am not a big fan of grabbing TIMESTAMP from distinfo for this. I think the port should just set BuildDate to some static date that never changes. Recording the build date does not seem very important for the port and just makes it more complicated.