1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_{4,5}} )
8 USE_RUBY="ruby21 ruby22"
10 inherit autotools eutils python-r1 ruby-single
12 DESCRIPTION="Prelude-SIEM Framework Library"
13 HOMEPAGE="https://www.prelude-siem.org"
14 SRC_URI="https://www.prelude-siem.org/pkg/src/3.0.0/${P}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="doc lua python ruby perl"
21 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
23 RDEPEND="dev-libs/libgcrypt:0=
25 perl? ( dev-lang/perl virtual/perl-ExtUtils-MakeMaker )
26 lua? ( dev-lang/lua:* )
27 ruby? ( ${RUBY_DEPS} )
28 python? ( ${PYTHON_DEPS} )"
31 doc? ( dev-util/gtk-doc )
38 "${FILESDIR}/${P}-perl-hardening.patch"
39 "${FILESDIR}/${P}-ruby-m4.patch"
40 "${FILESDIR}/${P}-ruby-configure.patch"
46 # Avoid null runpaths in Perl bindings.
47 sed -e 's/ LD_RUN_PATH=""//' -i "${S}/bindings/Makefile.am" || die "sed failed"
49 mv "${S}/configure.in" "${S}/configure.ac" || die "mv failed"
55 local python2_configure=--without-python2
56 local python3_configure=--without-python3
59 if [[ ${EPYTHON} == python2* ]]; then
60 python2_configure=--with-python2
61 elif [[ ${EPYTHON} == python3* ]]; then
62 python3_configure=--with-python3
67 python_foreach_impl chk_python
71 --enable-easy-bindings \
74 $(use_enable doc gtk-doc) \
77 ${python2_configure} \
83 prune_libtool_files --modules