svn commit: r439743 - head/games/glchess
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Apr 29 09:00:09 UTC 2017
Author: amdmi3
Date: Sat Apr 29 09:00:08 2017
New Revision: 439743
URL: https://svnweb.freebsd.org/changeset/ports/439743
Log:
- Switch to options helpers
- Update WWW
Modified:
head/games/glchess/Makefile
head/games/glchess/pkg-descr
Modified: head/games/glchess/Makefile
==============================================================================
--- head/games/glchess/Makefile Sat Apr 29 08:52:18 2017 (r439742)
+++ head/games/glchess/Makefile Sat Apr 29 09:00:08 2017 (r439743)
@@ -22,30 +22,26 @@ OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
-.include <bsd.port.options.mk>
-
post-patch:
@${GREP} -lR "/usr/share/games/glchess" ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e 's|/usr/share/games/glchess|${DATADIR}|g'
@${REINPLACE_CMD} -e 's|share/games/glchess|share/glchess|g ; \
s|share/gconf/schemas|etc/gconf/schemas|g' ${WRKSRC}/setup.py
-post-build:
-.if ${PORT_OPTIONS:MNLS}
+post-build-NLS-on:
@(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
cd ${WRKSRC}/po ; \
${LOCALBASE}/bin/msgfmt $$lang.po -o $$lang.mo ; \
done)
-.endif
-post-install:
-.if ${PORT_OPTIONS:MNLS}
+post-install-NLS-on:
@(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \
${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \
done)
-.endif
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ChangeLog README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
Modified: head/games/glchess/pkg-descr
==============================================================================
--- head/games/glchess/pkg-descr Sat Apr 29 08:52:18 2017 (r439742)
+++ head/games/glchess/pkg-descr Sat Apr 29 09:00:08 2017 (r439743)
@@ -3,4 +3,4 @@ Communication Protocol (CECP) by Tim Man
Crafty and GNU Chess as AIs. You can also play Human vs. Human, but so far
not over a network.
-WWW: http://glchess.sourceforge.net/
+WWW: https://sourceforge.net/projects/glchess/
More information about the svn-ports-head
mailing list