Permalink
Browse files

Adding net-p2p/retroshare

  • Loading branch information...
1 parent 8b8c580 commit 0a3dee6c90edbe55e61ab80e574d018966c5b61e @letharion committed Mar 4, 2012
@@ -0,0 +1,7 @@
+AUX retroshare-0.5.3a.patch 1096 RMD160 d4afcc133a04ad47bd1603c6d6f7d1e0458a4908 SHA1 09d8b57764492e8be6dab9d05bb7614dc0a6e43c SHA256 386c39ef8a6293191d3ed63bcf039b7c8b8d8cd90ca13812ef6250c67b882e50
+AUX retroshare-0.5.3b.patch 1096 RMD160 d4afcc133a04ad47bd1603c6d6f7d1e0458a4908 SHA1 09d8b57764492e8be6dab9d05bb7614dc0a6e43c SHA256 386c39ef8a6293191d3ed63bcf039b7c8b8d8cd90ca13812ef6250c67b882e50
+DIST RetroShare-v0.5.3a.tar.gz 6419672 RMD160 ae1b8c2c0bc1e920cda01c8f15694cd42dcf3f2f SHA1 627cbb92cb8504af8d7f6492cad7853e74da8dd9 SHA256 744f3d410c57e51455d07fe9e77dc9e645a58de454ce5248aa8704c41d2df3a4
+DIST RetroShare-v0.5.3b.tar.gz 6469254 RMD160 c4a6ee3c0e75488ccb9a8119fbf00812ca9ab03f SHA1 a9faa369aad99b018a16a3c3a2661995e0a1ecfc SHA256 bd602a8a144597381659191561c19aaf9993eab0e0955cba8e6923b7efa30b0e
+EBUILD retroshare-0.5.3a.ebuild 1784 RMD160 d8224cce25b319a2f2b1bfd54c512223d2a8e95c SHA1 093ddca33c7c0791e7e2a5a96ea96e890255aca0 SHA256 6683f945400c62ea1a11444cbf0ebb1ff6fe4953d5e8d1d12502227b0dc3382d
+EBUILD retroshare-0.5.3b.ebuild 1771 RMD160 bd7f4bf4e167ced5780be843d60a6f455063bed9 SHA1 a1c23e7494930eeb4d4813ccb074c56ce9746c28 SHA256 1fc68edd1b19b08751a9239048775dfb2e501ce84c2f615a852f67b729afda57
+MISC metadata.xml 397 RMD160 6c34f2b4c1e46b14150b9d8a0e729158cbf1a290 SHA1 da82ce3eb74c3ff59b5695acf46fb61bd126ed2d SHA256 2f86578ffc7f54c0fac612d5bf3de25ede22ae9ebe144c83fc8be8baa4a6c072
@@ -0,0 +1,35 @@
+diff --git a/retroshare-gui/src/RetroShare.pro b/retroshare-gui/src/RetroShare.pro
+index 0099eb0..f6343ce 100644
+--- a/retroshare-gui/src/RetroShare.pro
++++ b/retroshare-gui/src/RetroShare.pro
+@@ -1,4 +1,5 @@
+ CONFIG += qt gui uic qrc resources uitools idle bitdht # framecatcher# blogs
++CONFIG += install_rs
+ QT += network xml script
+
+ TEMPLATE = app
+diff --git a/retroshare-nogui/src/retroshare-nogui.pro b/retroshare-nogui/src/retroshare-nogui.pro
+index b52c9e4..fcb4abf 100644
+--- a/retroshare-nogui/src/retroshare-nogui.pro
++++ b/retroshare-nogui/src/retroshare-nogui.pro
+@@ -1,6 +1,7 @@
+ TEMPLATE = app
+ TARGET = retroshare-nogui
+ CONFIG += bitdht
++CONFIG += install_rs
+ #CONFIG += introserver
+
+ ################################# Linux ##########################################
+@@ -18,6 +19,12 @@ linux-* {
+ LIBS += -lssl -lgpgme -lupnp -lixml -lgnome-keyring
+ }
+
++install_rs {
++ INSTALLS += binary_rs
++ binary_rs.path = $$(PREFIX)/usr/bin
++ binary_rs.files = ./retroshare-nogui
++}
++
+ linux-g++ {
+ OBJECTS_DIR = temp/linux-g++/obj
+ }
@@ -0,0 +1,35 @@
+diff --git a/retroshare-gui/src/RetroShare.pro b/retroshare-gui/src/RetroShare.pro
+index 0099eb0..f6343ce 100644
+--- a/retroshare-gui/src/RetroShare.pro
++++ b/retroshare-gui/src/RetroShare.pro
+@@ -1,4 +1,5 @@
+ CONFIG += qt gui uic qrc resources uitools idle bitdht # framecatcher# blogs
++CONFIG += install_rs
+ QT += network xml script
+
+ TEMPLATE = app
+diff --git a/retroshare-nogui/src/retroshare-nogui.pro b/retroshare-nogui/src/retroshare-nogui.pro
+index b52c9e4..fcb4abf 100644
+--- a/retroshare-nogui/src/retroshare-nogui.pro
++++ b/retroshare-nogui/src/retroshare-nogui.pro
+@@ -1,6 +1,7 @@
+ TEMPLATE = app
+ TARGET = retroshare-nogui
+ CONFIG += bitdht
++CONFIG += install_rs
+ #CONFIG += introserver
+
+ ################################# Linux ##########################################
+@@ -18,6 +19,12 @@ linux-* {
+ LIBS += -lssl -lgpgme -lupnp -lixml -lgnome-keyring
+ }
+
++install_rs {
++ INSTALLS += binary_rs
++ binary_rs.path = $$(PREFIX)/usr/bin
++ binary_rs.files = ./retroshare-nogui
++}
++
+ linux-g++ {
+ OBJECTS_DIR = temp/linux-g++/obj
+ }
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>leander256@gmail.com</email>
+ <name>leander256</name>
+ </maintainer>
+ <use>
+ <flag name="cli">Enables the CLI version of RetroShare</flag>
+ <flag name="qt4">Enables the GUI version of RetroShare</flag>
+ </use>
+</pkgmetadata>
@@ -0,0 +1,83 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils versionator multilib
+
+MY_PN="RetroShare-v"
+MY_P="${MY_PN}${PV}"
+MY_SLOT=$(get_version_component_range 1-3)
+DESCRIPTION="P2P private sharing application"
+HOMEPAGE="http://retroshare.sourceforge.net"
+SRC_URI="mirror://sourceforge/retroshare/${MY_P}.tar.gz"
+S="${WORKDIR}/trunk/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug cli +qt4"
+
+RDEPEND="app-crypt/gpgme
+ dev-libs/libgpg-error
+ gnome-base/libgnome-keyring
+ net-libs/libupnp
+ x11-libs/qt-core:4
+ qt4? (
+ x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4
+ )
+"
+DEPEND="${RDEPEND}
+ !net-p2p/retroshare-gui
+ !net-p2p/retroshare-cli"
+
+REQUIRED_USE="|| ( cli qt4 )"
+
+src_prepare() {
+ epatch "${FILESDIR}/retroshare-0.5.3a.patch"
+ sed -i -e \
+ "s|/usr/lib/retroshare/extensions/|/usr/$(get_libdir)/${PN}/extensions/|" \
+ libretroshare/src/rsserver/rsinit.cc \
+ || die "sed failed"
+}
+
+src_compile() {
+ cd "${WORKDIR}/trunk/libbitdht/src"
+ qmake -makefile libbitdht.pro || die
+ emake
+
+ cd "${WORKDIR}/trunk/libretroshare/src"
+ qmake -makefile libretroshare.pro || die
+ emake
+
+ if use qt4; then
+ cd "${WORKDIR}/trunk/retroshare-gui/src"
+ qmake -makefile RetroShare.pro || die
+ emake
+ fi
+
+ if use cli; then
+ cd "${WORKDIR}/trunk/retroshare-nogui/src"
+ qmake -makefile retroshare-nogui.pro || die
+ emake
+ fi
+}
+
+src_install() {
+ if use qt4; then
+ cd "${WORKDIR}/trunk/retroshare-gui/src"
+ emake INSTALL_ROOT="${D}" install
+ fi
+
+ if use cli; then
+ cd "${WORKDIR}/trunk/retroshare-nogui/src"
+ emake INSTALL_ROOT="${D}" install
+ fi
+}
+
+pkg_postinst() {
+ use qt4 && einfo "The GUI executable name is: RetroShare"
+ use cli && einfo "The console executable name is: retroshare-cli"
+}
@@ -0,0 +1,83 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils versionator multilib
+
+MY_PN="RetroShare-v"
+MY_P="${MY_PN}${PV}"
+MY_SLOT=$(get_version_component_range 1-3)
+DESCRIPTION="P2P private sharing application"
+HOMEPAGE="http://retroshare.sourceforge.net"
+SRC_URI="mirror://sourceforge/retroshare/${MY_P}.tar.gz"
+S="${WORKDIR}/trunk/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug cli +qt4"
+
+RDEPEND="app-crypt/gpgme
+ dev-libs/libgpg-error
+ gnome-base/libgnome-keyring
+ net-libs/libupnp
+ x11-libs/qt-core:4
+ qt4? (
+ x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4
+ )
+"
+DEPEND="${RDEPEND}
+ !net-p2p/retroshare-gui
+ !net-p2p/retroshare-cli"
+
+REQUIRED_USE="|| ( cli qt4 )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}.patch"
+ sed -i -e \
+ "s|/usr/lib/retroshare/extensions/|/usr/$(get_libdir)/${PN}/extensions/|" \
+ libretroshare/src/rsserver/rsinit.cc \
+ || die "sed failed"
+}
+
+src_compile() {
+ cd "${WORKDIR}/trunk/libbitdht/src"
+ qmake -makefile libbitdht.pro || die
+ emake
+
+ cd "${WORKDIR}/trunk/libretroshare/src"
+ qmake -makefile libretroshare.pro || die
+ emake
+
+ if use qt4; then
+ cd "${WORKDIR}/trunk/retroshare-gui/src"
+ qmake -makefile RetroShare.pro || die
+ emake
+ fi
+
+ if use cli; then
+ cd "${WORKDIR}/trunk/retroshare-nogui/src"
+ qmake -makefile retroshare-nogui.pro || die
+ emake
+ fi
+}
+
+src_install() {
+ if use qt4; then
+ cd "${WORKDIR}/trunk/retroshare-gui/src"
+ emake INSTALL_ROOT="${D}" install
+ fi
+
+ if use cli; then
+ cd "${WORKDIR}/trunk/retroshare-nogui/src"
+ emake INSTALL_ROOT="${D}" install
+ fi
+}
+
+pkg_postinst() {
+ use qt4 && einfo "The GUI executable name is: RetroShare"
+ use cli && einfo "The console executable name is: retroshare-cli"
+}

0 comments on commit 0a3dee6

Please sign in to comment.