Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/quassel/
Date: Wed, 13 Oct 2021 00:22:56
Message-Id: 1634084561.739e127b621ca4a68905ee80fdce459b7347fa2c.sam@gentoo
1 commit: 739e127b621ca4a68905ee80fdce459b7347fa2c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 13 00:22:28 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 13 00:22:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=739e127b
7
8 net-irc/quassel: add 0.14_rc2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-irc/quassel/Manifest | 1 +
13 ...quassel-9999.ebuild => quassel-0.14_rc2.ebuild} | 83 +++++++++++-----------
14 net-irc/quassel/quassel-9999.ebuild | 83 +++++++++++-----------
15 3 files changed, 81 insertions(+), 86 deletions(-)
16
17 diff --git a/net-irc/quassel/Manifest b/net-irc/quassel/Manifest
18 index 1ef7551ac44..a91d45518e7 100644
19 --- a/net-irc/quassel/Manifest
20 +++ b/net-irc/quassel/Manifest
21 @@ -1 +1,2 @@
22 +DIST 0.14-rc2.tar.gz 6163941 BLAKE2B 6e9033ec71553c0f5d9cdd7e3c356cc3504a7a1b1d49536f6897a4b30b50a1b85fe43a0e677a910cdea61867b425120f2538a6e168b652a54558c98deb2585ea SHA512 57abd32d5e6b604cca753e34aedb3b7d134537bc25b984982c5eb39b2492019e8e8e4774ae3dd4b9658e946e1627220e146ecb70008577558a749f235efeed2a
23 DIST quassel-0.13.1.tar.bz2 4289663 BLAKE2B 1d5252efe3febd26e7d04f6533f551316d58b5e4a7c143cc81dd0cf6a3602e28a57de4c73c86fb668e43bf8d01049456d1f5cf37a73f683b9c8b6dd9d78ee4bd SHA512 4ed55e81b1638c8851ddae5d9c9d23a1c2cea92f307e19f426873c2600d8e183898d3ed7c290f2ea5d1b8c5e1be7f9ffcc3e8c3c0193d080fc879b10cc3a962c
24
25 diff --git a/net-irc/quassel/quassel-9999.ebuild b/net-irc/quassel/quassel-0.14_rc2.ebuild
26 similarity index 72%
27 copy from net-irc/quassel/quassel-9999.ebuild
28 copy to net-irc/quassel/quassel-0.14_rc2.ebuild
29 index 68d94a9e3ea..c8177a7e394 100644
30 --- a/net-irc/quassel/quassel-9999.ebuild
31 +++ b/net-irc/quassel/quassel-0.14_rc2.ebuild
32 @@ -1,4 +1,4 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 +# Copyright 1999-2021 Gentoo Authors
35 # Distributed under the terms of the GNU General Public License v2
36
37 EAPI=7
38 @@ -7,8 +7,12 @@ inherit cmake xdg-utils pax-utils systemd
39
40 if [[ ${PV} != *9999* ]]; then
41 MY_P=${PN}-${PV/_/-}
42 - SRC_URI="https://quassel-irc.org/pub/${MY_P}.tar.bz2"
43 - KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~sparc-solaris"
44 + if [[ ${PV} == *_rc* ]] ; then
45 + SRC_URI="https://github.com/quassel/quassel/archive/refs/tags/${PV/_/-}.tar.gz"
46 + else
47 + SRC_URI="https://quassel-irc.org/pub/${MY_P}.tar.bz2"
48 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~sparc-solaris"
49 + fi
50 S="${WORKDIR}/${MY_P}"
51 else
52 EGIT_REPO_URI=( "https://github.com/${PN}/${PN}" )
53 @@ -17,23 +21,22 @@ fi
54
55 DESCRIPTION="Qt/KDE IRC client supporting a remote daemon for 24/7 connectivity"
56 HOMEPAGE="https://quassel-irc.org/"
57 +
58 LICENSE="GPL-3"
59 SLOT="0"
60 -IUSE="bundled-icons crypt +dbus debug kde ldap monolithic oxygen postgres +server
61 -snorenotify syslog urlpreview X"
62 +IUSE="bundled-icons crypt +dbus debug kde ldap monolithic oxygen postgres +server snorenotify syslog test urlpreview X"
63 +# Can't seem to find itself (libraries)
64 +RESTRICT="!test? ( test ) test"
65
66 -SERVER_DEPEND="
67 - acct-group/quassel
68 +SERVER_DEPEND="acct-group/quassel
69 acct-user/quassel
70 + dev-qt/qtscript:5
71 crypt? ( app-crypt/qca:2[ssl] )
72 ldap? ( net-nds/openldap )
73 postgres? ( dev-qt/qtsql:5[postgres] )
74 !postgres? ( dev-qt/qtsql:5[sqlite] dev-db/sqlite:3[threadsafe(+),-secure-delete] )
75 - syslog? ( virtual/logger )
76 -"
77 -
78 -GUI_DEPEND="
79 - dev-qt/qtgui:5
80 + syslog? ( virtual/logger )"
81 +GUI_DEPEND="dev-qt/qtgui:5
82 dev-qt/qtmultimedia:5
83 dev-qt/qtwidgets:5
84 !bundled-icons? (
85 @@ -55,10 +58,8 @@ GUI_DEPEND="
86 kde-frameworks/sonnet:5
87 )
88 snorenotify? ( >=x11-libs/snorenotify-0.7.0 )
89 - urlpreview? ( dev-qt/qtwebengine:5[widgets] )
90 -"
91 -
92 -RDEPEND="
93 + urlpreview? ( dev-qt/qtwebengine:5[widgets] )"
94 +DEPEND=">=dev-libs/boost-1.54:=
95 dev-qt/qtcore:5
96 dev-qt/qtnetwork:5[ssl]
97 sys-libs/zlib
98 @@ -69,30 +70,24 @@ RDEPEND="
99 !monolithic? (
100 server? ( ${SERVER_DEPEND} )
101 X? ( ${GUI_DEPEND} )
102 - )
103 -"
104 -DEPEND="${RDEPEND}
105 - dev-libs/boost
106 -"
107 -BDEPEND="
108 - dev-qt/linguist-tools:5
109 - kde-frameworks/extra-cmake-modules:5
110 -"
111 + )"
112 +RDEPEND="${DEPEND}"
113 +BDEPEND="dev-qt/linguist-tools:5
114 + kde-frameworks/extra-cmake-modules:5"
115
116 DOCS=( AUTHORS ChangeLog README.md )
117
118 -REQUIRED_USE="
119 - || ( X server monolithic )
120 +REQUIRED_USE="|| ( X server monolithic )
121 crypt? ( || ( server monolithic ) )
122 kde? ( || ( X monolithic ) dbus )
123 ldap? ( || ( server monolithic ) )
124 postgres? ( || ( server monolithic ) )
125 snorenotify? ( || ( X monolithic ) )
126 - syslog? ( || ( server monolithic ) )
127 -"
128 + syslog? ( || ( server monolithic ) )"
129
130 src_configure() {
131 local mycmakeargs=(
132 + -DBUILD_TESTING=$(usex test)
133 -DUSE_CCACHE=OFF
134 -DCMAKE_SKIP_RPATH=ON
135 -DEMBED_DATA=OFF
136 @@ -110,7 +105,7 @@ src_configure() {
137 -DWANT_QTCLIENT=$(usex X)
138 )
139
140 - if use server || use monolithic; then
141 + if use server || use monolithic ; then
142 mycmakeargs+=( $(cmake_use_find_package crypt Qca-qt5) )
143 fi
144
145 @@ -120,28 +115,28 @@ src_configure() {
146 src_install() {
147 cmake_src_install
148
149 - if use server; then
150 - # needs PAX marking wrt bug#346255
151 - pax-mark m "${ED}/usr/bin/quasselcore"
152 + if use server ; then
153 + # Needs PaX marking, bug #346255
154 + pax-mark m "${ED}"/usr/bin/quasselcore
155
156 - # init scripts & systemd unit
157 + # Init scripts & systemd unit
158 newinitd "${FILESDIR}"/quasselcore.init-r1 quasselcore
159 newconfd "${FILESDIR}"/quasselcore.conf-r1 quasselcore
160 systemd_dounit "${FILESDIR}"/quasselcore.service
161
162 # logrotate
163 insinto /etc/logrotate.d
164 - newins "${FILESDIR}/quassel.logrotate" quassel
165 + newins "${FILESDIR}"/quassel.logrotate quassel
166 fi
167 }
168
169 pkg_postinst() {
170 - if use monolithic; then
171 + if use monolithic ; then
172 elog "Information on how to enable SSL support for client/core connections"
173 elog "is available at http://bugs.quassel-irc.org/projects/quassel-irc/wiki/Client-Core_SSL_support."
174 fi
175
176 - if use server; then
177 + if use server ; then
178 einfo "If you want to generate SSL certificate remember to run:"
179 einfo " emerge --config =${CATEGORY}/${PF}"
180 fi
181 @@ -159,15 +154,17 @@ pkg_postrm() {
182 }
183
184 pkg_config() {
185 - if use server; then
186 - # generate the pem file only when it does not already exist
187 - QUASSEL_DIR=/var/lib/${PN}
188 - if [ ! -f "${QUASSEL_DIR}/quasselCert.pem" ]; then
189 - einfo "Generating QUASSEL SSL certificate to: \"${QUASSEL_DIR}/quasselCert.pem\""
190 + if use server ; then
191 + # Generate the pem file only when it does not already exist
192 + QUASSEL_DIR="${EROOT}"/var/lib/${PN}
193 +
194 + if [[ ! -f "${QUASSEL_DIR}/quasselCert.pem" ]] ; then
195 + einfo "Generating Quassel SSL certificate to: \"${QUASSEL_DIR}/quasselCert.pem\""
196 openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
197 -keyout "${QUASSEL_DIR}/quasselCert.pem" \
198 -out "${QUASSEL_DIR}/quasselCert.pem"
199 - # permissions for the key
200 +
201 + # Permissions for the key
202 chown ${PN}:${PN} "${QUASSEL_DIR}/quasselCert.pem"
203 chmod 400 "${QUASSEL_DIR}/quasselCert.pem"
204 else
205
206 diff --git a/net-irc/quassel/quassel-9999.ebuild b/net-irc/quassel/quassel-9999.ebuild
207 index 68d94a9e3ea..c8177a7e394 100644
208 --- a/net-irc/quassel/quassel-9999.ebuild
209 +++ b/net-irc/quassel/quassel-9999.ebuild
210 @@ -1,4 +1,4 @@
211 -# Copyright 1999-2020 Gentoo Authors
212 +# Copyright 1999-2021 Gentoo Authors
213 # Distributed under the terms of the GNU General Public License v2
214
215 EAPI=7
216 @@ -7,8 +7,12 @@ inherit cmake xdg-utils pax-utils systemd
217
218 if [[ ${PV} != *9999* ]]; then
219 MY_P=${PN}-${PV/_/-}
220 - SRC_URI="https://quassel-irc.org/pub/${MY_P}.tar.bz2"
221 - KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~sparc-solaris"
222 + if [[ ${PV} == *_rc* ]] ; then
223 + SRC_URI="https://github.com/quassel/quassel/archive/refs/tags/${PV/_/-}.tar.gz"
224 + else
225 + SRC_URI="https://quassel-irc.org/pub/${MY_P}.tar.bz2"
226 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~sparc-solaris"
227 + fi
228 S="${WORKDIR}/${MY_P}"
229 else
230 EGIT_REPO_URI=( "https://github.com/${PN}/${PN}" )
231 @@ -17,23 +21,22 @@ fi
232
233 DESCRIPTION="Qt/KDE IRC client supporting a remote daemon for 24/7 connectivity"
234 HOMEPAGE="https://quassel-irc.org/"
235 +
236 LICENSE="GPL-3"
237 SLOT="0"
238 -IUSE="bundled-icons crypt +dbus debug kde ldap monolithic oxygen postgres +server
239 -snorenotify syslog urlpreview X"
240 +IUSE="bundled-icons crypt +dbus debug kde ldap monolithic oxygen postgres +server snorenotify syslog test urlpreview X"
241 +# Can't seem to find itself (libraries)
242 +RESTRICT="!test? ( test ) test"
243
244 -SERVER_DEPEND="
245 - acct-group/quassel
246 +SERVER_DEPEND="acct-group/quassel
247 acct-user/quassel
248 + dev-qt/qtscript:5
249 crypt? ( app-crypt/qca:2[ssl] )
250 ldap? ( net-nds/openldap )
251 postgres? ( dev-qt/qtsql:5[postgres] )
252 !postgres? ( dev-qt/qtsql:5[sqlite] dev-db/sqlite:3[threadsafe(+),-secure-delete] )
253 - syslog? ( virtual/logger )
254 -"
255 -
256 -GUI_DEPEND="
257 - dev-qt/qtgui:5
258 + syslog? ( virtual/logger )"
259 +GUI_DEPEND="dev-qt/qtgui:5
260 dev-qt/qtmultimedia:5
261 dev-qt/qtwidgets:5
262 !bundled-icons? (
263 @@ -55,10 +58,8 @@ GUI_DEPEND="
264 kde-frameworks/sonnet:5
265 )
266 snorenotify? ( >=x11-libs/snorenotify-0.7.0 )
267 - urlpreview? ( dev-qt/qtwebengine:5[widgets] )
268 -"
269 -
270 -RDEPEND="
271 + urlpreview? ( dev-qt/qtwebengine:5[widgets] )"
272 +DEPEND=">=dev-libs/boost-1.54:=
273 dev-qt/qtcore:5
274 dev-qt/qtnetwork:5[ssl]
275 sys-libs/zlib
276 @@ -69,30 +70,24 @@ RDEPEND="
277 !monolithic? (
278 server? ( ${SERVER_DEPEND} )
279 X? ( ${GUI_DEPEND} )
280 - )
281 -"
282 -DEPEND="${RDEPEND}
283 - dev-libs/boost
284 -"
285 -BDEPEND="
286 - dev-qt/linguist-tools:5
287 - kde-frameworks/extra-cmake-modules:5
288 -"
289 + )"
290 +RDEPEND="${DEPEND}"
291 +BDEPEND="dev-qt/linguist-tools:5
292 + kde-frameworks/extra-cmake-modules:5"
293
294 DOCS=( AUTHORS ChangeLog README.md )
295
296 -REQUIRED_USE="
297 - || ( X server monolithic )
298 +REQUIRED_USE="|| ( X server monolithic )
299 crypt? ( || ( server monolithic ) )
300 kde? ( || ( X monolithic ) dbus )
301 ldap? ( || ( server monolithic ) )
302 postgres? ( || ( server monolithic ) )
303 snorenotify? ( || ( X monolithic ) )
304 - syslog? ( || ( server monolithic ) )
305 -"
306 + syslog? ( || ( server monolithic ) )"
307
308 src_configure() {
309 local mycmakeargs=(
310 + -DBUILD_TESTING=$(usex test)
311 -DUSE_CCACHE=OFF
312 -DCMAKE_SKIP_RPATH=ON
313 -DEMBED_DATA=OFF
314 @@ -110,7 +105,7 @@ src_configure() {
315 -DWANT_QTCLIENT=$(usex X)
316 )
317
318 - if use server || use monolithic; then
319 + if use server || use monolithic ; then
320 mycmakeargs+=( $(cmake_use_find_package crypt Qca-qt5) )
321 fi
322
323 @@ -120,28 +115,28 @@ src_configure() {
324 src_install() {
325 cmake_src_install
326
327 - if use server; then
328 - # needs PAX marking wrt bug#346255
329 - pax-mark m "${ED}/usr/bin/quasselcore"
330 + if use server ; then
331 + # Needs PaX marking, bug #346255
332 + pax-mark m "${ED}"/usr/bin/quasselcore
333
334 - # init scripts & systemd unit
335 + # Init scripts & systemd unit
336 newinitd "${FILESDIR}"/quasselcore.init-r1 quasselcore
337 newconfd "${FILESDIR}"/quasselcore.conf-r1 quasselcore
338 systemd_dounit "${FILESDIR}"/quasselcore.service
339
340 # logrotate
341 insinto /etc/logrotate.d
342 - newins "${FILESDIR}/quassel.logrotate" quassel
343 + newins "${FILESDIR}"/quassel.logrotate quassel
344 fi
345 }
346
347 pkg_postinst() {
348 - if use monolithic; then
349 + if use monolithic ; then
350 elog "Information on how to enable SSL support for client/core connections"
351 elog "is available at http://bugs.quassel-irc.org/projects/quassel-irc/wiki/Client-Core_SSL_support."
352 fi
353
354 - if use server; then
355 + if use server ; then
356 einfo "If you want to generate SSL certificate remember to run:"
357 einfo " emerge --config =${CATEGORY}/${PF}"
358 fi
359 @@ -159,15 +154,17 @@ pkg_postrm() {
360 }
361
362 pkg_config() {
363 - if use server; then
364 - # generate the pem file only when it does not already exist
365 - QUASSEL_DIR=/var/lib/${PN}
366 - if [ ! -f "${QUASSEL_DIR}/quasselCert.pem" ]; then
367 - einfo "Generating QUASSEL SSL certificate to: \"${QUASSEL_DIR}/quasselCert.pem\""
368 + if use server ; then
369 + # Generate the pem file only when it does not already exist
370 + QUASSEL_DIR="${EROOT}"/var/lib/${PN}
371 +
372 + if [[ ! -f "${QUASSEL_DIR}/quasselCert.pem" ]] ; then
373 + einfo "Generating Quassel SSL certificate to: \"${QUASSEL_DIR}/quasselCert.pem\""
374 openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
375 -keyout "${QUASSEL_DIR}/quasselCert.pem" \
376 -out "${QUASSEL_DIR}/quasselCert.pem"
377 - # permissions for the key
378 +
379 + # Permissions for the key
380 chown ${PN}:${PN} "${QUASSEL_DIR}/quasselCert.pem"
381 chmod 400 "${QUASSEL_DIR}/quasselCert.pem"
382 else