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: Wed, 13 Mar 2019 22:58:30
Message-Id: 1552517896.0e658bd3b2450cd2e058c6da80de34c3321f2532.whissi@gentoo
1 commit: 0e658bd3b2450cd2e058c6da80de34c3321f2532
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 13 22:53:13 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 13 22:58:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e658bd3
7
8 dev-libs/librelp: bump to v1.4.0
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-libs/librelp/Manifest | 1 +
14 dev-libs/librelp/librelp-1.4.0.ebuild | 83 +++++++++++++++++++++++++++++++++++
15 2 files changed, 84 insertions(+)
16
17 diff --git a/dev-libs/librelp/Manifest b/dev-libs/librelp/Manifest
18 index 529bb05a24c..a713989ed53 100644
19 --- a/dev-libs/librelp/Manifest
20 +++ b/dev-libs/librelp/Manifest
21 @@ -1,2 +1,3 @@
22 DIST librelp-1.2.18.tar.gz 506766 BLAKE2B 939bd2279e03a6431fbdfb787aa3d62b3f622ec3248dfc7c0a0a141294c27319081092a624c328374cdba0cbd51659301a77ad41bed27ba13f47601f7a607944 SHA512 7193438238b7019e7a4944d6d900a1fa5a369ff8a6b97a6dca7e82b6637c0f391ec3554eeeaa285881457cb2abe72fa1a893244ec9a36cc9d2e2592d58c5462a
23 DIST librelp-1.3.0.tar.gz 514470 BLAKE2B 3e8d844d3cccd4c148036191f376ba49b3851a2c7e95361bb31a1a172ca0813caa96eb3753b2285a2547c85e073de3237a749bc64fc0fead69ab170656dcb200 SHA512 6e60398c68a78f4b4202a697e144f1516ff3bbb32192f745b52c77d107954febf8cb31d2e166efa96c00122f6807860ecd01084f1d3d4005336f2cb75e6461c9
24 +DIST librelp-1.4.0.tar.gz 519235 BLAKE2B 9c1e52cc9f666e75f261db65f45e3d954afa033cac59f93394c30ba99ed772d71b2882bdbb9bed696e57ed99805d47e57fd5e331cc3bc3850c5f15041a0d70d0 SHA512 92d01a51b4ee3c66d1f65d2e26f214646d72b41a8411ab700fe5f9f30f805ef98dec962526ef95c8d8428bf7398d38f656c919f95a3e49382adc745ef9eb4239
25
26 diff --git a/dev-libs/librelp/librelp-1.4.0.ebuild b/dev-libs/librelp/librelp-1.4.0.ebuild
27 new file mode 100644
28 index 00000000000..26d84e37b33
29 --- /dev/null
30 +++ b/dev-libs/librelp/librelp-1.4.0.ebuild
31 @@ -0,0 +1,83 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
37 +
38 +inherit autotools python-any-r1
39 +
40 +DESCRIPTION="An easy to use library for the RELP protocol"
41 +HOMEPAGE="http://www.librelp.com/"
42 +SRC_URI="http://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 + gnutls? ( ssl )
53 + openssl? ( ssl )
54 + libressl? ( openssl )"
55 +
56 +RDEPEND="ssl? (
57 + gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
58 + openssl? (
59 + !libressl? ( dev-libs/openssl:0= )
60 + libressl? ( dev-libs/libressl:0= )
61 + )
62 + )"
63 +
64 +DEPEND="ssl? (
65 + gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
66 + openssl? (
67 + !libressl? ( dev-libs/openssl:0= )
68 + libressl? ( dev-libs/libressl:0= )
69 + )
70 + )
71 + test? ( ${PYTHON_DEPS} )
72 + virtual/pkgconfig"
73 +
74 +RESTRICT="!test? ( test )"
75 +
76 +pkg_setup() {
77 + use test && python-any-r1_pkg_setup
78 +}
79 +
80 +src_prepare() {
81 + sed -i \
82 + -e 's/ -g"/"/g' \
83 + configure.ac || die "sed failed"
84 +
85 + default
86 +
87 + eautoreconf
88 +}
89 +
90 +src_configure() {
91 + local myeconfargs=(
92 + --disable-valgrind
93 + $(use_enable debug)
94 + $(use_enable gnutls tls)
95 + $(use_enable openssl tls-openssl)
96 + $(use_enable static-libs static)
97 + )
98 +
99 + econf "${myeconfargs[@]}"
100 +}
101 +
102 +src_test() {
103 + emake -j1 check
104 +}
105 +
106 +src_install() {
107 + local DOCS=( ChangeLog )
108 + use doc && local HTML_DOCS=( doc/relp.html )
109 + default
110 +
111 + if ! use static-libs; then
112 + find "${ED%/}"/usr/lib* -name '*.la' -delete || die
113 + fi
114 +}