Date: Thu, 26 Sep 2013 19:13:52 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328407 - head/games/nonsense Message-ID: <201309261913.r8QJDq0e017409@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Thu Sep 26 19:13:51 2013 New Revision: 328407 URL: http://svnweb.freebsd.org/changeset/ports/328407 Log: Modernize the games/nonsense port: - Support STAGEDIR - Use DATADIR macros - don't install useless README Modified: head/games/nonsense/Makefile head/games/nonsense/pkg-plist Modified: head/games/nonsense/Makefile ============================================================================== --- head/games/nonsense/Makefile Thu Sep 26 19:04:52 2013 (r328406) +++ head/games/nonsense/Makefile Thu Sep 26 19:13:51 2013 (r328407) @@ -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> Modified: head/games/nonsense/pkg-plist ============================================================================== --- head/games/nonsense/pkg-plist Thu Sep 26 19:04:52 2013 (r328406) +++ head/games/nonsense/pkg-plist Thu Sep 26 19:13:51 2013 (r328407) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309261913.r8QJDq0e017409>