Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2018 21:49:53 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r464027 - head/net-im/coccinella
Message-ID:  <201803092149.w29Lnr5K037762@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Fri Mar  9 21:49:53 2018
New Revision: 464027
URL: https://svnweb.freebsd.org/changeset/ports/464027

Log:
  Use USES=shebangfix
  
  - Resolve absolute pathnames
  - Do not silence installation messages
  - Update pkg-descr
  - Update WWW
  - Bump PORTREVISION for package change

Modified:
  head/net-im/coccinella/Makefile
  head/net-im/coccinella/pkg-descr

Modified: head/net-im/coccinella/Makefile
==============================================================================
--- head/net-im/coccinella/Makefile	Fri Mar  9 21:49:47 2018	(r464026)
+++ head/net-im/coccinella/Makefile	Fri Mar  9 21:49:53 2018	(r464027)
@@ -3,7 +3,7 @@
 
 PORTNAME=	coccinella
 PORTVERSION=	0.96.20
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-im tk
 MASTER_SITES=	SF
 DISTNAME=	Coccinella-${PORTVERSION}Src
@@ -20,42 +20,46 @@ RUN_DEPENDS=	snack>=0:audio/snack \
 		tktray>=0:x11-toolkits/tktray \
 		tktreectrl>=0:x11-toolkits/tktreectrl
 
-USES=		tk
+USES=		shebangfix tk
 NO_BUILD=	yes
 NO_ARCH=	yes
 
 PORTDOCS=	*
 
-DESKTOP_ENTRIES="Coccinella" "" "${PORTNAME}" \
-		"${PORTNAME}" "Network;InstantMessaging;" ""
+SHEBANG_FILES=	Coccinella.tcl
+SHEBANG_LANG=	wish
+wish_CMD=	${WISH}
 
+DESKTOP_ENTRIES="Coccinella" "" "${PORTNAME}" "${PORTNAME}" "Network;InstantMessaging;" ""
+
 OPTIONS_DEFINE=	DOCS NLS
 OPTIONS_SUB=	yes
 NLS_USES=	gettext
 
-post-patch:
-	@${REINPLACE_CMD} -e '1s|/usr/bin/env wish|${WISH}|' \
-		${WRKSRC}/Coccinella.tcl
-	@${REINPLACE_CMD} -e 's|exec tclsh|exec ${TCLSH}|' \
-		${WRKSRC}/po/compile.tcl
+post-patch-NLS-on:
+	@${REINPLACE_CMD} -e 's|exec tclsh|exec ${TCLSH}|' ${WRKSRC}/po/compile.tcl
+	@${CHMOD} 755 ${WRKSRC}/po/compile.tcl
 
+post-build-NLS-on:
+	(cd ${WRKSRC}/po && ./compile.tcl)
+
 do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${PREFIX}/share/pixmaps/
+	${INSTALL_SCRIPT} ${WRKSRC}/Coccinella.tcl ${STAGEDIR}${DATADIR}
+	${RLN} ${STAGEDIR}${DATADIR}/Coccinella.tcl ${STAGEDIR}${PREFIX}/bin/coccinella
 .for dir in TclXML certificates components contrib docs httpd iconsets items \
 	jabber jabberlib lib plugins resources themes whiteboard xmpp
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR})
+	(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}/themes/Oxygen/icons/64x64/${PORTNAME}.png \
-		${STAGEDIR}${PREFIX}/share/pixmaps/
+	${RLN} ${STAGEDIR}${DATADIR}/themes/Oxygen/icons/64x64/coccinella.png ${STAGEDIR}${PREFIX}/share/pixmaps/coccinella.png
 
 do-install-NLS-on:
-	@(cd ${WRKSRC}/po && ${CHMOD} 755 compile.tcl && \
-		./compile.tcl)
-	@(cd ${WRKSRC}/msgs && ${COPYTREE_SHARE} "*.msg" ${STAGEDIR}${DATADIR}/msgs)
+	@${MKDIR} ${STAGEDIR}${DATADIR}/msgs
+	${INSTALL_DATA} ${WRKSRC}/msgs/*.msg ${STAGEDIR}${DATADIR}/msgs
 
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS.txt CHANGES.txt README.txt READMEs" ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS.txt CHANGES.txt README.txt ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/READMEs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/net-im/coccinella/pkg-descr
==============================================================================
--- head/net-im/coccinella/pkg-descr	Fri Mar  9 21:49:47 2018	(r464026)
+++ head/net-im/coccinella/pkg-descr	Fri Mar  9 21:49:53 2018	(r464027)
@@ -1,6 +1,5 @@
-Coccinella is a Jabber chat client with whiteboard communication. The
-whiteboard let you share your mp3s, photos, and lots of other stuff.
-Further it accepts any fonts. So you will also be able to share mathematical
-formulas with your contacts.
+Coccinella is a free and open-source cross-platform communication tool with a
+built-in whiteboard for improved collaboration with other people.
 
+WWW: http://thecoccinella.org/
 WWW: https://sourceforge.net/projects/coccinella/



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