Gentoo Archives: gentoo-commits

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