diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-09 12:02:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-09 12:02:14 +0000 |
commit | 0fd62365fc104d7e6d5f3ef67800df09225a4019 (patch) | |
tree | 163b4a5055e07325ae1dc4f9bbbc2021ca1b6afa /dev-libs/librelp/librelp-1.10.0-r1.ebuild | |
parent | 442eaf1780a48ddbd7a39f5a3f34d959c3c6d27e (diff) |
gentoo auto-resync : 09:03:2023 - 12:02:14
Diffstat (limited to 'dev-libs/librelp/librelp-1.10.0-r1.ebuild')
-rw-r--r-- | dev-libs/librelp/librelp-1.10.0-r1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-libs/librelp/librelp-1.10.0-r1.ebuild b/dev-libs/librelp/librelp-1.10.0-r1.ebuild new file mode 100644 index 000000000000..5aac6f9418b9 --- /dev/null +++ b/dev-libs/librelp/librelp-1.10.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit autotools python-any-r1 + +DESCRIPTION="An easy to use library for the RELP protocol" +HOMEPAGE="https://www.rsyslog.com/librelp/" +SRC_URI="https://download.rsyslog.com/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+ doc? ( FDL-1.3 )" +# subslot = soname version +SLOT="0/0.5.1" +KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc64 ~riscv sparc x86" +IUSE="debug doc +ssl +gnutls openssl static-libs test" +REQUIRED_USE="ssl? ( ^^ ( gnutls openssl ) )" +RESTRICT="!test? ( test )" + +RDEPEND=" + ssl? ( + gnutls? ( >=net-libs/gnutls-3.3.17.1:= ) + openssl? ( dev-libs/openssl:= ) + ) +" +DEPEND=" + ${RDEPEND} + test? ( ${PYTHON_DEPS} ) +" +BDEPEND="virtual/pkgconfig" + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + sed -i \ + -e 's/ -g"/"/g' \ + configure.ac || die "sed failed" + + default + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-valgrind + --disable-Werror + $(use_enable debug) + $(use_enable gnutls tls) + $(use_enable openssl tls-openssl) + $(use_enable static-libs static) + ) + + CONFIG_SHELL="${BROOT}"/bin/bash 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 "${D}" -name '*.la' -delete || die + fi +} |