1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Support staging

- Convert to new options framework
- Use shebangfix
This commit is contained in:
Emanuel Haupt 2014-02-06 10:37:04 +00:00
parent cdc850571f
commit 68d88a3079
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343011
2 changed files with 11 additions and 10 deletions

View File

@ -20,17 +20,19 @@ BUILD_DEPENDS= p5-POE>=0.37:${PORTSDIR}/devel/p5-POE \
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_SUB= EXAMPLESDIR="share/examples/${PORTNAME}"
USES= perl5
USES= perl5 shebangfix
USE_PERL5= configure
MAN3= POE::Component::IRC::Plugin::Blowfish.3
OPTIONS_DEFINE= EXAMPLES
PORTEXAMPLES= synopsis.pl
SHEBANG_FILES= examples/synopsis.pl
.include <bsd.port.options.mk>
NO_STAGE= yes
post-install:
.ifndef(NOPORTEXAMPLES)
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -1,7 +1,6 @@
%%SITE_PERL%%/POE/Component/IRC/Plugin/Blowfish.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/IRC/Plugin/Blowfish/.packlist
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/synopsis.pl
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PERL5_MAN3%%/POE::Component::IRC::Plugin::Blowfish.3.gz
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/IRC/Plugin/Blowfish
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/IRC/Plugin
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/IRC