1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 )
6 USE_RUBY="ruby21 ruby22 ruby23 ruby24"
9 inherit autotools distutils-r1 ruby-single
11 DESCRIPTION="Prelude-SIEM Framework Library"
12 HOMEPAGE="https://www.prelude-siem.org"
13 SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="lua perl python ruby"
20 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
22 RDEPEND="net-libs/gnutls:=
23 lua? ( dev-lang/lua:* )
24 perl? ( dev-lang/perl:= virtual/perl-ExtUtils-MakeMaker )
25 python? ( ${PYTHON_DEPS} )
26 ruby? ( ${RUBY_DEPS} )"
36 "${FILESDIR}/${P}-fix-python-bindings.patch"
42 # Avoid null runpaths in Perl bindings.
43 sed -e 's/ LD_RUN_PATH=""//' -i "${S}/bindings/Makefile.am" || die "sed failed"
48 cd bindings/python || die
49 distutils-r1_src_prepare
55 --enable-easy-bindings
59 $(usex perl '--with-perl-installdirs=vendor' '')
65 if python_is_python3; then
66 myconf+=(--without-python2 --with-python3="${EPYTHON}")
68 myconf+=(--without-python3 --with-python2="${EPYTHON}")
71 myconf+=(--without-python2 --without-python3)
80 cd bindings/python || die
81 distutils-r1_src_compile
87 find "${D}" -name '*.la' -delete || die
89 cd bindings/python || die
90 distutils-r1_src_install