svn commit: r456409 - head/graphics/darknock
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Dec 15 17:08:58 UTC 2017
Author: amdmi3
Date: Fri Dec 15 17:08:56 2017
New Revision: 456409
URL: https://svnweb.freebsd.org/changeset/ports/456409
Log:
- Fix whitespace
- Switch to options helpers
Modified:
head/graphics/darknock/Makefile
Modified: head/graphics/darknock/Makefile
==============================================================================
--- head/graphics/darknock/Makefile Fri Dec 15 17:07:50 2017 (r456408)
+++ head/graphics/darknock/Makefile Fri Dec 15 17:08:56 2017 (r456409)
@@ -20,22 +20,18 @@ USE_QT4= gui linguisttools_build moc_build rcc_build u
PORTDOCS= changelog
PLIST_FILES= bin/darknock share/pixmaps/darknock.png
-DESKTOP_ENTRIES= "${PORTNAME}" \
- "${COMMENT}" \
- "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
- "${PORTNAME}" \
- "Graphics;Qt;" \
- "true"
+DESKTOP_ENTRIES="${PORTNAME}" \
+ "" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
+ "${PORTNAME}" \
+ "Graphics;Qt;" \
+ "true"
OPTIONS_DEFINE= DOCS NLS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
.for lang in fr it pl ro sv tr
-PLIST_FILES+= %%DATADIR%%/locale/darknock_${lang}.qm
+NLS_PLIST_FILES+= %%DATADIR%%/locale/darknock_${lang}.qm
.endfor
-.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/darknock|${DATADIR}|g' \
@@ -47,13 +43,13 @@ pre-configure:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
-.if ${PORT_OPTIONS:MNLS}
+
+do-install-NLS-on:
@${MKDIR} ${STAGEDIR}${DATADIR}/locale
${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${STAGEDIR}${DATADIR}/locale
-.endif
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/changelog ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list