Gentoo Archives: gentoo-commits

From: Andrey Utkin <andrey_utkin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libstrophe/
Date: Mon, 28 Oct 2019 19:03:35
Message-Id: 1572289302.14bf9eb7eb75c135112619b5992ed93a4ce9c1b0.andrey_utkin@gentoo
1 commit: 14bf9eb7eb75c135112619b5992ed93a4ce9c1b0
2 Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 28 18:43:57 2019 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 28 19:01:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14bf9eb7
7
8 dev-libs/libstrophe: add new version 0.9.3
9
10 Copied from 0.9.2.
11 The only change is that libressl-related patch has been dropped, as
12 there is now upstream support for libressl.
13
14 Package-Manager: Portage-2.3.66, Repoman-2.3.16
15 Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>
16
17 dev-libs/libstrophe/Manifest | 1 +
18 dev-libs/libstrophe/libstrophe-0.9.3.ebuild | 45 +++++++++++++++++++++++++++++
19 2 files changed, 46 insertions(+)
20
21 diff --git a/dev-libs/libstrophe/Manifest b/dev-libs/libstrophe/Manifest
22 index e5c1bc327ad..2e913cf0bd1 100644
23 --- a/dev-libs/libstrophe/Manifest
24 +++ b/dev-libs/libstrophe/Manifest
25 @@ -1 +1,2 @@
26 DIST libstrophe-0.9.2.tar.gz 500459 BLAKE2B 0b1f6f1daac1215bcdcbde0e54264b98f5a863de339500826f625f8c5e8143ce7200fb251d04248715e9a8b6621a4360e7ca2780bf4684d916ec13361b5f6fcc SHA512 a0129c49ca574afaefa77c412143571af2eb1100c7d737d497b65d44680d35e2404ee2d4d4e1378b06ac1bcc5c587f505f79fea9251af1cbb36afd990d48570d
27 +DIST libstrophe-0.9.3.tar.gz 502449 BLAKE2B 662b0c329b0bf7d7f34fc80bf0608b921fa1ad54c8277e88f23f3ed17d0892dc7e3d9bcaaa9707306801e9254bba4a127390025ab95e1d9d850c299a7b26d980 SHA512 9c8ba980f532c5576c2c5a9e3cdca9f833ec78debcb06b17e2f534de0e710ec416b997b0498be77a89fa7f57187456edb1d602993c695a5e738718ea593697a5
28
29 diff --git a/dev-libs/libstrophe/libstrophe-0.9.3.ebuild b/dev-libs/libstrophe/libstrophe-0.9.3.ebuild
30 new file mode 100644
31 index 00000000000..5323315dc71
32 --- /dev/null
33 +++ b/dev-libs/libstrophe/libstrophe-0.9.3.ebuild
34 @@ -0,0 +1,45 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +DESCRIPTION="A simple, lightweight C library for writing XMPP clients"
40 +HOMEPAGE="http://strophe.im/libstrophe/"
41 +SRC_URI="https://github.com/strophe/${PN}/releases/download/${PV}/${P}.tar.gz"
42 +LICENSE="|| ( MIT GPL-3 )"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE="doc expat libressl"
46 +
47 +RDEPEND="
48 + expat? ( dev-libs/expat )
49 + !expat? ( dev-libs/libxml2:2 )
50 + libressl? ( dev-libs/libressl:0= )
51 + !libressl? ( dev-libs/openssl:0= )
52 +"
53 +DEPEND="${RDEPEND}
54 + doc? ( app-doc/doxygen )
55 +"
56 +
57 +DOCS=( ChangeLog )
58 +
59 +src_configure() {
60 + # shellcheck disable=SC2207
61 + local myeconf=(
62 + --enable-tls
63 + $(use_with !expat libxml2)
64 + )
65 + econf "${myeconf[@]}"
66 +}
67 +src_compile() {
68 + default
69 + if use doc; then
70 + doxygen || die
71 + HTML_DOCS=( docs/html/* )
72 + fi
73 +}
74 +
75 +src_install() {
76 + default
77 + use doc && dodoc -r examples
78 + find "${D}" -name '*.la' -delete || die
79 +}