1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7,8} )
7 inherit autotools python-any-r1
9 DESCRIPTION="An easy to use library for the RELP protocol"
10 HOMEPAGE="https://www.rsyslog.com/librelp/"
11 SRC_URI="https://download.rsyslog.com/${PN}/${P}.tar.gz"
13 LICENSE="GPL-3+ doc? ( FDL-1.3 )"
15 # subslot = soname version
18 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
19 IUSE="debug doc +ssl +gnutls libressl openssl static-libs test"
20 REQUIRED_USE="ssl? ( ^^ ( gnutls openssl ) )"
24 gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
26 !libressl? ( dev-libs/openssl:0= )
27 libressl? ( dev-libs/libressl:0= )
31 test? ( ${PYTHON_DEPS} )
34 RESTRICT="!test? ( test )"
37 use test && python-any-r1_pkg_setup
43 configure.ac || die "sed failed"
54 $(use_enable gnutls tls)
55 $(use_enable openssl tls-openssl)
56 $(use_enable static-libs static)
59 econf "${myeconfargs[@]}"
67 local DOCS=( ChangeLog )
68 use doc && local HTML_DOCS=( doc/relp.html )
71 if ! use static-libs; then
72 find "${D}" -name '*.la' -delete || die