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