- Add stage support

- Add perl5 as dependency
- Add shebangfix to USES
- Use %%DOCSDIR%% in pkg-plist
- Improve COMMENT
- Bump PORTREVISION
This commit is contained in:
Danilo Egea Gondolfo 2014-02-15 14:44:36 +00:00
parent 045b1fbdf5
commit 4748962959
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344397
2 changed files with 12 additions and 9 deletions

View File

@ -3,27 +3,30 @@
PORTNAME= solitaire
PORTVERSION= 19980817
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dd
DISTFILES= sol.pl sol-test.txt
MAINTAINER= ports@FreeBSD.org
COMMENT= The reference implementation of the Solitaire encryption algorithm
COMMENT= Reference implementation of the Solitaire encryption algorithm
USES= perl5 shebangfix
SHEBANG_FILES= sol.pl
NO_BUILD= yes
NO_WRKSUBDIR= yes
STRIP=
NO_STAGE= yes
do-extract:
@${MKDIR} ${WRKDIR}
@${CP} -r ${DISTDIR}/sol.pl ${DISTDIR}/sol-test.txt ${WRKDIR}
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/sol.pl ${PREFIX}/bin/solitaire
@${MKDIR} ${PREFIX}/share/doc/solitaire
@${INSTALL_DATA} ${WRKSRC}/sol.pl ${WRKSRC}/sol-test.txt \
${PREFIX}/share/doc/solitaire
${INSTALL_PROGRAM} ${WRKSRC}/sol.pl ${STAGEDIR}${PREFIX}/bin/solitaire
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/solitaire
${INSTALL_DATA} ${WRKSRC}/sol.pl ${WRKSRC}/sol-test.txt \
${STAGEDIR}${PREFIX}/share/doc/solitaire
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
bin/solitaire
share/doc/solitaire/sol.pl
share/doc/solitaire/sol-test.txt
@dirrm share/doc/solitaire
%%DOCSDIR%%/sol.pl
%%DOCSDIR%%/sol-test.txt
@dirrm %%DOCSDIR%%