Add an option (defaulting to on) to build and install the cgitrc(5)

manpage.

Submitter becomes maintainer.

PR:		227304
Submitted by:	Marko Turk
This commit is contained in:
Adam Weinberger 2018-04-15 17:04:29 +00:00
parent 716fb1c016
commit 65366c2e59
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467401
2 changed files with 13 additions and 3 deletions

View file

@ -2,14 +2,14 @@
PORTNAME= cgit
PORTVERSION= 1.1
PORTREVISION= 17
PORTREVISION= 18
CATEGORIES= devel www
MASTER_SITES= http://git.zx2c4.com/cgit/snapshot/:cgit \
https://www.kernel.org/pub/software/scm/git/:git
DISTFILES= cgit-${PORTVERSION}${EXTRACT_SUFX}:cgit \
git-${GIT_VERSION}${EXTRACT_SUFX}:git
MAINTAINER= adamw@FreeBSD.org
MAINTAINER= mt@markoturk.info
COMMENT= Fast, lightweight web frontend for Git repositories
LICENSE= GPLv2
@ -35,7 +35,12 @@ SUB_FILES= pkg-message
PORTDOCS= ${PORTNAME}rc.5.txt
OPTIONS_DEFINE= DOCS
OPTIONS_DEFINE= DOCS ASCIIDOC
OPTIONS_DEFAULT= DOCS ASCIIDOC
OPTIONS_SUB= yes
ASCIIDOC_DESC= Use asciidoc to preprocess man page
ASCIIDOC_BUILD_DEPENDS= a2x:textproc/asciidoc
post-extract:
@${RMDIR} ${WRKSRC}/git
@ -57,4 +62,8 @@ post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install-ASCIIDOC-on:
a2x --doctype manpage --format manpage ${WRKSRC}/cgitrc.5.txt
${INSTALL_MAN} ${WRKSRC}/cgitrc.5 ${STAGEDIR}${PREFIX}/man/man5
.include <bsd.port.mk>

View file

@ -12,6 +12,7 @@ lib/cgit/filters/owner-example.lua
lib/cgit/filters/simple-authentication.lua
lib/cgit/filters/syntax-highlighting.py
lib/cgit/filters/syntax-highlighting.sh
%%ASCIIDOC%%man/man5/cgitrc.5.gz
%%WWWDIR%%/cgit.cgi
%%WWWDIR%%/cgit.css
%%WWWDIR%%/cgit.png