Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2014 14:44:13 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371832 - head/games/glchess
Message-ID:  <201410311444.s9VEiDFH062890@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Oct 31 14:44:13 2014
New Revision: 371832
URL: https://svnweb.freebsd.org/changeset/ports/371832
QAT: https://qat.redports.org/buildarchive/r371832/

Log:
  - Use OPTIONS helpers
  - Don't use gettext when NLS is disabled
  - Remove @exec/@unexec's handled by USES=shared-mime-info
  - Drop @dirrm* from plist

Modified:
  head/games/glchess/Makefile
  head/games/glchess/pkg-plist

Modified: head/games/glchess/Makefile
==============================================================================
--- head/games/glchess/Makefile	Fri Oct 31 14:44:07 2014	(r371831)
+++ head/games/glchess/Makefile	Fri Oct 31 14:44:13 2014	(r371832)
@@ -16,18 +16,14 @@ USES=		desktop-file-utils python shared-
 USE_GNOME=	gconf2
 USE_PYTHON=	distutils
 GCONF_SCHEMAS=	glchess.schemas
+
 OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+NLS_USES=	gettext
+NLS_CONFIGURE_ENABLE=	nls
 
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MNLS}
-PLIST_SUB+=	NLS=""
-USES+=		gettext
-.else
-PLIST_SUB+=	NLS="@comment"
-CONFIGURE_ARGS+=	--disable-nls
-.endif
-
 post-patch:
 	@${GREP} -lR "/usr/share/games/glchess" ${WRKSRC} | ${XARGS} \
 		${REINPLACE_CMD} -e 's|/usr/share/games/glchess|${DATADIR}|g'
@@ -35,17 +31,21 @@ post-patch:
 		 s|share/gconf/schemas|etc/gconf/schemas|g' ${WRKSRC}/setup.py
 
 post-build:
+.if ${PORT_OPTIONS:MNLS}
 	@(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}
 	@(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
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in ChangeLog README TODO
 	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}

Modified: head/games/glchess/pkg-plist
==============================================================================
--- head/games/glchess/pkg-plist	Fri Oct 31 14:44:07 2014	(r371831)
+++ head/games/glchess/pkg-plist	Fri Oct 31 14:44:13 2014	(r371832)
@@ -214,18 +214,3 @@ share/applications/glchess.desktop
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/glchess.mo
 share/mime/packages/glchess.xml
 share/pixmaps/glchess.svg
-@dirrm %%DATADIR%%/textures
-@dirrm %%DATADIR%%/gui
-@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/ui
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/scene/opengl
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/scene/cairo
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/scene
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/gtkui
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/chess/fics
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/ggz
-@dirrm %%PYTHON_SITELIBDIR%%/glchess/chess
-@dirrm %%PYTHON_SITELIBDIR%%/glchess
-@exec %%LOCALBASE%%/bin/update-mime-database %%LOCALBASE%%/share/mime
-@unexec %%LOCALBASE%%/bin/update-mime-database %%LOCALBASE%%/share/mime



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410311444.s9VEiDFH062890>