Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/librelp/
Date: Tue, 28 Apr 2020 23:04:35
Message-Id: 1588114842.cb94f8cc805d728e09a8c23f03571f55b6ef783b.whissi@gentoo
1 commit: cb94f8cc805d728e09a8c23f03571f55b6ef783b
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 28 22:32:24 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 28 23:00:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb94f8cc
7
8 dev-libs/librelp: bump to v1.6.0
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-libs/librelp/Manifest | 1 +
14 dev-libs/librelp/librelp-1.6.0.ebuild | 74 +++++++++++++++++++++++++++++++++++
15 2 files changed, 75 insertions(+)
16
17 diff --git a/dev-libs/librelp/Manifest b/dev-libs/librelp/Manifest
18 index d3cdde4e4c9..e4ac6ea06d4 100644
19 --- a/dev-libs/librelp/Manifest
20 +++ b/dev-libs/librelp/Manifest
21 @@ -1,2 +1,3 @@
22 DIST librelp-1.4.0.tar.gz 519235 BLAKE2B 9c1e52cc9f666e75f261db65f45e3d954afa033cac59f93394c30ba99ed772d71b2882bdbb9bed696e57ed99805d47e57fd5e331cc3bc3850c5f15041a0d70d0 SHA512 92d01a51b4ee3c66d1f65d2e26f214646d72b41a8411ab700fe5f9f30f805ef98dec962526ef95c8d8428bf7398d38f656c919f95a3e49382adc745ef9eb4239
23 DIST librelp-1.5.0.tar.gz 521793 BLAKE2B f3fa42ab1df5bc7fea340bf87f241666535f61a5726df55f47f6f324347a1dbbede2a66d252fe654d21e79ee44684aa51e83cace32491778d6cc42698f578195 SHA512 b7fb35e4ddb5c3c14ef733699405f8aa62911adef305cd4f494170e111bc61a9208b84dab472a708582cd76ad9976894dae0e7574e60acdae2b56491aa7daf36
24 +DIST librelp-1.6.0.tar.gz 522827 BLAKE2B 04e608a3afe4e6e0109cc9bf753de34e9486595e33bc57387b9428bcf50f8d56177e8f849870611778636be5a58714e4640048758c83a041a354f70442d55cf0 SHA512 1bf96b700fa5ab648ed671b341ae7101fc1db4107f178abd507647afe4f12d59a94c821cc0e06998ac7b344ed41a5e3821843c722c82bf5284c6556995391228
25
26 diff --git a/dev-libs/librelp/librelp-1.6.0.ebuild b/dev-libs/librelp/librelp-1.6.0.ebuild
27 new file mode 100644
28 index 00000000000..edacd29ee8e
29 --- /dev/null
30 +++ b/dev-libs/librelp/librelp-1.6.0.ebuild
31 @@ -0,0 +1,74 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +PYTHON_COMPAT=( python3_{6,7,8} )
37 +
38 +inherit autotools python-any-r1
39 +
40 +DESCRIPTION="An easy to use library for the RELP protocol"
41 +HOMEPAGE="https://www.rsyslog.com/librelp/"
42 +SRC_URI="https://download.rsyslog.com/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-3+ doc? ( FDL-1.3 )"
45 +
46 +# subslot = soname version
47 +SLOT="0/0.5.0"
48 +
49 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
50 +IUSE="debug doc +ssl +gnutls libressl openssl static-libs test"
51 +REQUIRED_USE="ssl? ( ^^ ( gnutls openssl ) )"
52 +
53 +RDEPEND="
54 + ssl? (
55 + gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
56 + openssl? (
57 + !libressl? ( dev-libs/openssl:0= )
58 + libressl? ( dev-libs/libressl:0= )
59 + )
60 + )"
61 +DEPEND="${RDEPEND}
62 + test? ( ${PYTHON_DEPS} )
63 + virtual/pkgconfig"
64 +
65 +RESTRICT="!test? ( test )"
66 +
67 +pkg_setup() {
68 + use test && python-any-r1_pkg_setup
69 +}
70 +
71 +src_prepare() {
72 + sed -i \
73 + -e 's/ -g"/"/g' \
74 + configure.ac || die "sed failed"
75 +
76 + default
77 +
78 + eautoreconf
79 +}
80 +
81 +src_configure() {
82 + local myeconfargs=(
83 + --disable-valgrind
84 + $(use_enable debug)
85 + $(use_enable gnutls tls)
86 + $(use_enable openssl tls-openssl)
87 + $(use_enable static-libs static)
88 + )
89 +
90 + econf "${myeconfargs[@]}"
91 +}
92 +
93 +src_test() {
94 + emake -j1 check
95 +}
96 +
97 +src_install() {
98 + local DOCS=( ChangeLog )
99 + use doc && local HTML_DOCS=( doc/relp.html )
100 + default
101 +
102 + if ! use static-libs; then
103 + find "${D}" -name '*.la' -delete || die
104 + fi
105 +}