1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

- Stage support

This commit is contained in:
Martin Wilke 2014-01-30 03:11:42 +00:00
parent 127fcb9e76
commit 854f5ac16d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341798
2 changed files with 13 additions and 12 deletions

View File

@ -17,11 +17,6 @@ LICENSE_COMB= dual
USES= perl5
USE_PERL5= configure
MAN3= CGI.3 CGI::Apache.3 CGI::Carp.3 CGI::Cookie.3 \
CGI::Fast.3 CGI::Pretty.3 CGI::Push.3 CGI::Switch.3 \
CGI::Util.3
.if !defined(NOPORTEXAMPLES)
EXAMPLES= examples/caution.xbm examples/clickable_image.cgi \
examples/cookie.cgi examples/crash.cgi examples/customize.cgi \
examples/diff_upload.cgi examples/dna.small.gif \
@ -33,16 +28,13 @@ EXAMPLES= examples/caution.xbm examples/clickable_image.cgi \
examples/popup.cgi examples/save_state.cgi \
examples/tryit.cgi examples/wilogo.gif
NO_STAGE= yes
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
post-patch:
@${REINPLACE_CMD} -e '/require 5\.6/d; /INSTALLDIRS/d' ${WRKSRC}/Makefile.PL
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501400

View File

@ -30,5 +30,14 @@
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tryit.cgi
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wilogo.gif
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PERL5_MAN3%%/CGI.3.gz
%%PERL5_MAN3%%/CGI::Apache.3.gz
%%PERL5_MAN3%%/CGI::Carp.3.gz
%%PERL5_MAN3%%/CGI::Cookie.3.gz
%%PERL5_MAN3%%/CGI::Fast.3.gz
%%PERL5_MAN3%%/CGI::Pretty.3.gz
%%PERL5_MAN3%%/CGI::Push.3.gz
%%PERL5_MAN3%%/CGI::Switch.3.gz
%%PERL5_MAN3%%/CGI::Util.3.gz
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI
@dirrmtry %%SITE_PERL%%/CGI