Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libstrophe/
Date: Fri, 13 May 2022 08:06:17
Message-Id: 1652429153.7bb0c333335b9d7c155a4a114ea0a1a0af33b054.flow@gentoo
1 commit: 7bb0c333335b9d7c155a4a114ea0a1a0af33b054
2 Author: Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de>
3 AuthorDate: Thu May 12 07:11:34 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 08:05:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bb0c333
7
8 dev-libs/libstrophe: add 0.12.0
9
10 Also introduces subslot 0.1, representing upstream's decision to add
11 SONAME versioning, starting with SONAME version 0. `.1` was appended to
12 the subslot to force a different subslot from the default one and can be
13 removed with the next subslot.
14
15 Signed-off-by: Adrian Schollmeyer <nex+b-g-o <AT> nexadn.de>
16 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
17
18 dev-libs/libstrophe/Manifest | 1 +
19 dev-libs/libstrophe/libstrophe-0.12.0.ebuild | 56 ++++++++++++++++++++++++++++
20 2 files changed, 57 insertions(+)
21
22 diff --git a/dev-libs/libstrophe/Manifest b/dev-libs/libstrophe/Manifest
23 index 943d1adc3738..463ae672fee4 100644
24 --- a/dev-libs/libstrophe/Manifest
25 +++ b/dev-libs/libstrophe/Manifest
26 @@ -1,2 +1,3 @@
27 DIST libstrophe-0.10.0.tar.xz 357896 BLAKE2B b457c1556b7bd8012fd0b0badb962c0002ca38884e246911b25c8e01fa785a08c316a18c84e8f9e124ebeed636c586097a2dacf56c7c94062ac262e44f9473d0 SHA512 cffd71f3c83f53a4f0681916249842cc17e11fc28afa940e29a786ee02c5294a11115c115b12d200e185a62520623c68e1d4514ab374423e13e26b9438d80ea8
28 DIST libstrophe-0.11.0.tar.xz 370740 BLAKE2B 19f240383e81ea2733505b8361ba061ba69b09227eddfb958aa3027d7c3aca2f1739977e003b980ecf5501fde5ffa2bdb0a0618aff70637b11f94dbd70fce3a4 SHA512 3fd3fc395d1c86787cccf9dfb54805a56d650687db17ee28107f4fd610aa250c40cd6052d5c8c48110d69a8bceddb913570efca24874733d3e9a016dd90df65c
29 +DIST libstrophe-0.12.0.tar.xz 397120 BLAKE2B 6ac32e317e14a8641b1d092026772264682b7b0980158757a82036f3db2643a6429e5553d9173b578111d5b8b503e9a98a4e140f98f8ac03866758624a1cec67 SHA512 dd0fc54840bb5626859f91c7bbe5204ea89332856392a5a33c50cf7f66c8aaa7b0d7c24bd737e8473d63f2c9d7683a75dcb9465a19634d14e54c9f8f20580884
30
31 diff --git a/dev-libs/libstrophe/libstrophe-0.12.0.ebuild b/dev-libs/libstrophe/libstrophe-0.12.0.ebuild
32 new file mode 100644
33 index 000000000000..31bb9d386052
34 --- /dev/null
35 +++ b/dev-libs/libstrophe/libstrophe-0.12.0.ebuild
36 @@ -0,0 +1,56 @@
37 +# Copyright 1999-2022 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +DESCRIPTION="A simple, lightweight C library for writing XMPP clients"
42 +HOMEPAGE="http://strophe.im/libstrophe/"
43 +SRC_URI="https://github.com/strophe/${PN}/releases/download/${PV}/${P}.tar.xz"
44 +LICENSE="|| ( MIT GPL-3 )"
45 +# Subslot: ${SONAME}.1 to differentiate from previous versions without SONAME
46 +SLOT="0/0.1"
47 +KEYWORDS="~amd64"
48 +IUSE="doc expat gnutls"
49 +
50 +RDEPEND="
51 + expat? ( dev-libs/expat )
52 + !expat? ( dev-libs/libxml2:2 )
53 + gnutls? ( net-libs/gnutls:0= )
54 + !gnutls? ( dev-libs/openssl:0= )
55 + dev-libs/openssl:0=
56 +"
57 +DEPEND="${RDEPEND}"
58 +BDEPEND="
59 + virtual/pkgconfig
60 + doc? ( app-doc/doxygen )
61 +"
62 +
63 +DOCS=( ChangeLog )
64 +
65 +src_configure() {
66 + # shellcheck disable=SC2207
67 + local myeconf=(
68 + --enable-tls
69 + $(use_with !expat libxml2)
70 + $(use_with gnutls)
71 + )
72 + econf "${myeconf[@]}"
73 +}
74 +src_compile() {
75 + default
76 + if use doc; then
77 + doxygen || die
78 + HTML_DOCS=( docs/html/* )
79 + fi
80 +}
81 +
82 +src_install() {
83 + default
84 + use doc && dodoc -r examples
85 + find "${D}" -type f \( -name '*.la' -o -name '*.a' \) -delete || die
86 +}
87 +
88 +# Explicit src_test is there to document that the test suite is integrated and
89 +# is expected to pass. Please do not remove.
90 +src_test() {
91 + emake check
92 +}