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