1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

devel/cgit: allow staging

- Allow staging [1] (based on)
- Add DOCS option
- Remove useless options.mk

PR:		ports/183369
Submitted by:	Kevin Zheng <kevinz5000 gmail.com> (maintainer)
This commit is contained in:
William Grzybowski 2013-10-27 20:39:56 +00:00
parent 3b1784cbd4
commit c9237e6ef2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331804
2 changed files with 6 additions and 12 deletions

View File

@ -29,8 +29,8 @@ SUB_FILES= pkg-message
SUB_LIST+= PORTNAME=${PORTNAME}
PLIST_SUB+= PORTNAME=${PORTNAME} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
NO_STAGE= yes
.include <bsd.port.options.mk>
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
post-extract:
@ -50,12 +50,7 @@ post-patch:
.endif
post-install:
@${MKDIR} /var/cache/${PORTNAME}
@${CHOWN} ${WWWOWN}:${WWWGRP} /var/cache/${PORTNAME}
@${CAT} ${PKGMESSAGE}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}rc.5.txt ${DOCSDIR}/
.endif
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}rc.5.txt ${STAGEDIR}/${DOCSDIR}/
.include <bsd.port.post.mk>

View File

@ -1,8 +1,6 @@
%%WWWDIR%%/cgit.cgi
%%WWWDIR%%/cgit.css
%%WWWDIR%%/cgit.png
%%PORTDOCS%%%%DOCSDIR%%/cgitrc.5.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%
lib/cgit/filters/about-formatting.sh
lib/cgit/filters/commit-links.sh
lib/cgit/filters/html-converters/man2html
@ -13,6 +11,8 @@ lib/cgit/filters/html-converters/rst2html
lib/cgit/filters/html-converters/txt2html
lib/cgit/filters/syntax-highlighting.py
lib/cgit/filters/syntax-highlighting.sh
%%PORTDOCS%%%%DOCSDIR%%/cgitrc.5.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/cgit/filters/html-converters/resources
@dirrm lib/cgit/filters/html-converters
@dirrm lib/cgit/filters
@ -20,4 +20,3 @@ lib/cgit/filters/syntax-highlighting.sh
@dirrm %%WWWDIR%%
@exec mkdir -p /var/cache/%%PORTNAME%%
@exec chown %%WWWOWN%%:%%WWWGRP%% /var/cache/%%PORTNAME%%
@unexec rmdir /var/cache/%%PORTNAME%% 2>/dev/null || true