Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 13:57:45 +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: r342531 - head/games/connectagram
Message-ID:  <201402041357.s14DvjaF084100@svn.freebsd.org>

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

Log:
  - Remove USES desktop-file-utils
  - Add NLS Option and REINPLACE
  - Add OPTIONS_SUB
  - Strip executable
  - Recreate pkg-plist with make makeplist

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

Modified: head/games/connectagram/Makefile
==============================================================================
--- head/games/connectagram/Makefile	Tue Feb  4 13:44:56 2014	(r342530)
+++ head/games/connectagram/Makefile	Tue Feb  4 13:57:45 2014	(r342531)
@@ -13,18 +13,30 @@ COMMENT=	Word unscrambling game
 LICENSE=	GPLv3
 
 USE_BZIP2=	yes
-USES=		desktop-file-utils qmake
+USES=		qmake
 USE_QT4=	moc_build rcc_build gui network iconengines_run \
 		imageformats_run
 INSTALLS_ICONS=	yes
 
 PORTDOCS=	CREDITS ChangeLog
 
+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}
+
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
 	@(cd ${WRKSRC}/icons && ${COPYTREE_SHARE} patterns ${STAGEDIR}${DATADIR})
+
 	@(cd ${WRKSRC}/icons && ${COPYTREE_SHARE} hicolor ${STAGEDIR}${PREFIX}/share/icons/)
 	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
 			${STAGEDIR}${PREFIX}/share/pixmaps/

Modified: head/games/connectagram/pkg-plist
==============================================================================
--- head/games/connectagram/pkg-plist	Tue Feb  4 13:44:56 2014	(r342530)
+++ head/games/connectagram/pkg-plist	Tue Feb  4 13:57:45 2014	(r342531)
@@ -8,14 +8,14 @@ share/applications/connectagram.desktop
 %%DATADIR%%/patterns/3.png
 %%DATADIR%%/patterns/4.png
 %%DATADIR%%/patterns/5.png
-%%DATADIR%%/translations/connectagram_cs.qm
-%%DATADIR%%/translations/connectagram_de.qm
-%%DATADIR%%/translations/connectagram_el.qm
-%%DATADIR%%/translations/connectagram_en.qm
-%%DATADIR%%/translations/connectagram_fr.qm
-%%DATADIR%%/translations/connectagram_ro.qm
-%%DATADIR%%/translations/connectagram_ru.qm
-%%DATADIR%%/translations/connectagram_tr.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_cs.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_de.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_el.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_en.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_fr.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_ro.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_ru.qm
+%%NLS%%%%DATADIR%%/translations/connectagram_tr.qm
 share/icons/hicolor/128x128/apps/connectagram.png
 share/icons/hicolor/16x16/apps/connectagram.png
 share/icons/hicolor/22x22/apps/connectagram.png
@@ -27,7 +27,7 @@ share/icons/hicolor/64x64/apps/connectag
 share/icons/hicolor/scalable/apps/connectagram.svg
 share/pixmaps/connectagram.png
 share/pixmaps/connectagram.xpm
-@dirrm %%DATADIR%%/translations
+%%NLS%%@dirrm %%DATADIR%%/translations
 @dirrm %%DATADIR%%/patterns
 @dirrm %%DATADIR%%/data/fr
 @dirrm %%DATADIR%%/data/en



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