parent
1bed1fd576
commit
cfa1978f81
|
@ -1,13 +0,0 @@
|
||||||
-----BEGIN PGP SIGNED MESSAGE-----
|
|
||||||
Hash: SHA256
|
|
||||||
|
|
||||||
DIST swift-4.0.2.tar.bz2 15134765 BLAKE2B f2f75a6445a5403cf162588b28052be4962c3012be6a224869a40bf56edc037118b748b81cda29e304a8d21b057c4ae1c96676fb8c97b1d207f49693b6482f8a SHA512 f281eebc72472b4ec154f15ab49b2b98c2b4c8f3faf8264208fef77e0bb2cd057d417727a0054ce5c17407bcb58db8413db45b48065ac81061bbc82221aa8217
|
|
||||||
EBUILD swift-4.0.2-r2.ebuild 4131 BLAKE2B 9d459426b3fcc53a7666862a3196542f81dc1303938e04af8db4f499df1342a1e6a9fcc81f8446464c1d868bb0190ae3057e5b347bb36877ed17455d57b04035 SHA512 eaa5e7af7941a31d035f540cd3e1d54008e1d78b8f28026bd4039545d77fb65ed973010ef2a0ff70716f2ca56c7b63f0e17a414c0e413f8b84d95ec1df0364d5
|
|
||||||
MISC metadata.xml 409 BLAKE2B dd37ed4b7bf0fb0e1d3921238fdab6df2acc88f852e12d00f0a0c212163e90d86d406fec16932bdf87ffead61d14d881542327a53632fdb37a75c47cb3e292ce SHA512 3a7e27841c071bcd12425bdac29ec9ba35ec66f1602c6292aed21e9d43dff5322f2599e3e9adaece9d1d9aba917d297e30c5c5ca8d13f27b5b5580b6d01e9b66
|
|
||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCW5EXVgAKCRDPw5SX8bJu
|
|
||||||
B9l1AP45L47NAFgcgFJ22lBLYevNzADCjideO7ZkYRlgA8xruwD+KSfo/zTbvhhm
|
|
||||||
OEjr0kD+iDdHb+IJ0jEofhTg3ujjpBQ=
|
|
||||||
=LmVB
|
|
||||||
-----END PGP SIGNATURE-----
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>gentoo@tastytea.de</email>
|
|
||||||
<name>tastytea</name>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="gconf">Enable support for gnome-base/gconf</flag>
|
|
||||||
<flag name="hunspell">Enable spellchecking using app-text/hunspell</flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,178 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
inherit multilib toolchain-funcs linux-info python-any-r1 scons-utils eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Your friendly chat client"
|
|
||||||
HOMEPAGE="http://swift.im/"
|
|
||||||
SRC_URI="https://swift.im/git/swift/snapshot/${P}.tar.bz2"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="debug doc examples +expat gconf hunspell icu +idn +qt5 lua ssl static-libs test zeroconf"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/boost-1.56.0
|
|
||||||
sys-libs/zlib
|
|
||||||
expat? ( >=dev-libs/expat-2.0.1 )
|
|
||||||
|| ( dev-libs/libxml2 )
|
|
||||||
gconf? ( gnome-base/gconf )
|
|
||||||
hunspell? ( app-text/hunspell )
|
|
||||||
icu? ( dev-libs/icu )
|
|
||||||
idn? ( >=net-dns/libidn-1.10:* )
|
|
||||||
qt5? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtdbus:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtmultimedia:5
|
|
||||||
dev-qt/qtnetwork:5
|
|
||||||
dev-qt/qtwebkit:5
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
>=x11-libs/libXScrnSaver-1.2
|
|
||||||
)
|
|
||||||
ssl? ( >=dev-libs/openssl-1.0.2o-r6:* )
|
|
||||||
lua? ( >=dev-lang/lua-5.1.5-r4:* )
|
|
||||||
zeroconf? ( net-dns/avahi )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
doc? (
|
|
||||||
>=app-text/docbook-xsl-stylesheets-1.75
|
|
||||||
>=app-text/docbook-xml-dtd-4.5
|
|
||||||
dev-libs/libxslt
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
scons_targets=()
|
|
||||||
set_scons_targets() {
|
|
||||||
scons_targets=( Swiften )
|
|
||||||
use doc && scons_targets+=( Documentation )
|
|
||||||
use examples && scons_targets+=(
|
|
||||||
Documentation/SwiftenDevelopersGuide/Examples
|
|
||||||
Swiften/Config
|
|
||||||
Swiften/Examples
|
|
||||||
SwifTools
|
|
||||||
)
|
|
||||||
use qt5 && scons_targets+=( Swift )
|
|
||||||
use lua && scons_targets+=( Sluift )
|
|
||||||
use test && scons_targets+=( Swiften/QA )
|
|
||||||
use zeroconf && scons_targets+=( Limber Slimber )
|
|
||||||
}
|
|
||||||
|
|
||||||
scons_vars=()
|
|
||||||
set_scons_vars() {
|
|
||||||
scons_vars=(
|
|
||||||
V=1
|
|
||||||
allow_warnings=1
|
|
||||||
cc="$(tc-getCC)"
|
|
||||||
cxx="$(tc-getCXX)"
|
|
||||||
ccflags="${CXXFLAGS}"
|
|
||||||
linkflags="${LDFLAGS}"
|
|
||||||
|
|
||||||
debug=$(usex debug)
|
|
||||||
doc=$(usex doc)
|
|
||||||
docbook_xsl="${EPREFIX}/usr/share/sgml/docbook/xsl-stylesheets"
|
|
||||||
docbook_xml="${EPREFIX}/usr/share/sgml/docbook/xml-dtd-4.5"
|
|
||||||
hunspell_enable=$(usex hunspell)
|
|
||||||
icu=$(usex icu)
|
|
||||||
need_idn=$(usex idn)
|
|
||||||
openssl=$(usex ssl ${EPREFIX}/usr)
|
|
||||||
swiften_dll=$(usex !static-libs)
|
|
||||||
test=$(usex test all none)
|
|
||||||
try_avahi=$(usex zeroconf)
|
|
||||||
try_expat=$(usex expat)
|
|
||||||
try_gconf=$(usex gconf)
|
|
||||||
try_libxml=$(usex !expat)
|
|
||||||
Swiften
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
scons_install_vars=()
|
|
||||||
set_scons_install_vars() {
|
|
||||||
scons_install_vars=(
|
|
||||||
force-configure=0
|
|
||||||
SWIFTEN_INSTALLDIR="${ED}/usr"
|
|
||||||
SWIFTEN_LIBDIR="${ED}/usr/$(get_libdir)"
|
|
||||||
)
|
|
||||||
use qt5 && scons_install_vars+=( SWIFT_INSTALLDIR="${ED}/usr" )
|
|
||||||
use lua && scons_install_vars+=( SLUIFT_INSTALLDIR="${ED}/usr" )
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
rm -fr 3rdParty || die
|
|
||||||
|
|
||||||
local my_linguas="ca cs de en es fr gl he hu nl pl ru sk sv"
|
|
||||||
strip-linguas ${my_linguas}
|
|
||||||
|
|
||||||
if use !qt5; then
|
|
||||||
rm -rf Swift || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use !lua; then
|
|
||||||
rm -rf Sluift || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use !zeroconf; then
|
|
||||||
rm -rf Limber Slimber || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
set_scons_targets
|
|
||||||
set_scons_vars
|
|
||||||
|
|
||||||
escons "${scons_vars[@]}" "${scons_targets[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
set_scons_targets
|
|
||||||
set_scons_vars
|
|
||||||
|
|
||||||
escons "${scons_vars[@]}" test=unit QA
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
set_scons_targets
|
|
||||||
set_scons_vars
|
|
||||||
set_scons_install_vars
|
|
||||||
|
|
||||||
escons "${scons_vars[@]}" \
|
|
||||||
"${scons_install_vars[@]}" \
|
|
||||||
"${ED}" "${scons_targets[@]}"
|
|
||||||
|
|
||||||
if use zeroconf; then
|
|
||||||
dobin Limber/limber
|
|
||||||
newbin Slimber/CLI/slimber slimber-cli
|
|
||||||
use qt5 && newbin Slimber/Qt/slimber slimber-qt
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use test; then
|
|
||||||
for i in ClientTest NetworkTest StorageTest TLSTest ; do
|
|
||||||
newbin "Swiften/QA/${i}/${i}" "${PN}-${i}"
|
|
||||||
done
|
|
||||||
|
|
||||||
newbin SwifTools/Idle/IdleQuerierTest/IdleQuerierTest ${PN}-IdleQuerierTest
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
for i in EchoBot{1,2,3,4,5,6} EchoComponent ; do
|
|
||||||
newbin "Documentation/SwiftenDevelopersGuide/Examples/EchoBot/${i}" "${PN}-${i}"
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in BenchTool ConnectivityTest LinkLocalTool ParserTester SendFile SendMessage ; do
|
|
||||||
newbin "Swiften/Examples/${i}/${i}" "${PN}-${i}"
|
|
||||||
done
|
|
||||||
newbin Swiften/Examples/SendFile/ReceiveFile "${PN}-ReceiveFile"
|
|
||||||
use zeroconf && dobin Swiften/Examples/LinkLocalTool/LinkLocalTool
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
dodoc "Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.html"
|
|
||||||
dodoc "Documentation/SwiftUserGuide/Swift Users Guide.html"
|
|
||||||
fi
|
|
||||||
}
|
|
Reference in New Issue
Block a user