Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpreludedb/
Date: Mon, 12 Oct 2020 12:39:59
Message-Id: 1602506386.bf6f566b80397fd41cd46cb29efe966251cf21dc.juippis@gentoo
1 commit: bf6f566b80397fd41cd46cb29efe966251cf21dc
2 Author: Thomas Andrejak <thomas.andrejak <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 28 23:16:29 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 12 12:39:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf6f566b
7
8 dev-libs/libpreludedb: Bump version 5.2.0
9
10 Signed-off-by: Thomas Andrejak <thomas.andrejak <AT> gmail.com>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 dev-libs/libpreludedb/Manifest | 1 +
14 dev-libs/libpreludedb/libpreludedb-5.2.0.ebuild | 92 +++++++++++++++++++++++++
15 2 files changed, 93 insertions(+)
16
17 diff --git a/dev-libs/libpreludedb/Manifest b/dev-libs/libpreludedb/Manifest
18 index fb2212e28bd..3a04f85d8ad 100644
19 --- a/dev-libs/libpreludedb/Manifest
20 +++ b/dev-libs/libpreludedb/Manifest
21 @@ -1,3 +1,4 @@
22 DIST libpreludedb-4.0.0.tar.gz 1325812 BLAKE2B 7a506f7cd7b51898e26201f2cc640b1f34227f9cf7c5c6e2385480f1fc0ad854b6d747293ab502b641cc65f1ee9ae4a8f225e6a1d4489bcaa59901c6342f1279 SHA512 13f5dbcfa6af965f2075d60c645ebb19cbd6b18807b26f4f13a7a05f1cf552996f9846e856728a4e1dc621efda693016e82623d4a3cbf74849b3e7114f19faca
23 DIST libpreludedb-4.1.0.tar.gz 1333638 BLAKE2B 380a6d4ef8836555510f9f9882b6100417f2567520c421355fb7eec8d2cd7e2f3942c4cb90ea21fa1557327026edd5c1e35e338a79e06a21cfb2bd6813a289c2 SHA512 de1fa5106d7f34edb5a23e726c968de84bb8b10257587b6ee36276ed75ddc54f4f9539aecb7836e114eb3bfa90104dd3b5e097be0c3d12347dcbded94f293dc4
24 DIST libpreludedb-5.1.0.tar.gz 1374511 BLAKE2B 569324a5ae484b1d13ac729f25a2f7f8924a8dced923859cdc393289acf0c0cf098ae6e0f9f572a707c85aa9af4a27bbaa0927e20d610b423e2aae86718d232b SHA512 9e45e0f7a945eef254f8e59c0c7212c6afca897584ea8f2c88e16478fde448abdeeb991828cc2482373d2c735e1229f1a11fe9780e40da1a8aed867fe158f481
25 +DIST libpreludedb-5.2.0.tar.gz 1372810 BLAKE2B 5a6bed23eba77591b8e97bb3c6f2b321970c94f88fb86094146a1a3fa64cc0f0c97ca1d1488b2202ab7042207ca2ca4f74029415ef1ca6ea13c84d158a23473f SHA512 357e3ce69927ed405bc757774466631d34cad9b53031be6ce456238dd8aef3781471ecbb36ab4a3131468f4686a635095aaf837d23a0efc9db758322298e7744
26
27 diff --git a/dev-libs/libpreludedb/libpreludedb-5.2.0.ebuild b/dev-libs/libpreludedb/libpreludedb-5.2.0.ebuild
28 new file mode 100644
29 index 00000000000..c60925e967f
30 --- /dev/null
31 +++ b/dev-libs/libpreludedb/libpreludedb-5.2.0.ebuild
32 @@ -0,0 +1,92 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7,8} )
39 +DISTUTILS_OPTIONAL=1
40 +
41 +inherit autotools distutils-r1
42 +
43 +DESCRIPTION="Framework to easy access to the Prelude database"
44 +HOMEPAGE="https://www.prelude-siem.org"
45 +SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="mysql postgres python sqlite"
51 +
52 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 +
54 +RDEPEND=">=dev-libs/libprelude-5.2.0
55 + <dev-libs/libprelude-6
56 + net-libs/gnutls:=
57 + mysql? ( dev-db/mysql-connector-c:= )
58 + postgres? ( dev-db/postgresql:* )
59 + python? ( ${PYTHON_DEPS} )
60 + sqlite? ( dev-db/sqlite:3 )"
61 +
62 +DEPEND="${RDEPEND}"
63 +
64 +BDEPEND=">=dev-lang/swig-4.0.0
65 + dev-util/gtk-doc-am
66 + sys-devel/flex
67 + virtual/pkgconfig
68 + virtual/yacc
69 + python? ( ${PYTHON_DEPS} )"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/${PN}-4.0.0-fix-python-bindings.patch"
73 + "${FILESDIR}/${PN}-5.1.0-fix_gtkdoc_1.32.patch"
74 + "${FILESDIR}/${PN}-5.1.0-update_m4_postgresql.patch"
75 +)
76 +
77 +src_prepare() {
78 + default
79 +
80 + eautoreconf
81 +
82 + if use python; then
83 + cd bindings/python || die
84 + distutils-r1_src_prepare
85 + fi
86 +}
87 +
88 +src_configure() {
89 + local myconf=(
90 + --enable-easy-bindings
91 + --without-swig
92 + --without-python2
93 + --localstatedir="${EPREFIX}/var"
94 + $(use_with mysql)
95 + $(use_with postgres postgresql)
96 + $(use_with sqlite sqlite3)
97 + )
98 +
99 + if use python; then
100 + python_setup
101 + myconf+=( --with-python3="${EPYTHON}" )
102 + else
103 + myconf+=( --without-python3 )
104 + fi
105 +
106 + econf "${myconf[@]}"
107 +}
108 +
109 +src_compile() {
110 + default
111 + if use python; then
112 + cd bindings/python || die
113 + distutils-r1_src_compile
114 + fi
115 +}
116 +
117 +src_install() {
118 + default
119 + find "${D}" -name '*.la' -delete || die
120 + if use python; then
121 + cd bindings/python || die
122 + distutils-r1_src_install
123 + fi
124 +}