Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 13:58:04 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r342533 - head/games/simsu
Message-ID:  <201402041358.s14Dw47h084306@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Tue Feb  4 13:58:03 2014
New Revision: 342533
URL: http://svnweb.freebsd.org/changeset/ports/342533
QAT: https://qat.redports.org/buildarchive/r342533/

Log:
  - Add NLS Option and REINPLACE
  - Add OPTIONS_SUB
  - Strip executable
  - Recreate pkg-plist with make makeplist

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

Modified: head/games/simsu/Makefile
==============================================================================
--- head/games/simsu/Makefile	Tue Feb  4 13:57:54 2014	(r342532)
+++ head/games/simsu/Makefile	Tue Feb  4 13:58:03 2014	(r342533)
@@ -21,9 +21,20 @@ INSTALLS_ICONS=	yes
 
 PORTDOCS=	CREDITS ChangeLog
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -i '' '/qm.files/,/qm.path/s/^/#/' \
+		${WRKSRC}/${PORTNAME}.pro
+.endif
 
 post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
 	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps/
 

Modified: head/games/simsu/pkg-plist
==============================================================================
--- head/games/simsu/pkg-plist	Tue Feb  4 13:57:54 2014	(r342532)
+++ head/games/simsu/pkg-plist	Tue Feb  4 13:58:03 2014	(r342533)
@@ -11,17 +11,17 @@ share/icons/hicolor/64x64/apps/simsu.png
 share/icons/hicolor/scalable/apps/simsu.svg
 share/pixmaps/simsu.png
 share/pixmaps/simsu.xpm
-%%DATADIR%%/translations/simsu_ca.qm
-%%DATADIR%%/translations/simsu_cs.qm
-%%DATADIR%%/translations/simsu_el.qm
-%%DATADIR%%/translations/simsu_en.qm
-%%DATADIR%%/translations/simsu_es.qm
-%%DATADIR%%/translations/simsu_es_CL.qm
-%%DATADIR%%/translations/simsu_fr.qm
-%%DATADIR%%/translations/simsu_he.qm
-%%DATADIR%%/translations/simsu_hu.qm
-%%DATADIR%%/translations/simsu_ro.qm
-%%DATADIR%%/translations/simsu_ru.qm
-%%DATADIR%%/translations/simsu_uk.qm
-@dirrm %%DATADIR%%/translations
-@dirrm %%DATADIR%%
+%%NLS%%%%DATADIR%%/translations/simsu_ca.qm
+%%NLS%%%%DATADIR%%/translations/simsu_cs.qm
+%%NLS%%%%DATADIR%%/translations/simsu_el.qm
+%%NLS%%%%DATADIR%%/translations/simsu_en.qm
+%%NLS%%%%DATADIR%%/translations/simsu_es.qm
+%%NLS%%%%DATADIR%%/translations/simsu_es_CL.qm
+%%NLS%%%%DATADIR%%/translations/simsu_fr.qm
+%%NLS%%%%DATADIR%%/translations/simsu_he.qm
+%%NLS%%%%DATADIR%%/translations/simsu_hu.qm
+%%NLS%%%%DATADIR%%/translations/simsu_ro.qm
+%%NLS%%%%DATADIR%%/translations/simsu_ru.qm
+%%NLS%%%%DATADIR%%/translations/simsu_uk.qm
+%%NLS%%@dirrm %%DATADIR%%/translations
+%%NLS%%@dirrm %%DATADIR%%



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