diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-01-09 17:01:10 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-01-09 17:01:10 +0800 |
commit | f3afcca5e6f798f0cd9979db2b4f3ce7d45dcc1e (patch) | |
tree | 2a81e7a6d73e2a2fc6af61192ec65cde0a59c834 /net-im | |
parent | 37d7e7e512a7b04e90e8b6b7929466024818721f (diff) | |
download | freebsd-ports-gnome-f3afcca5e6f798f0cd9979db2b4f3ce7d45dcc1e.tar.gz freebsd-ports-gnome-f3afcca5e6f798f0cd9979db2b4f3ce7d45dcc1e.tar.zst freebsd-ports-gnome-f3afcca5e6f798f0cd9979db2b4f3ce7d45dcc1e.zip |
- Add LICENSE_FILE
- Add NO_ARCH
- Switch to options helpers
- Simplify documentation installation
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/coccinella/Makefile | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/net-im/coccinella/Makefile b/net-im/coccinella/Makefile index 1e85e3852a07..bfd8495774cc 100644 --- a/net-im/coccinella/Makefile +++ b/net-im/coccinella/Makefile @@ -12,6 +12,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Jabber client with whiteboard communication LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING.txt RUN_DEPENDS= snack>=0:audio/snack \ tcltls>=0:devel/tcltls \ @@ -19,27 +20,19 @@ RUN_DEPENDS= snack>=0:audio/snack \ tktray>=0:x11-toolkits/tktray \ tktreectrl>=0:x11-toolkits/tktreectrl -NO_BUILD= yes USES= tk +NO_BUILD= yes +NO_ARCH= yes PORTDOCS= * -DOCSRCDIR1= ${WRKSRC} -DOC_FILES1= AUTHORS.txt CHANGES.txt README.txt - -DOCSRCDIR2= ${WRKSRC}/READMEs -DOCSDIR2= ${DOCSDIR}/READMEs -DOC_FILES2= * +DESKTOP_ENTRIES="Coccinella" "" "${PORTNAME}" \ + "${PORTNAME}" "Network;InstantMessaging;" "" OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_USES= gettext -DESKTOP_ENTRIES="Coccinella" "" "${PORTNAME}" \ - "${PORTNAME}" "Network;InstantMessaging;" "" - -.include <bsd.port.options.mk> - post-patch: @${REINPLACE_CMD} -e '1s|/usr/bin/env wish|${WISH}|' \ ${WRKSRC}/Coccinella.tcl @@ -52,20 +45,17 @@ do-install: @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}) .endfor ${INSTALL_SCRIPT} ${WRKSRC}/Coccinella.tcl ${STAGEDIR}${DATADIR} - @${LN} -sf ${DATADIR}/Coccinella.tcl ${STAGEDIR}${PREFIX}/bin/coccinella - + ${LN} -sf ${DATADIR}/Coccinella.tcl ${STAGEDIR}${PREFIX}/bin/coccinella ${LN} -sf ${DATADIR}/themes/Oxygen/icons/64x64/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ -.if ${PORT_OPTIONS:MNLS} +do-install-NLS-on: @(cd ${WRKSRC}/po && ${CHMOD} 755 compile.tcl && \ ./compile.tcl) @(cd ${WRKSRC}/msgs && ${COPYTREE_SHARE} "*.msg" ${STAGEDIR}${DATADIR}/msgs) -.endif +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} - @${MKDIR} ${STAGEDIR}${DOCSDIR2} - ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} + cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS.txt CHANGES.txt README.txt READMEs" ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |