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