diff options
author | eadler <eadler@FreeBSD.org> | 2013-09-27 03:13:51 +0800 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-09-27 03:13:51 +0800 |
commit | 0a029ed56649879c8b9703946fc6c7525d8576d2 (patch) | |
tree | 8563ec6061c5821b4d12245e486eb874c219ea49 /games | |
parent | 3f3373535482784aec5ce297b3fae6c4a8ea115d (diff) | |
download | freebsd-ports-gnome-0a029ed56649879c8b9703946fc6c7525d8576d2.tar.gz freebsd-ports-gnome-0a029ed56649879c8b9703946fc6c7525d8576d2.tar.zst freebsd-ports-gnome-0a029ed56649879c8b9703946fc6c7525d8576d2.zip |
Modernize the games/nonsense port:
- Support STAGEDIR
- Use DATADIR macros
- don't install useless README
Diffstat (limited to 'games')
-rw-r--r-- | games/nonsense/Makefile | 21 | ||||
-rw-r--r-- | games/nonsense/pkg-plist | 56 |
2 files changed, 35 insertions, 42 deletions
diff --git a/games/nonsense/Makefile b/games/nonsense/Makefile index 76f272eb7f3b..d629ec34fa79 100644 --- a/games/nonsense/Makefile +++ b/games/nonsense/Makefile @@ -11,26 +11,19 @@ COMMENT= Nonsense text generator NO_BUILD= defined -MAN6= nonsense.6 - -NO_STAGE= yes .include <bsd.port.options.mk> post-configure: ${REINPLACE_CMD} -e "s,/usr/local,${PREFIX}," ${WRKSRC}/nonsense ${SED} -e "s^%%PREFIX%%^${PREFIX}^g" \ - < ${FILESDIR}/${MAN6} > ${WRKSRC}/${MAN6} + < ${FILESDIR}/nonsense.6 > ${WRKSRC}/nonsense.6 do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/nonsense ${PREFIX}/bin - ${MKDIR} ${PREFIX}/share/nonsense/data - ${MKDIR} ${PREFIX}/share/nonsense/template - ${INSTALL_DATA} ${WRKSRC}/*.data ${PREFIX}/share/nonsense/data - ${INSTALL_DATA} ${WRKSRC}/*.template ${PREFIX}/share/nonsense/template - ${INSTALL_MAN} ${WRKSRC}/${MAN6} ${PREFIX}/man/man6/ -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${PREFIX}/share/doc/nonsense - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nonsense/ -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/nonsense ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DATADIR}/data + ${MKDIR} ${STAGEDIR}${DATADIR}/template + ${INSTALL_DATA} ${WRKSRC}/*.data ${STAGEDIR}${DATADIR}/data + ${INSTALL_DATA} ${WRKSRC}/*.template ${STAGEDIR}${DATADIR}/template + ${INSTALL_MAN} ${WRKSRC}/nonsense.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/ .include <bsd.port.mk> diff --git a/games/nonsense/pkg-plist b/games/nonsense/pkg-plist index 0f857f386464..9e4c0c7200bd 100644 --- a/games/nonsense/pkg-plist +++ b/games/nonsense/pkg-plist @@ -1,30 +1,30 @@ bin/nonsense -%%PORTDOCS%%share/doc/nonsense/README -%%PORTDOCS%%@dirrm share/doc/nonsense -share/nonsense/data/college.data -share/nonsense/data/cookie.data -share/nonsense/data/default.data -share/nonsense/data/humorix.data -share/nonsense/data/insults.data -share/nonsense/data/linux.data -share/nonsense/data/mission.data -share/nonsense/data/newspaper.data -share/nonsense/data/poetry.data -share/nonsense/data/ratherism.data -share/nonsense/data/resume.data -share/nonsense/data/shows.data -share/nonsense/data/slashdot.data -share/nonsense/data/stupidlaws.data -share/nonsense/data/techdirt.data -share/nonsense/template/bingo.html.template -share/nonsense/template/bizplan.html.template -share/nonsense/template/freshmeat.rdf.template -share/nonsense/template/humorix.html.template -share/nonsense/template/newspaper.html.template -share/nonsense/template/resume.html.template -share/nonsense/template/slashdot.html.template -share/nonsense/template/slashdot.rdf.template -share/nonsense/template/techdirt.html.template -@dirrm share/nonsense/data -@dirrm share/nonsense/template +%%DATADIR%%/data/college.data +%%DATADIR%%/data/cookie.data +%%DATADIR%%/data/default.data +%%DATADIR%%/data/humorix.data +%%DATADIR%%/data/insults.data +%%DATADIR%%/data/linux.data +%%DATADIR%%/data/mission.data +%%DATADIR%%/data/newspaper.data +%%DATADIR%%/data/poetry.data +%%DATADIR%%/data/ratherism.data +%%DATADIR%%/data/resume.data +%%DATADIR%%/data/shows.data +%%DATADIR%%/data/slashdot.data +%%DATADIR%%/data/stupidlaws.data +%%DATADIR%%/data/techdirt.data +%%DATADIR%%/template/bingo.html.template +%%DATADIR%%/template/bizplan.html.template +%%DATADIR%%/template/freshmeat.rdf.template +%%DATADIR%%/template/humorix.html.template +%%DATADIR%%/template/newspaper.html.template +%%DATADIR%%/template/resume.html.template +%%DATADIR%%/template/slashdot.html.template +%%DATADIR%%/template/slashdot.rdf.template +%%DATADIR%%/template/techdirt.html.template +man/man6/nonsense.6.gz +@dirrm %%DATADIR%% +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%%/template @dirrm share/nonsense |