1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
7 inherit autotools python-any-r1
9 DESCRIPTION="An easy to use library for the RELP protocol"
10 HOMEPAGE="http://www.librelp.com/"
11 SRC_URI="http://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 ) )
23 libressl? ( openssl )"
26 gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
28 !libressl? ( dev-libs/openssl:0= )
29 libressl? ( dev-libs/libressl:0= )
34 gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
36 !libressl? ( dev-libs/openssl:0= )
37 libressl? ( dev-libs/libressl:0= )
40 test? ( ${PYTHON_DEPS} )
43 RESTRICT="!test? ( test )"
46 use test && python-any-r1_pkg_setup
52 configure.ac || die "sed failed"
63 $(use_enable gnutls tls)
64 $(use_enable openssl tls-openssl)
65 $(use_enable static-libs static)
68 econf "${myeconfargs[@]}"
76 local DOCS=( ChangeLog )
77 use doc && local HTML_DOCS=( doc/relp.html )
80 if ! use static-libs; then
81 find "${ED%/}"/usr/lib* -name '*.la' -delete || die