[net-im/swift] drycode qt5 stuff, remove bundled lua
This commit is contained in:
parent
843a8ffd24
commit
47afef4a87
@ -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
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
@ -6,7 +6,7 @@ EAPI="5"
|
|||||||
|
|
||||||
LANGS="ca de es fr gl he hu nl pl ru sk sv"
|
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
|
if [[ ${PV} = "9999" ]] ; then
|
||||||
EGIT_REPO_URI="git://swift.im/swift"
|
EGIT_REPO_URI="git://swift.im/swift"
|
||||||
@ -23,7 +23,7 @@ HOMEPAGE="http://swift.im/"
|
|||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="debug doc examples +expat qt4 ssl static-libs zeroconf"
|
IUSE="debug doc examples +expat qt5 ssl static-libs zeroconf"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-libs/boost:=
|
dev-libs/boost:=
|
||||||
@ -31,16 +31,20 @@ RDEPEND="
|
|||||||
!expat? ( dev-libs/libxml2 )
|
!expat? ( dev-libs/libxml2 )
|
||||||
ssl? ( dev-libs/openssl )
|
ssl? ( dev-libs/openssl )
|
||||||
zeroconf? ( net-dns/avahi )
|
zeroconf? ( net-dns/avahi )
|
||||||
|
dev-lang/lua
|
||||||
net-dns/libidn
|
net-dns/libidn
|
||||||
net-dns/unbound
|
net-dns/unbound
|
||||||
net-libs/ldns
|
net-libs/ldns
|
||||||
net-libs/libnatpmp
|
net-libs/libnatpmp
|
||||||
net-libs/miniupnpc
|
net-libs/miniupnpc
|
||||||
sys-libs/zlib
|
sys-libs/zlib
|
||||||
qt4? (
|
qt5? (
|
||||||
x11-libs/libXScrnSaver
|
x11-libs/libXScrnSaver
|
||||||
dev-qt/qtgui
|
dev-qt/qtgui:5
|
||||||
dev-qt/qtwebkit
|
dev-qt/qtwebkit:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtmultimedia:5
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
DEPEND="${RDEPEND}
|
DEPEND="${RDEPEND}
|
||||||
@ -53,7 +57,7 @@ DEPEND="${RDEPEND}
|
|||||||
scons_targets=()
|
scons_targets=()
|
||||||
set_scons_targets() {
|
set_scons_targets() {
|
||||||
scons_targets=( Swiften )
|
scons_targets=( Swiften )
|
||||||
use qt4 && scons_targets+=( Swift )
|
use qt5 && scons_targets+=( Swift )
|
||||||
use zeroconf && scons_targets+=( Slimber )
|
use zeroconf && scons_targets+=( Slimber )
|
||||||
use examples && scons_targets+=(
|
use examples && scons_targets+=(
|
||||||
Documentation/SwiftenDevelopersGuide/Examples
|
Documentation/SwiftenDevelopersGuide/Examples
|
||||||
@ -87,12 +91,12 @@ set_scons_vars() {
|
|||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
mkdir local-qt
|
mkdir local-qt
|
||||||
ln -s "${EPREFIX}"/usr/$(get_libdir)/qt4 local-qt/lib || die
|
ln -s "${EPREFIX}"/usr/$(get_libdir)/qt5 local-qt/lib || die
|
||||||
ln -s "${EPREFIX}"/usr/include/qt4 local-qt/include || die
|
ln -s "${EPREFIX}"/usr/include/qt5 local-qt/include || die
|
||||||
|
|
||||||
cd 3rdParty || die
|
cd 3rdParty || die
|
||||||
# TODO CppUnit, Lua
|
# TODO CppUnit
|
||||||
rm -r Boost DocBook Expat LCov Ldns LibIDN LibMiniUPnPc LibNATPMP OpenSSL SCons SQLite Unbound ZLib || die
|
rm -r Boost DocBook Expat LCov Ldns LibIDN Lua LibMiniUPnPc LibNATPMP OpenSSL SCons SQLite Unbound ZLib || die
|
||||||
cd .. || die
|
cd .. || die
|
||||||
|
|
||||||
for x in ${LANGS}; do
|
for x in ${LANGS}; do
|
||||||
@ -113,11 +117,10 @@ src_prepare() {
|
|||||||
Slimber \
|
Slimber \
|
||||||
Sluift \
|
Sluift \
|
||||||
Swiften/Examples \
|
Swiften/Examples \
|
||||||
Swiften/QA \
|
Swiften/QA || die
|
||||||
Swiftob || die
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if use !qt4; then
|
if use !qt5; then
|
||||||
rm -rf Swift || die
|
rm -rf Swift || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user