Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 21:52:27 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r313128 - in head/net-p2p/retroshare: . files
Message-ID:  <201302282152.r1SLqRHX063597@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Feb 28 21:52:26 2013
New Revision: 313128
URL: http://svnweb.freebsd.org/changeset/ports/313128

Log:
  - Update to version 0.5.4d [1]
  - Add option to install plugins [1]
  - Fix build with clang
  
  PR:		ports/175310 [1]
  Submitted by:	Peter Klett <peter@netkey.at> (maintainer)

Added:
  head/net-p2p/retroshare/files/patch-plugins-VOIP-VOIP.pro   (contents, props changed)
  head/net-p2p/retroshare/files/patch-retroshare-gui-src-gui-common-GroupTreeWidget.cpp   (contents, props changed)
Modified:
  head/net-p2p/retroshare/Makefile
  head/net-p2p/retroshare/distinfo   (contents, props changed)
  head/net-p2p/retroshare/files/patch-retroshare-gui-src-retroshare-gui.pro
  head/net-p2p/retroshare/pkg-plist   (contents, props changed)

Modified: head/net-p2p/retroshare/Makefile
==============================================================================
--- head/net-p2p/retroshare/Makefile	Thu Feb 28 21:02:28 2013	(r313127)
+++ head/net-p2p/retroshare/Makefile	Thu Feb 28 21:52:26 2013	(r313128)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	retroshare
-PORTVERSION=	0.5.4b
-PORTREVISION=	2
+PORTVERSION=	0.5.4d
 CATEGORIES=	net-p2p
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=${PORTNAME}/${BINARY}/${PORTVERSION}
@@ -45,17 +44,26 @@ MAKE_JOBS_UNSAFE=yes
 DESKTOP_ENTRIES="${BINARY}" "${COMMENT}" "" "${BINARY}" \
 		"Network;FileTransfer;" true
 
-OPTIONS_DEFINE=	NOGUI
-NOGUI_DESC=		"Install retroshare-nogui binary"
+OPTIONS_DEFINE=	NOGUI PLUGINS
+OPTIONS_DEFAULT=	PLUGINS
+NOGUI_DESC=		Install retroshare-nogui (CLI binary)
+PLUGINS_DESC=	Install plugins (LinksCloud, VoIP)
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MPLUGINS}
+LIB_DEPENDS+=	speex:${PORTSDIR}/audio/speex
+USE_QT4+=	multimedia
+USE_LDCONFIG=	yes
+.endif
+
 do-configure:
 	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
 		${QMAKE} PREFIX=${PREFIX} ${BINARY}.pro
 
 USE_DOS2UNIX=	retroshare-gui/src/retroshare-gui.pro \
-	retroshare-nogui/src/retroshare-nogui.pro
+		retroshare-nogui/src/retroshare-nogui.pro \
+		retroshare-gui/src/gui/common/GroupTreeWidget.cpp
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
@@ -69,13 +77,22 @@ post-patch:
 .if empty(PORT_OPTIONS:MNOGUI)
 	@${REINPLACE_CMD} -e 's|retroshare-nogui|#retroshare-nogui|' \
 		${WRKSRC}/${BINARY}.pro
+.if empty(PORT_OPTIONS:MPLUGINS)
 	@${REINPLACE_CMD} -e 's|retroshare-gui.pro \\|retroshare-gui.pro|' \
 		${WRKSRC}/${BINARY}.pro
+.endif
 .else
+.if empty(PORT_OPTIONS:MPLUGINS)
 	@${REINPLACE_CMD} -e 's|retroshare-nogui.pro \\|retroshare-nogui.pro|' \
 		${WRKSRC}/${BINARY}.pro
 .endif
+.endif
+.if empty(PORT_OPTIONS:MPLUGINS)
 	@${REINPLACE_CMD} -e 's|plugins|#plugins|' ${WRKSRC}/${BINARY}.pro
+.else
+	@${REINPLACE_CMD} -e 's|/usr/lib|${LOCALBASE}/lib|' \
+		${WRKSRC}/libretroshare/src/rsserver/rsinit.cc
+.endif
 
 pre-install:
 .if empty(PORT_OPTIONS:MNOGUI)
@@ -83,6 +100,11 @@ PLIST_SUB+=	NOGUI="@comment "
 .else
 PLIST_SUB+=	NOGUI=""
 .endif
+.if empty(PORT_OPTIONS:MPLUGINS)
+PLIST_SUB+=	PLUGINS="@comment "
+.else
+PLIST_SUB+=	PLUGINS=""
+.endif
 
 post-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/retroshare-gui/src/${BINARY} ${PREFIX}/bin
@@ -91,5 +113,16 @@ post-install:
 .endif
 	${MKDIR} ${DATADIR}
 	${INSTALL_MAN} ${WRKSRC}/libbitdht/src/example/bdboot.txt ${DATADIR}
+.if ${PORT_OPTIONS:MPLUGINS}
+	${MKDIR} ${PREFIX}/lib/retroshare
+	${MKDIR} ${PREFIX}/lib/retroshare/extensions
+	${INSTALL_LIB} ${WRKSRC}/plugins/LinksCloud/libLinksCloud.so.1.0.0 \
+		${PREFIX}/lib/retroshare/extensions/libLinksCloud.so.1
+	${INSTALL_LIB} ${WRKSRC}/plugins/VOIP/libVOIP.so.1.0.0 \
+		${PREFIX}/lib/retroshare/extensions/libVOIP.so.1
+	@cd ${PREFIX}/lib/retroshare/extensions && \
+		${LN} -s libLinksCloud.so.1 libLinksCloud.so && \
+		${LN} -s libVOIP.so.1 libVOIP.so
+.endif
 
 .include <bsd.port.mk>

Modified: head/net-p2p/retroshare/distinfo
==============================================================================
--- head/net-p2p/retroshare/distinfo	Thu Feb 28 21:02:28 2013	(r313127)
+++ head/net-p2p/retroshare/distinfo	Thu Feb 28 21:52:26 2013	(r313128)
@@ -1,2 +1,2 @@
-SHA256 (RetroShare-v0.5.4b.tar.gz) = 6570f9e3eab077e4f5637cf98c7b72c30afea5b2b811df6398d4919a1c2c0134
-SIZE (RetroShare-v0.5.4b.tar.gz) = 7322037
+SHA256 (RetroShare-v0.5.4d.tar.gz) = 2c5bcd1764829abc260d5c9328088a09307c00f0e15c3cc12a08ba3584d549c7
+SIZE (RetroShare-v0.5.4d.tar.gz) = 15914197

Added: head/net-p2p/retroshare/files/patch-plugins-VOIP-VOIP.pro
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/retroshare/files/patch-plugins-VOIP-VOIP.pro	Thu Feb 28 21:52:26 2013	(r313128)
@@ -0,0 +1,11 @@
+--- plugins/VOIP/VOIP.pro.orig	2012-10-29 11:31:20.931921695 +0100
++++ plugins/VOIP/VOIP.pro	2012-10-29 12:17:47.694925531 +0100
+@@ -9,7 +9,7 @@
+ QT_VER_MAJ = $$member(QT_VERSION, 0)
+ QT_VER_MIN = $$member(QT_VERSION, 1)
+  
+-lessThan(QT_VER_MAJ, 4) | lessThan(QT_VER_MIN, 7) | win32 {
++lessThan(QT_VER_MAJ, 4) | lessThan(QT_VER_MIN, 7) | win32 | freebsd-* {
+    QT += multimedia
+ }
+ 

Added: head/net-p2p/retroshare/files/patch-retroshare-gui-src-gui-common-GroupTreeWidget.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/retroshare/files/patch-retroshare-gui-src-gui-common-GroupTreeWidget.cpp	Thu Feb 28 21:52:26 2013	(r313128)
@@ -0,0 +1,22 @@
+--- ./retroshare-gui/src/gui/common/GroupTreeWidget.cpp.orig	2013-02-28 16:46:27.000000000 +0100
++++ retroshare-gui/src/gui/common/GroupTreeWidget.cpp	2013-02-28 16:47:15.000000000 +0100
+@@ -449,15 +449,15 @@
+ 
+ 	/* Find out which has given word in it */
+ 	QTreeWidgetItemIterator itemIterator(ui->treeWidget);
+-	QTreeWidgetItem *item;
+-	while ((item = *itemIterator) != NULL) {
++	QTreeWidgetItem *item2;
++	while ((item2 = *itemIterator) != NULL) {
+ 		itemIterator++;
+ 
+-		if (item->data(COLUMN_DATA, ROLE_ID).toString().isEmpty()) {
++		if (item2->data(COLUMN_DATA, ROLE_ID).toString().isEmpty()) {
+ 			continue;
+ 		}
+ 
+-		calculateScore(item, filterText);
++		calculateScore(item2, filterText);
+ 	}
+ }
+ 

Modified: head/net-p2p/retroshare/files/patch-retroshare-gui-src-retroshare-gui.pro
==============================================================================
--- head/net-p2p/retroshare/files/patch-retroshare-gui-src-retroshare-gui.pro	Thu Feb 28 21:02:28 2013	(r313127)
+++ head/net-p2p/retroshare/files/patch-retroshare-gui-src-retroshare-gui.pro	Thu Feb 28 21:52:26 2013	(r313128)
@@ -1,6 +1,6 @@
---- retroshare-gui/src/retroshare-gui.pro.orig	2012-10-08 19:37:47.000000000 +0200
-+++ retroshare-gui/src/retroshare-gui.pro	2012-10-08 20:10:51.000000000 +0200
-@@ -175,6 +175,7 @@
+--- retroshare-gui/src/retroshare-gui.pro.orig	2012-10-29 21:09:06.932916323 +0100
++++ retroshare-gui/src/retroshare-gui.pro	2012-10-29 21:10:17.747920258 +0100
+@@ -175,11 +175,14 @@
  freebsd-* {
  	INCLUDEPATH *= /usr/local/include/gpgme
  	LIBS *= ../../libretroshare/src/lib/libretroshare.a
@@ -8,3 +8,10 @@
  	LIBS *= -lssl
  	LIBS *= -lgpgme
  	LIBS *= -lupnp
+ 	LIBS *= -lgnome-keyring
+ 	PRE_TARGETDEPS *= ../../libretroshare/src/lib/libretroshare.a
++	# plugins need this
++	QMAKE_LFLAGS *= -rdynamic
+ }
+ 
+ ############################## Common stuff ######################################

Modified: head/net-p2p/retroshare/pkg-plist
==============================================================================
--- head/net-p2p/retroshare/pkg-plist	Thu Feb 28 21:02:28 2013	(r313127)
+++ head/net-p2p/retroshare/pkg-plist	Thu Feb 28 21:52:26 2013	(r313128)
@@ -1,4 +1,10 @@
 bin/RetroShare
 %%NOGUI%%bin/retroshare-nogui
+%%PLUGINS%%lib/retroshare/extensions/libLinksCloud.so
+%%PLUGINS%%lib/retroshare/extensions/libLinksCloud.so.1
+%%PLUGINS%%lib/retroshare/extensions/libVOIP.so
+%%PLUGINS%%lib/retroshare/extensions/libVOIP.so.1
 %%DATADIR%%/bdboot.txt
 @dirrm %%DATADIR%%
+%%PLUGINS%%@dirrm lib/retroshare/extensions
+%%PLUGINS%%@dirrm lib/retroshare



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