Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/libdbi-drivers: ChangeLog libdbi-drivers-0.8.3.ebuild
Date: Mon, 29 Sep 2008 02:41:16
Message-Id: E1Kk8hF-0004EI-To@stork.gentoo.org
1 robbat2 08/09/29 02:41:13
2
3 Modified: ChangeLog
4 Added: libdbi-drivers-0.8.3.ebuild
5 Log:
6 Version bump per bug #237993.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
8
9 Revision Changes Path
10 1.27 dev-db/libdbi-drivers/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?rev=1.27&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?rev=1.27&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?r1=1.26&r2=1.27
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v
19 retrieving revision 1.26
20 retrieving revision 1.27
21 diff -p -w -b -B -u -u -r1.26 -r1.27
22 --- ChangeLog 21 May 2008 15:54:57 -0000 1.26
23 +++ ChangeLog 29 Sep 2008 02:41:13 -0000 1.27
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-db/libdbi-drivers
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.26 2008/05/21 15:54:57 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.27 2008/09/29 02:41:13 robbat2 Exp $
29 +
30 +*libdbi-drivers-0.8.3 (29 Sep 2008)
31 +
32 + 29 Sep 2008; Robin H. Johnson <robbat2@g.o>
33 + +libdbi-drivers-0.8.3.ebuild:
34 + Version bump per bug #237993.
35
36 21 May 2008; Tiziano Müller <dev-zero@g.o>
37 libdbi-drivers-0.7.1-r1.ebuild, libdbi-drivers-0.8.0.ebuild,
38
39
40
41 1.1 dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libdbi-drivers-0.8.3.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild,v 1.1 2008/09/29 02:41:13 robbat2 Exp $
51
52 inherit eutils
53
54 MY_PV="${PV}-1"
55 MY_P="${PN}-${MY_PV}"
56
57 DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi."
58 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
59 HOMEPAGE="http://libdbi-drivers.sourceforge.net/"
60 LICENSE="LGPL-2.1"
61 DEPEND=">=dev-db/libdbi-0.8.3
62 mysql? ( virtual/mysql )
63 postgres? ( virtual/postgresql-server )
64 sqlite? ( <dev-db/sqlite-3 )
65 sqlite3? ( >=dev-db/sqlite-3 )
66 !bindist? ( firebird? ( dev-db/firebird ) )"
67
68 IUSE="mysql postgres sqlite oci8 firebird sqlite3 bindist"
69 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
70 SLOT=0
71 S="${WORKDIR}/${MY_P}"
72
73 pkg_setup() {
74 local drivers=""
75 use mysql && drivers="${drivers} mysql"
76 use postgres && drivers="${drivers} pgsql"
77 use sqlite && drivers="${drivers} sqlite"
78 use sqlite3 && drivers="${drivers} sqlite3"
79 if use firebird; then
80 if use bindist; then
81 eerror "The Interbase Public License is incompatible with LGPL, see bug #200284."
82 eerror "Disabling firebird in the build"
83 else
84 drivers="${drivers} firebird"
85 fi
86 fi
87 if use oci8; then
88 if [ -z "${ORACLE_HOME}" ]; then
89 die "\$ORACLE_HOME is not set!"
90 fi
91 drivers="${drivers} oracle"
92 fi
93 # safety check
94 if [ -z "${drivers// /}" ]; then
95 die "No supported databases in your USE flags! (mysql, postgres, sqlite, sqlite3, oracle, firebird)"
96 fi
97 }
98
99 src_compile() {
100 local myconf=""
101 # WARNING: the configure script does NOT work correctly
102 # --without-$driver does NOT work
103 # so do NOT use `use_with...`
104 use mysql && myconf="${myconf} --with-mysql"
105 use postgres && myconf="${myconf} --with-pgsql"
106 use sqlite && myconf="${myconf} --with-sqlite"
107 use sqlite3 && myconf="${myconf} --with-sqlite3"
108 use !bindist && use firebird && myconf="${myconf} --with-firebird"
109 if use oci8; then
110 if [ -z "${ORACLE_HOME}" ]; then
111 die "\$ORACLE_HOME is not set!"
112 fi
113 myconf="${myconf} --with-oracle-dir=${ORACLE_HOME} --with-oracle"
114 fi
115
116 econf ${myconf} || die "econf failed"
117 emake || die "emake failed"
118 }
119
120 src_install () {
121 emake install DESTDIR="${D}" || die "make install failed"
122 dodoc AUTHORS ChangeLog NEWS README README.osx TODO
123 }