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.1-r2.ebuild
Date: Mon, 26 Nov 2007 00:31:47
Message-Id: E1IwRsv-0006oE-N8@stork.gentoo.org
1 robbat2 07/11/26 00:31:37
2
3 Modified: ChangeLog
4 Added: libdbi-drivers-0.8.1-r2.ebuild
5 Log:
6 Block USE=firebird when USE=bindist is in play, per bug #200284 for license conflicts.
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.25 dev-db/libdbi-drivers/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?rev=1.25&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?rev=1.25&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?r1=1.24&r2=1.25
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v
19 retrieving revision 1.24
20 retrieving revision 1.25
21 diff -u -r1.24 -r1.25
22 --- ChangeLog 20 Jun 2007 07:39:57 -0000 1.24
23 +++ ChangeLog 26 Nov 2007 00:31:37 -0000 1.25
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-db/libdbi-drivers
26 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.24 2007/06/20 07:39:57 opfer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.25 2007/11/26 00:31:37 robbat2 Exp $
29 +
30 +*libdbi-drivers-0.8.1-r2 (26 Nov 2007)
31 +
32 + 26 Nov 2007; Robin H. Johnson <robbat2@g.o>
33 + +libdbi-drivers-0.8.1-r2.ebuild:
34 + Block USE=firebird when USE=bindist is in play, per bug #200284 for license
35 + conflicts.
36
37 20 Jun 2007; Christian Faulhammer <opfer@g.o>
38 libdbi-drivers-0.8.1-r1.ebuild:
39
40
41
42 1.1 dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libdbi-drivers-0.8.1-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild,v 1.1 2007/11/26 00:31:37 robbat2 Exp $
52
53 inherit eutils
54
55 DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi."
56 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
57 HOMEPAGE="http://libdbi-drivers.sourceforge.net/"
58 LICENSE="LGPL-2.1"
59 DEPEND=">=dev-db/libdbi-0.8.0
60 mysql? ( virtual/mysql )
61 postgres? ( dev-db/postgresql )
62 sqlite? ( <dev-db/sqlite-3 )
63 sqlite3? ( >=dev-db/sqlite-3 )
64 !bindist? ( firebird? ( dev-db/firebird ) )"
65
66 IUSE="mysql postgres sqlite oci8 firebird sqlite3 bindist"
67 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
68 SLOT=0
69
70 src_unpack() {
71 unpack ${A}
72 EPATCH_OPTS="-p1 -d${S}" epatch "${FILESDIR}"/${P}-oci8.diff
73 }
74
75 pkg_setup() {
76 local drivers=""
77 use mysql && drivers="${drivers} mysql"
78 use postgres && drivers="${drivers} pgsql"
79 use sqlite && drivers="${drivers} sqlite"
80 use sqlite3 && drivers="${drivers} sqlite3"
81 if use firebird; then
82 if use bindist; then
83 eerror "The Interbase Public License is incompatible with LGPL, see bug #200284."
84 eerror "Disabling firebird in the build"
85 else
86 drivers="${drivers} firebird"
87 fi
88 fi
89 if use oci8; then
90 if [ -z "${ORACLE_HOME}" ]; then
91 die "\$ORACLE_HOME is not set!"
92 fi
93 drivers="${drivers} oracle"
94 fi
95 # safety check
96 if [ -z "${drivers// /}" ]; then
97 die "No supported databases in your USE flags! (mysql, postgres, sqlite, sqlite3, oracle, firebird)"
98 fi
99 }
100
101 src_compile() {
102 local myconf=""
103 # WARNING: the configure script does NOT work correctly
104 # --without-$driver does NOT work
105 # so do NOT use `use_with...`
106 use mysql && myconf="${myconf} --with-mysql"
107 use postgres && myconf="${myconf} --with-pgsql"
108 use sqlite && myconf="${myconf} --with-sqlite"
109 use sqlite3 && myconf="${myconf} --with-sqlite3"
110 use !bindist && use firebird && myconf="${myconf} --with-firebird"
111 if use oci8; then
112 if [ -z "${ORACLE_HOME}" ]; then
113 die "\$ORACLE_HOME is not set!"
114 fi
115 myconf="${myconf} --with-oracle-dir=${ORACLE_HOME} --with-oracle"
116 fi
117
118 econf ${myconf} || die "econf failed"
119 emake || die "emake failed"
120 }
121
122 src_install () {
123 emake install DESTDIR="${D}" || die "make install failed"
124 dodoc AUTHORS ChangeLog NEWS README README.osx TODO
125 }
126
127
128
129 --
130 gentoo-commits@g.o mailing list