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/spectrum2/
Date: Sat, 01 Aug 2020 19:40:41
Message-Id: 1596310801.6d46469b5e8b248d3671299b48a57272b352fd65.conikost@gentoo
1 commit: 6d46469b5e8b248d3671299b48a57272b352fd65
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 19:33:47 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 19:40:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d46469b
7
8 net-im/spectrum2: force irc for tests, block dev-libs/libpqxx-7
9
10 In order to run all tests, irc must be enabled for those tests. It's not
11 required for normal usage.
12
13 Also restricted on <=dev-libs/libpqxx-7, since it does not compile with
14 newest version.
15
16 Closes: https://bugs.gentoo.org/731166
17 Closes: https://bugs.gentoo.org/735100
18 Package-Manager: Portage-3.0.1, Repoman-2.3.23
19 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
20
21 net-im/spectrum2/spectrum2-2.0.12-r4.ebuild | 110 ++++++++++++++++++++++++++++
22 net-im/spectrum2/spectrum2-2.0.13-r2.ebuild | 105 ++++++++++++++++++++++++++
23 2 files changed, 215 insertions(+)
24
25 diff --git a/net-im/spectrum2/spectrum2-2.0.12-r4.ebuild b/net-im/spectrum2/spectrum2-2.0.12-r4.ebuild
26 new file mode 100644
27 index 00000000000..334f15bf538
28 --- /dev/null
29 +++ b/net-im/spectrum2/spectrum2-2.0.12-r4.ebuild
30 @@ -0,0 +1,110 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake systemd
37 +
38 +DESCRIPTION="An open source instant messaging transport"
39 +HOMEPAGE="https://www.spectrum.im"
40 +SRC_URI="https://github.com/SpectrumIM/spectrum2/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2+"
43 +SLOT="0"
44 +KEYWORDS="amd64"
45 +IUSE="doc frotz irc mysql postgres purple sms +sqlite test twitter whatsapp xmpp"
46 +REQUIRED_USE="
47 + || ( mysql postgres sqlite )
48 + test? ( irc )
49 +"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + acct-group/spectrum
54 + acct-user/spectrum
55 + dev-libs/boost:=[nls]
56 + dev-libs/expat
57 + dev-libs/libev:=
58 + dev-libs/log4cxx
59 + dev-libs/jsoncpp:=
60 + dev-libs/openssl:0=
61 + dev-libs/popt
62 + dev-libs/protobuf:=
63 + net-dns/libidn:0=
64 + >=net-im/swift-4.0.2-r2:=
65 + net-misc/curl
66 + sys-libs/zlib:=
67 + frotz? ( !games-engines/frotz )
68 + irc? ( net-im/libcommuni )
69 + mysql? (
70 + || (
71 + dev-db/mariadb-connector-c
72 + dev-db/mysql-connector-c
73 + )
74 + )
75 + postgres? ( <=dev-libs/libpqxx-7.0.0:= )
76 + purple? (
77 + dev-libs/glib
78 + net-im/pidgin:=
79 + )
80 + sms? ( app-mobilephone/smstools )
81 + sqlite? ( dev-db/sqlite:3 )
82 + twitter? ( net-misc/curl )
83 + whatsapp? ( net-im/transwhat )"
84 +
85 +DEPEND="
86 + ${RDEPEND}
87 + doc? ( app-doc/doxygen )
88 + test? ( dev-util/cppunit )
89 +"
90 +
91 +PATCHES="
92 + "${FILESDIR}/${P}-boost-173-compatibility.patch"
93 + "${FILESDIR}/${P}-gcc-10-compatibility.patch"
94 +"
95 +
96 +src_prepare() {
97 + # Respect users LDFLAGS
98 + sed -i -e "s/-Wl,-export-dynamic/& ${LDFLAGS}/" spectrum/src/CMakeLists.txt || die
99 +
100 + cmake_src_prepare
101 +}
102 +
103 +src_configure() {
104 + local mycmakeargs=(
105 + -DENABLE_DOCS="$(usex doc)"
106 + -DENABLE_FROTZ="$(usex frotz)"
107 + -DENABLE_IRC="$(usex irc)"
108 + -DENABLE_MYSQL="$(usex mysql)"
109 + -DENABLE_PQXX="$(usex postgres)"
110 + -DENABLE_PURPLE="$(usex purple)"
111 + $(usex irc '-DENABLE_QT4=OFF' '')
112 + -DENABLE_SMSTOOLS3="$(usex sms)"
113 + -DENABLE_SQLITE3="$(usex sqlite)"
114 + -DENABLE_TESTS="$(usex test)"
115 + -DENABLE_TWITTER="$(usex twitter)"
116 + -DENABLE_XMPP="$(usex xmpp)"
117 + -DLIB_INSTALL_DIR="$(get_libdir)"
118 + )
119 +
120 + cmake_src_configure
121 +}
122 +
123 +src_test() {
124 + cd "${BUILD_DIR}/tests/libtransport" || die
125 + ./libtransport_test || die
126 +}
127 +
128 +src_install() {
129 + cmake_src_install
130 +
131 + diropts -o spectrum -g spectrum
132 + keepdir /var/log/spectrum2 /var/lib/spectrum2
133 + diropts
134 +
135 + newinitd "${FILESDIR}"/spectrum2.initd spectrum2
136 + systemd_newunit "${FILESDIR}"/spectrum2.service spectrum2.service
137 + systemd_newtmpfilesd "${FILESDIR}"/spectrum2.tmpfiles-r1 spectrum2.conf
138 +
139 + einstalldocs
140 +}
141
142 diff --git a/net-im/spectrum2/spectrum2-2.0.13-r2.ebuild b/net-im/spectrum2/spectrum2-2.0.13-r2.ebuild
143 new file mode 100644
144 index 00000000000..edbad4cad3e
145 --- /dev/null
146 +++ b/net-im/spectrum2/spectrum2-2.0.13-r2.ebuild
147 @@ -0,0 +1,105 @@
148 +# Copyright 1999-2020 Gentoo Authors
149 +# Distributed under the terms of the GNU General Public License v2
150 +
151 +EAPI=7
152 +
153 +inherit cmake systemd
154 +
155 +DESCRIPTION="An open source instant messaging transport"
156 +HOMEPAGE="https://www.spectrum.im"
157 +SRC_URI="https://github.com/SpectrumIM/spectrum2/archive/${PV}.tar.gz -> ${P}.tar.gz"
158 +
159 +LICENSE="GPL-2+"
160 +SLOT="0"
161 +KEYWORDS="~amd64"
162 +IUSE="doc frotz irc mysql postgres purple sms +sqlite test twitter whatsapp xmpp"
163 +REQUIRED_USE="
164 + || ( mysql postgres sqlite )
165 + test? ( irc )
166 +"
167 +RESTRICT="!test? ( test )"
168 +
169 +RDEPEND="
170 + acct-group/spectrum
171 + acct-user/spectrum
172 + dev-libs/boost:=[nls]
173 + dev-libs/expat
174 + dev-libs/libev:=
175 + dev-libs/log4cxx
176 + dev-libs/jsoncpp:=
177 + dev-libs/openssl:0=
178 + dev-libs/popt
179 + dev-libs/protobuf:=
180 + net-dns/libidn:0=
181 + >=net-im/swift-4.0.2-r2:=
182 + net-misc/curl
183 + sys-libs/zlib:=
184 + frotz? ( !games-engines/frotz )
185 + irc? ( net-im/libcommuni )
186 + mysql? (
187 + || (
188 + dev-db/mariadb-connector-c
189 + dev-db/mysql-connector-c
190 + )
191 + )
192 + postgres? ( <=dev-libs/libpqxx-7.0.0:= )
193 + purple? (
194 + dev-libs/glib
195 + net-im/pidgin:=
196 + )
197 + sms? ( app-mobilephone/smstools )
198 + sqlite? ( dev-db/sqlite:3 )
199 + twitter? ( net-misc/curl )
200 + whatsapp? ( net-im/transwhat )"
201 +
202 +DEPEND="
203 + ${RDEPEND}
204 + doc? ( app-doc/doxygen )
205 + test? ( dev-util/cppunit )
206 +"
207 +
208 +src_prepare() {
209 + # Respect users LDFLAGS
210 + sed -i -e "s/-Wl,-export-dynamic/& ${LDFLAGS}/" spectrum/src/CMakeLists.txt || die
211 +
212 + cmake_src_prepare
213 +}
214 +
215 +src_configure() {
216 + local mycmakeargs=(
217 + -DENABLE_DOCS="$(usex doc)"
218 + -DENABLE_FROTZ="$(usex frotz)"
219 + -DENABLE_IRC="$(usex irc)"
220 + -DENABLE_MYSQL="$(usex mysql)"
221 + -DENABLE_PQXX="$(usex postgres)"
222 + -DENABLE_PURPLE="$(usex purple)"
223 + $(usex irc '-DENABLE_QT4=OFF' '')
224 + -DENABLE_SMSTOOLS3="$(usex sms)"
225 + -DENABLE_SQLITE3="$(usex sqlite)"
226 + -DENABLE_TESTS="$(usex test)"
227 + -DENABLE_TWITTER="$(usex twitter)"
228 + -DENABLE_XMPP="$(usex xmpp)"
229 + -DLIB_INSTALL_DIR="$(get_libdir)"
230 + )
231 +
232 + cmake_src_configure
233 +}
234 +
235 +src_test() {
236 + cd "${BUILD_DIR}/tests/libtransport" || die
237 + ./libtransport_test || die
238 +}
239 +
240 +src_install() {
241 + cmake_src_install
242 +
243 + diropts -o spectrum -g spectrum
244 + keepdir /var/log/spectrum2 /var/lib/spectrum2
245 + diropts
246 +
247 + newinitd "${FILESDIR}"/spectrum2.initd spectrum2
248 + systemd_newunit "${FILESDIR}"/spectrum2.service spectrum2.service
249 + systemd_newtmpfilesd "${FILESDIR}"/spectrum2.tmpfiles-r1 spectrum2.conf
250 +
251 + einstalldocs
252 +}