diff options
Diffstat (limited to 'dev-libs/libpreludedb/libpreludedb-3.1.0-r1.ebuild')
-rw-r--r-- | dev-libs/libpreludedb/libpreludedb-3.1.0-r1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-libs/libpreludedb/libpreludedb-3.1.0-r1.ebuild b/dev-libs/libpreludedb/libpreludedb-3.1.0-r1.ebuild new file mode 100644 index 000000000000..2fedf289e705 --- /dev/null +++ b/dev-libs/libpreludedb/libpreludedb-3.1.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_5} ) + +inherit autotools python-r1 + +DESCRIPTION="Framework to easy access to the Prelude database" +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="doc python mysql postgres sqlite" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/libgcrypt:0= + net-libs/gnutls:= + ~dev-libs/libprelude-${PV} + python? ( ${PYTHON_DEPS} ) + mysql? ( dev-db/mysql-connector-c:= ) + postgres? ( dev-db/postgresql:* ) + sqlite? ( dev-db/sqlite:3 )" + +DEPEND="${RDEPEND} + doc? ( dev-util/gtk-doc ) + sys-devel/flex + virtual/yacc + >=dev-lang/swig-3.0.7 + virtual/pkgconfig" + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local python2_configure=--without-python2 + local python3_configure=--without-python3 + + chk_python() { + if [[ ${EPYTHON} == python2* ]]; then + python2_configure=--with-python2 + elif [[ ${EPYTHON} == python3* ]]; then + python3_configure=--with-python3 + fi + } + + if use python; then + python_foreach_impl chk_python + fi + + econf \ + --enable-easy-bindings \ + --with-swig \ + $(use_enable doc gtk-doc) \ + ${python2_configure} \ + ${python3_configure} \ + $(use_with mysql) \ + $(use_with postgres postgresql) \ + $(use_with sqlite sqlite3) +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} |