Gentoo Archives: gentoo-commits

From: Andrey Utkin <andrey_utkin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/swift/
Date: Mon, 28 Jan 2019 19:31:48
Message-Id: 1548640148.7b2b971ae676028b04c1e4c9e26ea9ceeff4a594.andrey_utkin@gentoo
1 commit: 7b2b971ae676028b04c1e4c9e26ea9ceeff4a594
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sun Jan 27 14:23:08 2019 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 28 01:49:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b2b971a
7
8 net-im/swift: drop old version
9
10 Package-Manager: Portage-2.3.56, Repoman-2.3.12
11 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
12 Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>
13
14 net-im/swift/swift-4.0.2.ebuild | 207 ----------------------------------------
15 1 file changed, 207 deletions(-)
16
17 diff --git a/net-im/swift/swift-4.0.2.ebuild b/net-im/swift/swift-4.0.2.ebuild
18 deleted file mode 100644
19 index c67278ade28..00000000000
20 --- a/net-im/swift/swift-4.0.2.ebuild
21 +++ /dev/null
22 @@ -1,207 +0,0 @@
23 -# Copyright 1999-2018 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
27 -
28 -inherit gnome2-utils scons-utils toolchain-funcs
29 -
30 -DESCRIPTION="An elegant, secure, adaptable and intuitive XMPP Client"
31 -HOMEPAGE="https://www.swift.im/"
32 -SRC_URI="https://swift.im/downloads/releases/${P}/${P}.tar.gz"
33 -
34 -LICENSE="BSD BSD-1 CC-BY-3.0 GPL-3 OFL-1.1"
35 -SLOT="4/0"
36 -KEYWORDS="~amd64"
37 -IUSE="client expat gconf +icu +idn lua spell test zeroconf"
38 -REQUIRED_USE="
39 - || ( icu idn )
40 - gconf? ( client )
41 - spell? ( client )
42 -"
43 -
44 -RDEPEND="
45 - dev-db/sqlite:3
46 - dev-libs/boost:=
47 - dev-libs/openssl:0=
48 - net-libs/libnatpmp
49 - net-libs/miniupnpc:=
50 - sys-libs/zlib:=
51 - client? (
52 - dev-qt/qtcore:5
53 - dev-qt/qtdbus:5
54 - dev-qt/qtgui:5
55 - dev-qt/qtmultimedia:5
56 - dev-qt/qtnetwork:5
57 - dev-qt/qtsvg:5
58 - dev-qt/qtwidgets:5
59 - dev-qt/qtwebkit:5
60 - dev-qt/qtx11extras:5
61 - net-dns/avahi
62 - )
63 - expat? ( dev-libs/expat )
64 - !expat? ( dev-libs/libxml2:2 )
65 - gconf? ( gnome-base/gconf:2 )
66 - icu? ( dev-libs/icu:= )
67 - idn? ( net-dns/libidn:= )
68 - lua? ( dev-lang/lua:= )
69 - spell? ( app-text/hunspell:= )
70 -"
71 -
72 -DEPEND="
73 - ${RDEPEND}
74 - >=dev-util/scons-3.0.1-r3
75 - client? ( dev-qt/linguist-tools:5 )
76 - test? ( net-dns/avahi )
77 -"
78 -
79 -# Tests don't run, as they fail with "[QA/UnitTest/**dummy**] Error -6".
80 -RESTRICT="test"
81 -
82 -DOCS=(
83 - "DEVELOPMENT.md"
84 - "README.md"
85 - "Swiften/ChangeLog.md"
86 -)
87 -
88 -PATCHES=(
89 - "${FILESDIR}"/${P}-make-generated-files-handle-unicode-characters.patch
90 - "${FILESDIR}"/${P}-qt-5.11-compatibility.patch
91 -)
92 -
93 -src_prepare() {
94 - default
95 -
96 - # Hack for finding Qt system libs
97 - mkdir "${T}"/qt || die
98 - ln -s "${EPREFIX%/}"/usr/$(get_libdir)/qt5/bin "${T}"/qt/bin || die
99 - ln -s "${EPREFIX%/}"/usr/$(get_libdir)/qt5 "${T}"/qt/lib || die
100 - ln -s "${EPREFIX%/}"/usr/include/qt5 "${T}"/qt/include || die
101 -
102 - # Remove parts of Swift, which a user don't want to compile
103 - if ! use client; then rm -fr Swift Slimber || die; fi
104 - if ! use lua; then rm -fr Sluift || die; fi
105 - if ! use zeroconf; then
106 - rm -fr Limber || die
107 - if use client; then rm -fr Slimber || die; fi
108 - fi
109 -
110 - # Remove '3rdParty', as the system libs should be used
111 - # `CppUnit`, `GoogleTest` and `HippoMocks` are needed for tests
112 - local my3rdparty=(
113 - Boost
114 - Breakpad
115 - DocBook
116 - Expat
117 - LCov
118 - Ldns
119 - LibIDN
120 - LibMiniUPnPc
121 - LibNATPMP
122 - Lua
123 - OpenSSL
124 - SCons
125 - SQLite
126 - Unbound
127 - ZLib
128 - )
129 -
130 - if use test; then
131 - cd 3rdParty && rm -fr "${my3rdparty[@]}" || die
132 - else
133 - rm -fr 3rdParty || die
134 - fi
135 -}
136 -
137 -src_configure() {
138 - MYSCONS=(
139 - ar="$(tc-getAR)"
140 - allow_warnings="yes"
141 - assertions="no"
142 - build_examples="yes"
143 - boost_bundled_enable="false"
144 - boost_force_bundled="false"
145 - cc="$(tc-getCC)"
146 - ccache="no"
147 - ccflags="${CFLAGS}"
148 - coverage="no"
149 - cxx="$(tc-getCXX)"
150 - cxxflags="${CXXFLAGS}"
151 - debug="no"
152 - distcc="no"
153 - experimental="yes"
154 - experimental_ft="yes"
155 - hunspell_enable="$(usex spell)"
156 - icu="$(usex icu)"
157 - install_git_hooks="no"
158 - libidn_bundled_enable="false"
159 - libminiupnpc_force_bundled="false"
160 - libnatpmp_force_bundled="false"
161 - link="$(tc-getCXX)"
162 - linkflags="${LDFLAGS}"
163 - max_jobs="no"
164 - optimize="no"
165 - qt="${T}/qt"
166 - qt5="$(usex client)"
167 - swiften_dll="true"
168 - swift_mobile="no"
169 - target="native"
170 - test="none"
171 - try_avahi="$(usex client)"
172 - try_expat="$(usex expat)"
173 - try_gconf="$(usex gconf)"
174 - try_libidn="$(usex idn)"
175 - try_libxml="$(usex !expat)"
176 - tls_backend="openssl"
177 - unbound="no"
178 - V="1"
179 - valgrind="no"
180 - zlib_bundled_enable="false"
181 - )
182 -}
183 -
184 -src_compile() {
185 - local myesconsinstall=(
186 - Swiften
187 - $(usex client Swift '')
188 - $(usex lua Sluift '')
189 - $(usex zeroconf Limber '')
190 - $(usex zeroconf "$(usex client Slimber '')" '')
191 - )
192 -
193 - escons "${MYSCONS[@]}" "${myesconsinstall[@]}"
194 -}
195 -
196 -src_test() {
197 - MYSCONS=(
198 - V="1"
199 - )
200 -
201 - escons "${MYSCONS[@]}" test=unit QA
202 -}
203 -
204 -src_install() {
205 - local myesconsinstall=(
206 - SWIFTEN_INSTALLDIR="${ED%/}/usr"
207 - SWIFTEN_LIBDIR="${ED%/}/usr/$(get_libdir)"
208 - $(usex client "SWIFT_INSTALLDIR=${ED%/}/usr" '')
209 - $(usex lua "SLUIFT_DIR=${ED%/}/usr" '')
210 - $(usex lua "SLUIFT_INSTALLDIR=${ED%/}/usr" '')
211 - "${ED}"
212 - )
213 -
214 - escons "${MYSCONS[@]}" "${myesconsinstall[@]}"
215 -
216 - use zeroconf && dobin Limber/limber
217 - use zeroconf && use client && newbin Slimber/CLI/slimber slimber-cli
218 - use zeroconf && use client && newbin Slimber/Qt/slimber slimber-qt
219 -
220 - einstalldocs
221 -}
222 -
223 -pkg_postinst() {
224 - use client && gnome2_icon_cache_update
225 -}
226 -
227 -pkg_postrm() {
228 - use client && gnome2_icon_cache_update
229 -}