Date: Tue, 3 Jan 2017 12:50:19 +0000 (UTC) From: "Vanilla I. Shu" <vanilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r430463 - head/www/gohugo Message-ID: <201701031250.v03CoJIx084216@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vanilla Date: Tue Jan 3 12:50:18 2017 New Revision: 430463 URL: https://svnweb.freebsd.org/changeset/ports/430463 Log: Handle manpages in correct way. Submitted by: mat@ Modified: head/www/gohugo/Makefile head/www/gohugo/pkg-plist Modified: head/www/gohugo/Makefile ============================================================================== --- head/www/gohugo/Makefile Tue Jan 3 12:49:39 2017 (r430462) +++ head/www/gohugo/Makefile Tue Jan 3 12:50:18 2017 (r430463) @@ -2,6 +2,7 @@ PORTNAME= hugo PORTVERSION= 0.18.1 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= www PKGNAMEPREFIX= go @@ -56,22 +57,21 @@ GH_TUPLE= eknkc:amber:9be5e8a:amber/src/ OPTIONS_DEFINE= MANPAGES MANPAGES_DESC= Build and/or install manual pages +OPTIONS_SUB= MANPAGES OPTIONS_DEFAULT= MANPAGES -.include <bsd.port.options.mk> - STRIP= # stripping can break go binaries do-build: @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} && ${SETENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME} -.if ${PORT_OPTIONS:MMANPAGES} + +do-build-MANPAGES-on: @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} && ./bin/${PORTNAME} gen man --dir man/man1/ -.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME} -.if ${PORT_OPTIONS:MMANPAGES} +do-install-MANPAGES-on: .for i in hugo-benchmark.1 \ hugo-config.1 \ hugo-convert-toJSON.1 \ @@ -98,6 +98,5 @@ do-install: hugo.1 ${INSTALL_MAN} ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}/man/man1/$i ${STAGEDIR}/${PREFIX}/man/man1 .endfor -.endif .include <bsd.port.mk> Modified: head/www/gohugo/pkg-plist ============================================================================== --- head/www/gohugo/pkg-plist Tue Jan 3 12:49:39 2017 (r430462) +++ head/www/gohugo/pkg-plist Tue Jan 3 12:50:18 2017 (r430463) @@ -1,25 +1,25 @@ bin/hugo -man/man1/hugo-benchmark.1.gz -man/man1/hugo-config.1.gz -man/man1/hugo-convert-toJSON.1.gz -man/man1/hugo-convert-toTOML.1.gz -man/man1/hugo-convert-toYAML.1.gz -man/man1/hugo-convert.1.gz -man/man1/hugo-env.1.gz -man/man1/hugo-gen-autocomplete.1.gz -man/man1/hugo-gen-doc.1.gz -man/man1/hugo-gen-man.1.gz -man/man1/hugo-gen.1.gz -man/man1/hugo-import-jekyll.1.gz -man/man1/hugo-import.1.gz -man/man1/hugo-list-drafts.1.gz -man/man1/hugo-list-expired.1.gz -man/man1/hugo-list-future.1.gz -man/man1/hugo-list.1.gz -man/man1/hugo-new-site.1.gz -man/man1/hugo-new-theme.1.gz -man/man1/hugo-new.1.gz -man/man1/hugo-server.1.gz -man/man1/hugo-undraft.1.gz -man/man1/hugo-version.1.gz -man/man1/hugo.1.gz +%%MANPAGES%%man/man1/hugo-benchmark.1.gz +%%MANPAGES%%man/man1/hugo-config.1.gz +%%MANPAGES%%man/man1/hugo-convert-toJSON.1.gz +%%MANPAGES%%man/man1/hugo-convert-toTOML.1.gz +%%MANPAGES%%man/man1/hugo-convert-toYAML.1.gz +%%MANPAGES%%man/man1/hugo-convert.1.gz +%%MANPAGES%%man/man1/hugo-env.1.gz +%%MANPAGES%%man/man1/hugo-gen-autocomplete.1.gz +%%MANPAGES%%man/man1/hugo-gen-doc.1.gz +%%MANPAGES%%man/man1/hugo-gen-man.1.gz +%%MANPAGES%%man/man1/hugo-gen.1.gz +%%MANPAGES%%man/man1/hugo-import-jekyll.1.gz +%%MANPAGES%%man/man1/hugo-import.1.gz +%%MANPAGES%%man/man1/hugo-list-drafts.1.gz +%%MANPAGES%%man/man1/hugo-list-expired.1.gz +%%MANPAGES%%man/man1/hugo-list-future.1.gz +%%MANPAGES%%man/man1/hugo-list.1.gz +%%MANPAGES%%man/man1/hugo-new-site.1.gz +%%MANPAGES%%man/man1/hugo-new-theme.1.gz +%%MANPAGES%%man/man1/hugo-new.1.gz +%%MANPAGES%%man/man1/hugo-server.1.gz +%%MANPAGES%%man/man1/hugo-undraft.1.gz +%%MANPAGES%%man/man1/hugo-version.1.gz +%%MANPAGES%%man/man1/hugo.1.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701031250.v03CoJIx084216>