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: net-libs/loudmouth/
Date: Mon, 29 Oct 2018 22:27:51
Message-Id: 1540852023.6a63bd47cd2b4bab9db7f36410fd1e0aa0acb8a9.andrey_utkin@gentoo
1 commit: 6a63bd47cd2b4bab9db7f36410fd1e0aa0acb8a9
2 Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 20 22:25:41 2018 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 29 22:27:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a63bd47
7
8 net-libs/loudmouth: add 1.5.3-r2
9
10 Clone new revision from -r1 (with keywords dropped to unstable) in order
11 to commit improvements here.
12
13 Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>
14 Package-Manager: Portage-2.3.49, Repoman-2.3.10
15
16 net-libs/loudmouth/loudmouth-1.5.3-r2.ebuild | 59 ++++++++++++++++++++++++++++
17 1 file changed, 59 insertions(+)
18
19 diff --git a/net-libs/loudmouth/loudmouth-1.5.3-r2.ebuild b/net-libs/loudmouth/loudmouth-1.5.3-r2.ebuild
20 new file mode 100644
21 index 00000000000..c00cab2c4e0
22 --- /dev/null
23 +++ b/net-libs/loudmouth/loudmouth-1.5.3-r2.ebuild
24 @@ -0,0 +1,59 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +inherit autotools
30 +
31 +DESCRIPTION="Lightweight C Jabber library"
32 +HOMEPAGE="https://github.com/mcabber/loudmouth"
33 +SRC_URI="https://github.com/mcabber/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="LGPL-2.1"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
38 +
39 +IUSE="asyncns ssl openssl static-libs test"
40 +
41 +# Automagic libidn dependency
42 +RDEPEND="
43 + >=dev-libs/glib-2.16:2
44 + net-dns/libidn
45 + ssl? (
46 + !openssl? ( >=net-libs/gnutls-1.4.0:0= )
47 + openssl? ( dev-libs/openssl:0= )
48 + )
49 + asyncns? ( >=net-libs/libasyncns-0.3 )
50 +"
51 +DEPEND="${RDEPEND}
52 + test? ( dev-libs/check )
53 + virtual/pkgconfig
54 +"
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${P}-gcc7.patch
58 + "${FILESDIR}"/${P}-skip-gtk-doc.patch
59 +)
60 +
61 +src_prepare() {
62 + default
63 + eautoreconf
64 +}
65 +
66 +src_configure() {
67 + local myconf
68 +
69 + if use ssl; then
70 + if ! use openssl; then
71 + myconf="${myconf} --with-ssl=gnutls"
72 + else
73 + myconf="${myconf} --with-ssl=openssl"
74 + fi
75 + else
76 + myconf="${myconf} --with-ssl=no"
77 + fi
78 +
79 + econf \
80 + $(use_enable static-libs static) \
81 + $(use_with asyncns) \
82 + ${myconf}
83 +}