- Remove USES desktop-file-utils
- Add NLS Option and REINPLACE - Add OPTIONS_SUB - Strip executable - Recreate pkg-plist with make makeplist
This commit is contained in:
parent
c2f1109232
commit
4874eef2c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342531
2 changed files with 22 additions and 10 deletions
|
@ -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/
|
||||
|
|
|
@ -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/connectagram.png
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue