Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/swift/
Date: Sat, 01 Aug 2020 19:40:41
Message-Id: 1596310800.0e8c17e566bd76373a7888666a027bcf5f9c13e2.conikost@gentoo
1 commit: 0e8c17e566bd76373a7888666a027bcf5f9c13e2
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 19:20:50 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 19:40:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e8c17e5
7
8 net-im/swift: drop old version
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 net-im/swift/swift-4.0.2-r1.ebuild | 208 -------------------------------------
14 1 file changed, 208 deletions(-)
15
16 diff --git a/net-im/swift/swift-4.0.2-r1.ebuild b/net-im/swift/swift-4.0.2-r1.ebuild
17 deleted file mode 100644
18 index 40f92b5a1ab..00000000000
19 --- a/net-im/swift/swift-4.0.2-r1.ebuild
20 +++ /dev/null
21 @@ -1,208 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -inherit gnome2-utils scons-utils toolchain-funcs
28 -
29 -DESCRIPTION="An elegant, secure, adaptable and intuitive XMPP Client"
30 -HOMEPAGE="https://www.swift.im/"
31 -SRC_URI="https://swift.im/downloads/releases/${P}/${P}.tar.gz"
32 -
33 -LICENSE="BSD BSD-1 CC-BY-3.0 GPL-3 OFL-1.1"
34 -SLOT="4/0"
35 -KEYWORDS="amd64"
36 -IUSE="client expat gconf +icu +idn lua spell test zeroconf"
37 -REQUIRED_USE="
38 - || ( icu idn )
39 - gconf? ( client )
40 - spell? ( client )
41 -"
42 -
43 -RDEPEND="
44 - dev-db/sqlite:3
45 - dev-libs/boost:=
46 - dev-libs/openssl:0=
47 - net-libs/libnatpmp
48 - net-libs/miniupnpc:=
49 - sys-libs/zlib:=
50 - client? (
51 - dev-qt/qtcore:5
52 - dev-qt/qtdbus:5
53 - dev-qt/qtgui:5
54 - dev-qt/qtmultimedia:5
55 - dev-qt/qtnetwork:5
56 - dev-qt/qtsvg:5
57 - dev-qt/qtwidgets:5
58 - dev-qt/qtwebkit:5
59 - dev-qt/qtx11extras:5
60 - net-dns/avahi
61 - )
62 - expat? ( dev-libs/expat )
63 - !expat? ( dev-libs/libxml2:2 )
64 - gconf? ( gnome-base/gconf:2 )
65 - icu? ( dev-libs/icu:= )
66 - idn? ( net-dns/libidn:= )
67 - lua? ( dev-lang/lua:= )
68 - spell? ( app-text/hunspell:= )
69 -"
70 -
71 -DEPEND="
72 - ${RDEPEND}
73 - >=dev-util/scons-3.0.1-r3
74 - client? ( dev-qt/linguist-tools:5 )
75 - test? ( net-dns/avahi )
76 -"
77 -
78 -# Tests don't run, as they fail with "[QA/UnitTest/**dummy**] Error -6".
79 -RESTRICT="test"
80 -
81 -DOCS=(
82 - "DEVELOPMENT.md"
83 - "README.md"
84 - "Swiften/ChangeLog.md"
85 -)
86 -
87 -PATCHES=(
88 - "${FILESDIR}"/${P}-boost-1.69-compatibility.patch
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="no"
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 -}