1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Support staging and use shebangfix.

This commit is contained in:
Emanuel Haupt 2014-02-06 11:57:55 +00:00
parent ffda67a20b
commit 8edf9bbad8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343039
2 changed files with 9 additions and 8 deletions

View File

@ -17,22 +17,22 @@ RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc
BUILD_DEPENDS:= ${RUN_DEPENDS}
USES= perl5
USES= perl5 shebangfix
USE_PERL5= configure
EXAMPLESCRIPT= samples/*pl
EXAMPLEDUMMY= samples/index/dummy.txt
EXAMPLEOUTPUT= samples/output/w3c.png samples/output/spam.css
EXAMPLEARCHIVE= samples/archive/*.gz
MAN3= Mail::Graph.3
SHEBANG_FILES= samples/*.pl
NO_STAGE= yes
post-install:
@${MKDIR} ${EXAMPLESDIR}/archive ${EXAMPLESDIR}/index ${EXAMPLESDIR}/output
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/archive \
${STAGEDIR}${EXAMPLESDIR}/index ${STAGEDIR}${EXAMPLESDIR}/output
(cd ${WRKSRC} && \
${INSTALL_SCRIPT} ${EXAMPLESCRIPT} ${EXAMPLESDIR} && \
${INSTALL_SCRIPT} ${EXAMPLEDUMMY} ${EXAMPLESDIR}/index && \
${INSTALL_SCRIPT} ${EXAMPLEOUTPUT} ${EXAMPLESDIR}/output && \
${INSTALL_SCRIPT} ${EXAMPLEARCHIVE} ${EXAMPLESDIR}/archive)
${INSTALL_SCRIPT} ${EXAMPLESCRIPT} ${STAGEDIR}${EXAMPLESDIR} && \
${INSTALL_SCRIPT} ${EXAMPLEDUMMY} ${STAGEDIR}${EXAMPLESDIR}/index && \
${INSTALL_SCRIPT} ${EXAMPLEOUTPUT} ${STAGEDIR}${EXAMPLESDIR}/output && \
${INSTALL_SCRIPT} ${EXAMPLEARCHIVE} ${STAGEDIR}${EXAMPLESDIR}/archive)
.include <bsd.port.mk>

View File

@ -8,6 +8,7 @@
%%EXAMPLESDIR%%/output/spam.css
%%EXAMPLESDIR%%/archive/sample.txt.gz
%%EXAMPLESDIR%%/archive/sample2.txt.gz
%%PERL5_MAN3%%/Mail::Graph.3.gz
@dirrm %%EXAMPLESDIR%%/archive
@dirrm %%EXAMPLESDIR%%/index
@dirrm %%EXAMPLESDIR%%/output