[net-im/swift] drycode qt5 stuff, remove bundled lua

This commit is contained in:
Robert Förster 2016-02-07 01:53:34 +01:00
parent 843a8ffd24
commit 47afef4a87

View File

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -6,7 +6,7 @@ EAPI="5"
LANGS="ca de es fr gl he hu nl pl ru sk sv"
inherit multilib toolchain-funcs linux-info qt4-r2 scons-utils
inherit multilib toolchain-funcs linux-info scons-utils
if [[ ${PV} = "9999" ]] ; then
EGIT_REPO_URI="git://swift.im/swift"
@ -23,7 +23,7 @@ HOMEPAGE="http://swift.im/"
LICENSE="GPL-3"
SLOT="0"
IUSE="debug doc examples +expat qt4 ssl static-libs zeroconf"
IUSE="debug doc examples +expat qt5 ssl static-libs zeroconf"
RDEPEND="
dev-libs/boost:=
@ -31,16 +31,20 @@ RDEPEND="
!expat? ( dev-libs/libxml2 )
ssl? ( dev-libs/openssl )
zeroconf? ( net-dns/avahi )
dev-lang/lua
net-dns/libidn
net-dns/unbound
net-libs/ldns
net-libs/libnatpmp
net-libs/miniupnpc
sys-libs/zlib
qt4? (
qt5? (
x11-libs/libXScrnSaver
dev-qt/qtgui
dev-qt/qtwebkit
dev-qt/qtgui:5
dev-qt/qtwebkit:5
dev-qt/qtwidgets:5
dev-qt/qtmultimedia:5
dev-qt/qtx11extras:5
)
"
DEPEND="${RDEPEND}
@ -53,7 +57,7 @@ DEPEND="${RDEPEND}
scons_targets=()
set_scons_targets() {
scons_targets=( Swiften )
use qt4 && scons_targets+=( Swift )
use qt5 && scons_targets+=( Swift )
use zeroconf && scons_targets+=( Slimber )
use examples && scons_targets+=(
Documentation/SwiftenDevelopersGuide/Examples
@ -87,12 +91,12 @@ set_scons_vars() {
src_prepare() {
mkdir local-qt
ln -s "${EPREFIX}"/usr/$(get_libdir)/qt4 local-qt/lib || die
ln -s "${EPREFIX}"/usr/include/qt4 local-qt/include || die
ln -s "${EPREFIX}"/usr/$(get_libdir)/qt5 local-qt/lib || die
ln -s "${EPREFIX}"/usr/include/qt5 local-qt/include || die
cd 3rdParty || die
# TODO CppUnit, Lua
rm -r Boost DocBook Expat LCov Ldns LibIDN LibMiniUPnPc LibNATPMP OpenSSL SCons SQLite Unbound ZLib || die
# TODO CppUnit
rm -r Boost DocBook Expat LCov Ldns LibIDN Lua LibMiniUPnPc LibNATPMP OpenSSL SCons SQLite Unbound ZLib || die
cd .. || die
for x in ${LANGS}; do
@ -113,11 +117,10 @@ src_prepare() {
Slimber \
Sluift \
Swiften/Examples \
Swiften/QA \
Swiftob || die
Swiften/QA || die
fi
if use !qt4; then
if use !qt5; then
rm -rf Swift || die
fi