diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-21 18:59:32 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-21 18:59:32 +0100 |
commit | 520a5b56dff7c24c9d42eafec142cb78b44f8e3e (patch) | |
tree | f562f705600dbd2292e97c0b4145787c2a8d1f97 /dev-libs/libprelude/libprelude-4.1.0.ebuild | |
parent | 3811bc3072bf19e2be351d2c63f81532945c0f21 (diff) |
gentoo resync : 21.07.2018
Diffstat (limited to 'dev-libs/libprelude/libprelude-4.1.0.ebuild')
-rw-r--r-- | dev-libs/libprelude/libprelude-4.1.0.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/dev-libs/libprelude/libprelude-4.1.0.ebuild b/dev-libs/libprelude/libprelude-4.1.0.ebuild new file mode 100644 index 000000000000..975d9e553ea4 --- /dev/null +++ b/dev-libs/libprelude/libprelude-4.1.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) +USE_RUBY="ruby22 ruby23 ruby24 ruby25" +DISTUTILS_OPTIONAL=1 + +inherit autotools distutils-r1 ruby-single + +DESCRIPTION="Prelude-SIEM Framework Library" +HOMEPAGE="https://www.prelude-siem.org" +SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="lua perl python ruby" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="net-libs/gnutls:= + lua? ( dev-lang/lua:* ) + perl? ( dev-lang/perl:= virtual/perl-ExtUtils-MakeMaker ) + python? ( ${PYTHON_DEPS} ) + ruby? ( ${RUBY_DEPS} )" + +DEPEND="${RDEPEND} + >=dev-lang/swig-3.0.11 + dev-util/gtk-doc-am + sys-devel/flex + virtual/pkgconfig + virtual/yacc" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.0-fix-python-bindings.patch" +) + +src_prepare() { + default + + # Avoid null runpaths in Perl bindings. + sed -e 's/ LD_RUN_PATH=""//' -i "${S}/bindings/Makefile.am" || die "sed failed" + + eautoreconf + + if use python; then + cd bindings/python || die + distutils-r1_src_prepare + fi +} + +src_configure() { + local myconf=( + --enable-easy-bindings + --with-swig + $(use_with lua) + $(use_with perl) + $(usex perl '--with-perl-installdirs=vendor' '') + $(use_with ruby) + ) + + if use python; then + python_setup + if python_is_python3; then + myconf+=(--without-python2 --with-python3="${EPYTHON}") + else + myconf+=(--without-python3 --with-python2="${EPYTHON}") + fi + else + myconf+=(--without-python2 --without-python3) + fi + + econf "${myconf[@]}" +} + +src_compile() { + default + if use python; then + cd bindings/python || die + distutils-r1_src_compile + fi +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + if use python; then + cd bindings/python || die + distutils-r1_src_install + fi +} |