commit:     b6197bd4cdc42e5f5b09ac963fcb7e06202a0ca6
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  7 13:34:38 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Dec  7 13:35:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6197bd4

dev-libs/libprelude: migrate to lua eclass

Closes: https://bugs.gentoo.org/752588
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/libprelude/libprelude-5.2.0-r10.ebuild | 102 ++++++++++++++++++++++++
 profiles/package.mask                           |   2 +
 2 files changed, 104 insertions(+)

diff --git a/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild 
b/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild
new file mode 100644
index 00000000000..5f21c422533
--- /dev/null
+++ b/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+USE_RUBY="ruby25 ruby26 ruby27"
+DISTUTILS_OPTIONAL=1
+
+LUA_COMPAT=( lua5-{1..3} )
+
+inherit autotools distutils-r1 lua-single 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="lua? ( ${LUA_REQUIRED_USE} )
+       python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="net-libs/gnutls:=
+       lua? ( ${LUA_DEPS} )
+       perl? ( dev-lang/perl:= )
+       python? ( ${PYTHON_DEPS} )
+       ruby? ( ${RUBY_DEPS} )"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND=">=dev-lang/swig-4.0.0
+       dev-util/gtk-doc-am
+       sys-devel/flex
+       lua? ( dev-lang/lua:* )
+       perl? ( dev-lang/perl:= virtual/perl-ExtUtils-MakeMaker )
+       python? ( ${PYTHON_DEPS} )
+       ruby? ( ${RUBY_DEPS} )
+       virtual/pkgconfig
+       virtual/yacc"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-4.0.0-fix-python-bindings.patch"
+       "${FILESDIR}/${PN}-5.1.0-fix_gtkdoc_1.32.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
+               --without-python2
+               --localstatedir="${EPREFIX}/var"
+               $(use_with lua)
+               $(use_with perl)
+               $(usex perl '--with-perl-installdirs=vendor' '')
+               $(use_with ruby)
+       )
+
+       if use python; then
+               python_setup
+               myconf+=( --with-python3="${EPYTHON}" )
+       else
+               myconf+=( --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
+
+       keepdir /var/spool/prelude
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index c51c373378e..ac51af5d9ea 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -508,6 +508,7 @@ gnome-base/orbit
 # Thomas Deutschmann <whi...@gentoo.org> (2018-12-10)
 # Marek Szuba <mare...@gentoo.org> (2020-10-13)
 # Ulrich Müller <u...@gentoo.org> (2020-11-06)
+# Joonas Niilola <juip...@gentoo.org> (2020-11-07)
 # Robin H. Johnson <robb...@gentoo.org> (2020-11-28)
 # Conrad Kostecki <conik...@gentoo.org> (2020-12-05)
 # ...and others who have not added their names here
@@ -522,6 +523,7 @@ gnome-base/orbit
 >=dev-games/cegui-0.8.7-r100
 =dev-games/openscenegraph-openmw-3.4_p20200425-r100
 =dev-libs/efl-1.25.1-r10
+=dev-libs/libprelude-5.2.0-r10
 >=dev-lua/busted-2.0.0-r100
 >=dev-lua/busted-htest-1.0.0-r100
 >=dev-lua/dkjson-2.5-r100

Reply via email to