1 |
commit: b7020d2f9adbf5443c9d39821be206164a3076ab |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 8 17:24:29 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 8 17:24:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7020d2f |
7 |
|
8 |
dev-db/libzdb: Revbump for EAPI, build failure and dep change |
9 |
|
10 |
Closes: https://bugs.gentoo.org/665842 |
11 |
Closes: https://bugs.gentoo.org/674462 |
12 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
13 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
14 |
|
15 |
dev-db/libzdb/libzdb-3.1-r1.ebuild | 93 ++++++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 93 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/libzdb/libzdb-3.1-r1.ebuild b/dev-db/libzdb/libzdb-3.1-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..838dc0b0f56 |
21 |
--- /dev/null |
22 |
+++ b/dev-db/libzdb/libzdb-3.1-r1.ebuild |
23 |
@@ -0,0 +1,93 @@ |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="A thread safe high level multi-database connection pool library" |
32 |
+HOMEPAGE="http://www.tildeslash.com/libzdb/" |
33 |
+SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-3" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="debug doc mysql postgres +sqlite ssl static-libs" |
39 |
+REQUIRED_USE=" || ( postgres mysql sqlite )" |
40 |
+ |
41 |
+RESTRICT=test |
42 |
+ |
43 |
+RDEPEND="mysql? ( dev-db/mysql-connector-c:0= ) |
44 |
+ postgres? ( dev-db/postgresql ) |
45 |
+ sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] ) |
46 |
+ ssl? ( dev-libs/openssl:0= )" |
47 |
+DEPEND="${RDEPEND} |
48 |
+ virtual/pkgconfig |
49 |
+ doc? ( app-doc/doxygen )" |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ default |
53 |
+ sed -i -e "s|&& ./pool||g" test/Makefile.in || die |
54 |
+ # Fix detection of openssl 1.1 |
55 |
+ sed -i -e "s|SSL_library_init|SSL_CTX_new|" configure || die |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ ## TODO: check what --enable-optimized actually does |
60 |
+ ## TODO: find someone with oracle db to add oci8 support |
61 |
+ myconf="" |
62 |
+ if [[ $(gcc-version) < 4.1 ]];then |
63 |
+ myconf="${myconf} --disable-protected" |
64 |
+ else |
65 |
+ myconf="${myconf} --enable-protected" |
66 |
+ fi |
67 |
+ |
68 |
+ if use sqlite; then |
69 |
+ myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock" |
70 |
+ else |
71 |
+ myconf="${myconf} --without-sqlite" |
72 |
+ fi |
73 |
+ |
74 |
+ if use mysql; then |
75 |
+ myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config" |
76 |
+ else |
77 |
+ myconf="${myconf} --without-mysql" |
78 |
+ fi |
79 |
+ |
80 |
+ if use postgres; then |
81 |
+ myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config" |
82 |
+ else |
83 |
+ myconf="${myconf} --without-postgresql" |
84 |
+ fi |
85 |
+ |
86 |
+ econf \ |
87 |
+ $(use_enable debug profiling) \ |
88 |
+ $(use_enable static-libs static) \ |
89 |
+ $(use_enable ssl openssl) \ |
90 |
+ --without-oci \ |
91 |
+ ${myconf} |
92 |
+} |
93 |
+ |
94 |
+src_compile() { |
95 |
+ default |
96 |
+ if use doc; then |
97 |
+ emake doc |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ default |
103 |
+ |
104 |
+ # the --disable-static flag only skips .a |
105 |
+ use static-libs || rm -f "${D}"/usr/lib*/libzdb.la |
106 |
+ |
107 |
+ dodoc AUTHORS CHANGES README |
108 |
+ if use doc;then |
109 |
+ docinto html |
110 |
+ dodoc -r "${S}/doc/api-docs"/* |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+src_test() { |
115 |
+ emake verify |
116 |
+} |