Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2017 09:01:10 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r430924 - head/net-im/coccinella
Message-ID:  <201701090901.v0991ASe079170@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Jan  9 09:01:10 2017
New Revision: 430924
URL: https://svnweb.freebsd.org/changeset/ports/430924

Log:
  - Add LICENSE_FILE
  - Add NO_ARCH
  - Switch to options helpers
  - Simplify documentation installation

Modified:
  head/net-im/coccinella/Makefile

Modified: head/net-im/coccinella/Makefile
==============================================================================
--- head/net-im/coccinella/Makefile	Mon Jan  9 08:58:09 2017	(r430923)
+++ head/net-im/coccinella/Makefile	Mon Jan  9 09:01:10 2017	(r430924)
@@ -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>



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