Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/libdbi-drivers/
Date: Fri, 23 Aug 2019 14:40:00
Message-Id: 1566571127.1c29811d86dbc0a458f74c8b026263ef3d83ca05.grknight@gentoo
1 commit: 1c29811d86dbc0a458f74c8b026263ef3d83ca05
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 23 14:36:53 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 23 14:38:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c29811d
7
8 dev-db/libdbi-drivers: Revbump for EAPI and deps
9
10 Non-maintainer commit
11
12 Change to EAPI 7 and use mysql-connector-c instead of virtual/mysql
13
14 Bug: https://bugs.gentoo.org/665840
15 Package-Manager: Portage-2.3.72, Repoman-2.3.17
16 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
17
18 .../libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild | 87 ++++++++++++++++++++++
19 1 file changed, 87 insertions(+)
20
21 diff --git a/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild
22 new file mode 100644
23 index 00000000000..a46e855b424
24 --- /dev/null
25 +++ b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild
26 @@ -0,0 +1,87 @@
27 +# Copyright 1999-2019 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +inherit autotools
33 +
34 +DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi"
35 +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${P}/${P}.tar.gz"
36 +HOMEPAGE="http://libdbi-drivers.sourceforge.net/"
37 +LICENSE="LGPL-2.1"
38 +
39 +IUSE="doc firebird mysql oci8 postgres +sqlite static-libs"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
41 +SLOT=0
42 +REQUIRED_USE="|| ( mysql postgres sqlite firebird oci8 )"
43 +RESTRICT="firebird? ( bindist )"
44 +
45 +RDEPEND="
46 + >=dev-db/libdbi-0.9.0
47 + firebird? ( dev-db/firebird )
48 + mysql? ( dev-db/mysql-connector-c:= )
49 + postgres? ( dev-db/postgresql:* )
50 + sqlite? ( dev-db/sqlite:3 )
51 +"
52 +DEPEND="${RDEPEND}"
53 +BDEPEND="doc? ( app-text/openjade )"
54 +
55 +DOCS=( AUTHORS ChangeLog NEWS README README.osx TODO )
56 +
57 +PATCHES=(
58 + #"${FILESDIR}"/${P}-fix-ac-macro.patch \
59 + #"${FILESDIR}"/${PN}-0.8.3-oracle-build-fix.patch \
60 + #"${FILESDIR}"/${PN}-0.8.3-firebird-fix.patch
61 + "${FILESDIR}"/${PN}-0.9.0-doc-build-fix.patch
62 +)
63 +
64 +pkg_setup() {
65 + use oci8 && [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!"
66 +}
67 +
68 +src_prepare() {
69 + default
70 + eautoreconf
71 +}
72 +
73 +src_configure() {
74 + local myconf=""
75 + # WARNING: the configure script does NOT work correctly
76 + # --without-$driver does NOT work
77 + # so do NOT use `use_with...`
78 + # Future additions:
79 + # msql
80 + # freetds
81 + # ingres
82 + # db2
83 + use mysql && myconf+=" --with-mysql"
84 + use postgres && myconf+=" --with-pgsql"
85 + use sqlite && myconf+=" --with-sqlite3"
86 + use firebird && myconf+=" --with-firebird"
87 + if use oci8; then
88 + [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!"
89 + myconf+=" --with-oracle-dir=${ORACLE_HOME} --with-oracle"
90 + fi
91 +
92 + econf \
93 + $(use_enable doc docs) \
94 + $(use_enable static-libs static) \
95 + --with-dbi-libdir=/usr/$(get_libdir) \
96 + ${myconf}
97 +}
98 +
99 +src_test() {
100 + if [[ -z "${WANT_INTERACTIVE_TESTS}" ]]; then
101 + ewarn "Tests disabled due to interactivity."
102 + ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them."
103 + return 0
104 + fi
105 + einfo "Running interactive tests"
106 + emake check
107 +}
108 +
109 +src_install() {
110 + default
111 +
112 + find "${D}" -name '*.la' -type f -delete || die
113 +}