summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2016-02-08 21:56:54 +0300
committerSergey Popov <pinkbyte@gentoo.org>2016-02-08 22:00:17 +0300
commit1643208d26e8341f70085dd2328f91662252658b (patch)
treefbed2955bdbda03d6efaaca33c7f6ee862ebd66b
parentapp-crypt/simp_le: simple let's encrypt client (diff)
downloadgentoo-1643208d26e8341f70085dd2328f91662252658b.tar.gz
gentoo-1643208d26e8341f70085dd2328f91662252658b.tar.bz2
gentoo-1643208d26e8341f70085dd2328f91662252658b.zip
net-p2p/retroshare: add support for building with Qt4
Reported-by: Stanislav Nikitin <pztrn@pztrn.name> Gentoo-Bug: 568176 Package-Manager: portage-2.2.27
-rw-r--r--net-p2p/retroshare/retroshare-0.6.9999.ebuild41
1 files changed, 30 insertions, 11 deletions
diff --git a/net-p2p/retroshare/retroshare-0.6.9999.ebuild b/net-p2p/retroshare/retroshare-0.6.9999.ebuild
index 981025eae4e6..3b2a078e5c59 100644
--- a/net-p2p/retroshare/retroshare-0.6.9999.ebuild
+++ b/net-p2p/retroshare/retroshare-0.6.9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
EGIT_REPO_URI="https://github.com/RetroShare/RetroShare.git"
-inherit eutils git-r3 gnome2-utils multilib qmake-utils
+inherit eutils git-r3 gnome2-utils qmake-utils
DESCRIPTION="P2P private sharing application"
HOMEPAGE="http://retroshare.sourceforge.net"
@@ -15,10 +15,11 @@ LICENSE="GPL-2 GPL-3 Apache-2.0 LGPL-2.1"
SLOT="0"
KEYWORDS=""
-IUSE="cli feedreader +qt5 voip"
-REQUIRED_USE="|| ( cli qt5 )
- feedreader? ( qt5 )
- voip? ( qt5 )"
+IUSE="cli feedreader qt4 +qt5 voip"
+REQUIRED_USE="^^ ( qt4 qt5 )
+ || ( cli qt4 qt5 )
+ feedreader? ( || ( qt4 qt5 ) )
+ voip? ( || ( qt4 qt5 ) )"
RDEPEND="
app-arch/bzip2
@@ -37,6 +38,13 @@ RDEPEND="
dev-libs/libxslt
net-misc/curl
)
+ qt4? (
+ x11-libs/libX11
+ x11-libs/libXScrnSaver
+ dev-qt/designer:4
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )
qt5? (
x11-libs/libX11
x11-libs/libXScrnSaver
@@ -52,12 +60,20 @@ RDEPEND="
dev-qt/qtxml:5
)
voip? (
- <media-libs/opencv-3.0.0[-qt4]
+ qt5? (
+ <media-libs/opencv-3.0.0[-qt4]
+ )
+ qt4? (
+ <media-libs/opencv-3.0.0
+ dev-qt/qtmultimedia:4
+ dev-qt/qt-mobility[multimedia]
+ )
media-libs/speex
virtual/ffmpeg[encode]
)"
DEPEND="${RDEPEND}
- dev-qt/qtcore:5
+ qt4? ( dev-qt/qtcore:4 )
+ qt5? ( dev-qt/qtcore:5 )
virtual/pkgconfig"
src_prepare() {
@@ -71,6 +87,7 @@ src_prepare() {
rs_src_dirs="libbitdht/src openpgpsdk/src libresapi/src libretroshare/src supportlibs/pegmarkdown"
use cli && rs_src_dirs="${rs_src_dirs} retroshare-nogui/src"
use feedreader && rs_src_dirs="${rs_src_dirs} plugins/FeedReader"
+ use qt4 && rs_src_dirs="${rs_src_dirs} retroshare-gui/src"
use qt5 && rs_src_dirs="${rs_src_dirs} retroshare-gui/src"
use voip && rs_src_dirs="${rs_src_dirs} plugins/VOIP"
@@ -80,13 +97,14 @@ src_prepare() {
retroshare-gui/src/retroshare-gui.pro \
retroshare-nogui/src/retroshare-nogui.pro || die 'sed on retroshare-gui/src/retroshare-gui.pro failed'
- epatch_user
+ eapply_user
}
src_configure() {
for dir in ${rs_src_dirs} ; do
pushd "${S}/${dir}" 2>/dev/null || die
- eqmake5
+ use qt4 && eqmake4
+ use qt5 && eqmake5
popd 2>/dev/null || die
done
}
@@ -106,6 +124,7 @@ src_install() {
local extension_dir="/usr/$(get_libdir)/${PN}/extensions6/"
use cli && dobin retroshare-nogui/src/RetroShare06-nogui
+ use qt4 && dobin retroshare-gui/src/RetroShare06
use qt5 && dobin retroshare-gui/src/RetroShare06
exeinto "${extension_dir}"