diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-08-04 18:31:47 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-08-04 18:32:17 +0200 |
commit | d381f6e4ebd9f79e122c9d33bb1a580697a68662 (patch) | |
tree | 3a3a5e06e8426784ee654798ade94248be22c5cd /dev-libs/librelp/librelp-1.2.17.ebuild | |
parent | dev-libs/librelp: drop old (diff) | |
download | gentoo-d381f6e4ebd9f79e122c9d33bb1a580697a68662.tar.gz gentoo-d381f6e4ebd9f79e122c9d33bb1a580697a68662.tar.bz2 gentoo-d381f6e4ebd9f79e122c9d33bb1a580697a68662.zip |
dev-libs/librelp: bump to v1.2.17
- EAPI bumped to EAPI=7
- You can now use OpenSSL (or LibreSSL) instead of GnuTLS
for TLS engine.
Package-Manager: Portage-2.3.44, Repoman-2.3.10
Diffstat (limited to 'dev-libs/librelp/librelp-1.2.17.ebuild')
-rw-r--r-- | dev-libs/librelp/librelp-1.2.17.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/librelp/librelp-1.2.17.ebuild b/dev-libs/librelp/librelp-1.2.17.ebuild new file mode 100644 index 000000000000..ffce4fe9ec95 --- /dev/null +++ b/dev-libs/librelp/librelp-1.2.17.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit autotools + +DESCRIPTION="An easy to use library for the RELP protocol" +HOMEPAGE="http://www.librelp.com/" +SRC_URI="http://download.rsyslog.com/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+ doc? ( FDL-1.3 )" + +# subslot = soname version +SLOT="0/0.4.0" + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86" +IUSE="debug doc +ssl +gnutls libressl openssl static-libs" +REQUIRED_USE="ssl? ( ^^ ( gnutls openssl ) ) + gnutls? ( ssl ) + openssl? ( ssl ) + libressl? ( openssl )" + +RDEPEND="ssl? ( + gnutls? ( >=net-libs/gnutls-3.3.17.1:0= ) + openssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + )" + +DEPEND="ssl? ( + gnutls? ( >=net-libs/gnutls-3.3.17.1:0= ) + openssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + ) + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e 's/ -g"/"/g' \ + configure.ac || die "sed failed" + + default + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-valgrind + $(use_enable debug) + $(use_enable gnutls tls) + $(use_enable openssl tls-openssl) + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + emake -j1 check +} + +src_install() { + local DOCS=( ChangeLog ) + use doc && local HTML_DOCS=( doc/relp.html ) + default + + if ! use static-libs; then + find "${ED}"usr/lib* -name '*.la' -delete || die + fi +} |