diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-02-04 21:58:13 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-02-04 21:58:13 +0800 |
commit | e1c9ca0d1760baf0c6ee24cbf2618aa40d06d480 (patch) | |
tree | d22244ba581e4b6078fb0875e06eee33c8dfe1e9 | |
parent | 4f9af73b8e0322937e1bc80cf627cbb0b89719c6 (diff) | |
download | freebsd-ports-gnome-e1c9ca0d1760baf0c6ee24cbf2618aa40d06d480.tar.gz freebsd-ports-gnome-e1c9ca0d1760baf0c6ee24cbf2618aa40d06d480.tar.zst freebsd-ports-gnome-e1c9ca0d1760baf0c6ee24cbf2618aa40d06d480.zip |
- Remove USES desktop-file-utils
- Add NLS Option and REINPLACE
- Add OPTIONS_SUB
- Strip executable
- Recreate pkg-plist with make makeplist
-rw-r--r-- | games/tanglet/Makefile | 16 | ||||
-rw-r--r-- | games/tanglet/pkg-plist | 28 |
2 files changed, 26 insertions, 18 deletions
diff --git a/games/tanglet/Makefile b/games/tanglet/Makefile index 3d7d8d796269..41f4e0b2ed8a 100644 --- a/games/tanglet/Makefile +++ b/games/tanglet/Makefile @@ -14,24 +14,32 @@ COMMENT= Single player word finding game based on Boggle LICENSE= GPLv3 USE_BZIP2= yes -USES= desktop-file-utils qmake +USES= qmake USE_QT4= moc_build rcc_build gui iconengines_run imageformats_run LDFLAGS+= -lz INSTALLS_ICONS= yes PORTDOCS= CREDITS ChangeLog NEWS -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes .include <bsd.port.options.mk> post-patch: @${REINPLACE_CMD} -i '' -e '/PKGCONFIG += zlib/d' \ - ${WRKSRC}/tanglet.pro + ${WRKSRC}/${PORTNAME}.pro + +.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/ + ${STAGEDIR}${PREFIX}/share/pixmaps/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} diff --git a/games/tanglet/pkg-plist b/games/tanglet/pkg-plist index 504b1d6f7e58..03c22469cd9e 100644 --- a/games/tanglet/pkg-plist +++ b/games/tanglet/pkg-plist @@ -44,20 +44,20 @@ share/pixmaps/tanglet.xpm %%DATADIR%%/data/nl/dictionary %%DATADIR%%/data/nl/name %%DATADIR%%/data/nl/words -%%DATADIR%%/translations/tanglet_cs.qm -%%DATADIR%%/translations/tanglet_de.qm -%%DATADIR%%/translations/tanglet_en.qm -%%DATADIR%%/translations/tanglet_es.qm -%%DATADIR%%/translations/tanglet_es_CL.qm -%%DATADIR%%/translations/tanglet_fr.qm -%%DATADIR%%/translations/tanglet_he.qm -%%DATADIR%%/translations/tanglet_hu.qm -%%DATADIR%%/translations/tanglet_it.qm -%%DATADIR%%/translations/tanglet_nl.qm -%%DATADIR%%/translations/tanglet_ro.qm -%%DATADIR%%/translations/tanglet_tr.qm -%%DATADIR%%/translations/tanglet_uk.qm -@dirrm %%DATADIR%%/translations +%%NLS%%%%DATADIR%%/translations/tanglet_cs.qm +%%NLS%%%%DATADIR%%/translations/tanglet_de.qm +%%NLS%%%%DATADIR%%/translations/tanglet_en.qm +%%NLS%%%%DATADIR%%/translations/tanglet_es.qm +%%NLS%%%%DATADIR%%/translations/tanglet_es_CL.qm +%%NLS%%%%DATADIR%%/translations/tanglet_fr.qm +%%NLS%%%%DATADIR%%/translations/tanglet_he.qm +%%NLS%%%%DATADIR%%/translations/tanglet_hu.qm +%%NLS%%%%DATADIR%%/translations/tanglet_it.qm +%%NLS%%%%DATADIR%%/translations/tanglet_nl.qm +%%NLS%%%%DATADIR%%/translations/tanglet_ro.qm +%%NLS%%%%DATADIR%%/translations/tanglet_tr.qm +%%NLS%%%%DATADIR%%/translations/tanglet_uk.qm +%%NLS%%@dirrm %%DATADIR%%/translations @dirrm %%DATADIR%%/data/nl @dirrm %%DATADIR%%/data/hu @dirrm %%DATADIR%%/data/he |