- Support staging

- Convert to new OPTIONS framework
- Rename test target to regression-test in order for tinderbox to run target
  automatically
This commit is contained in:
Emanuel Haupt 2014-02-06 10:21:36 +00:00
parent fcdef642ce
commit 2607a1896a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343000
2 changed files with 11 additions and 12 deletions

View File

@ -22,18 +22,17 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5
USE_PERL5= configure
MAN1= bingo_print.pl.1
MAN3= Games::Bingo::Print.3
OPTIONS_DEFINE= EXAMPLES
PORTEXAMPLES= bingo_print.pl
.include <bsd.port.options.mk>
NO_STAGE= yes
post-install:
.ifndef(NOPORTDOCS)
@${ECHO_MSG} "===> Installing example for ${PKGNAME}"
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/bin/bingo_print.pl ${EXAMPLESDIR}
.endif
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/bin/bingo_print.pl ${STAGEDIR}${EXAMPLESDIR}
test:
@cd ${WRKSRC}; make test
regression-test: build
@cd ${WRKSRC} && ${MAKE} -s test
.include <bsd.port.mk>

View File

@ -1,8 +1,8 @@
bin/bingo_print.pl
man/man1/bingo_print.pl.1.gz
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Games-Bingo-Print/.packlist
%%SITE_PERL%%/Games/Bingo/Print.pm
%%PORTDOCS%%%%EXAMPLESDIR%%/bingo_print.pl
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
%%PERL5_MAN3%%/Games::Bingo::Print.3.gz
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Games-Bingo-Print
@dirrmtry %%SITE_PERL%%/Games/Bingo
@dirrmtry %%SITE_PERL%%/Games