Package-Manager: Portage-2.3.40, Repoman-2.3.9 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
parent
95ce67763d
commit
792a26a3ed
13
net-im/swift/Manifest
Normal file
13
net-im/swift/Manifest
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
|
Hash: SHA256
|
||||||
|
|
||||||
|
DIST swift-4.0.2.tar.bz2 15134765 BLAKE2B f2f75a6445a5403cf162588b28052be4962c3012be6a224869a40bf56edc037118b748b81cda29e304a8d21b057c4ae1c96676fb8c97b1d207f49693b6482f8a SHA512 f281eebc72472b4ec154f15ab49b2b98c2b4c8f3faf8264208fef77e0bb2cd057d417727a0054ce5c17407bcb58db8413db45b48065ac81061bbc82221aa8217
|
||||||
|
EBUILD swift-4.0.2.ebuild 4071 BLAKE2B c86d1e1574898fce236763555ca2f789623f89ba187648c7f22c5af61dd02df45d8e90b0abd508c9e72e078c39346d70146e9fdc62376289653dd7e2ea58337e SHA512 af4f61a3b6bd61301e9eeb63d57ae4becd909ca0ff2a44c1464b9d50fa8aaa1a151f3a4a527246db3cfc2c4a743d91d01e5a1e857d2c623fde7c17fa4cf97726
|
||||||
|
MISC metadata.xml 409 BLAKE2B dd37ed4b7bf0fb0e1d3921238fdab6df2acc88f852e12d00f0a0c212163e90d86d406fec16932bdf87ffead61d14d881542327a53632fdb37a75c47cb3e292ce SHA512 3a7e27841c071bcd12425bdac29ec9ba35ec66f1602c6292aed21e9d43dff5322f2599e3e9adaece9d1d9aba917d297e30c5c5ca8d13f27b5b5580b6d01e9b66
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCW5CEyQAKCRDPw5SX8bJu
|
||||||
|
Bw9GAP9rRFVxJZuHPkainSYtJO6a6rTj41LZKjkA1usaAbqSdgD/TE1aQ07nDINL
|
||||||
|
GPXNGG2B669WeaREKeCEKCcBnNUSPb8=
|
||||||
|
=ZMVj
|
||||||
|
-----END PGP SIGNATURE-----
|
12
net-im/swift/metadata.xml
Normal file
12
net-im/swift/metadata.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?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>
|
176
net-im/swift/swift-4.0.2.ebuild
Normal file
176
net-im/swift/swift-4.0.2.ebuild
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
# 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
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
scons_install_vars=()
|
||||||
|
set_scons_install_vars() {
|
||||||
|
scons_install_vars=(
|
||||||
|
force-configure=0
|
||||||
|
SWIFTEN_INSTALLDIR="${ED}/usr"
|
||||||
|
)
|
||||||
|
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