1 |
robbat2 09/10/26 07:19:33 |
2 |
|
3 |
Modified: libdbi-drivers-0.8.3.ebuild ChangeLog |
4 |
Added: libdbi-drivers-0.8.3-r1.ebuild |
5 |
Log: |
6 |
Bug #289519: Fixup for Firebird compile. Bug #256411: Fix for Oracle compile. Bug #254851: USE-default for tinderbox build. |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.18 dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild?rev=1.18&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild?rev=1.18&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild?r1=1.17&r2=1.18 |
15 |
|
16 |
Index: libdbi-drivers-0.8.3.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild,v |
19 |
retrieving revision 1.17 |
20 |
retrieving revision 1.18 |
21 |
diff -p -w -b -B -u -u -r1.17 -r1.18 |
22 |
--- libdbi-drivers-0.8.3.ebuild 24 Feb 2009 17:44:47 -0000 1.17 |
23 |
+++ libdbi-drivers-0.8.3.ebuild 26 Oct 2009 07:19:33 -0000 1.18 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2009 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild,v 1.17 2009/02/24 17:44:47 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3.ebuild,v 1.18 2009/10/26 07:19:33 robbat2 Exp $ |
29 |
|
30 |
inherit eutils autotools |
31 |
|
32 |
@@ -27,6 +27,8 @@ S="${WORKDIR}/${MY_P}" |
33 |
src_unpack() { |
34 |
unpack ${A} |
35 |
epatch "${FILESDIR}"/${PN}-0.8.3-doc-build-fix.patch |
36 |
+ epatch "${FILESDIR}"/${PN}-0.8.3-oracle-build-fix.patch |
37 |
+ epatch "${FILESDIR}"/${PN}-0.8.3-firebird-fix.patch |
38 |
cd "${S}" |
39 |
eautoreconf |
40 |
} |
41 |
|
42 |
|
43 |
|
44 |
1.49 dev-db/libdbi-drivers/ChangeLog |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?rev=1.49&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?rev=1.49&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/ChangeLog?r1=1.48&r2=1.49 |
49 |
|
50 |
Index: ChangeLog |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v |
53 |
retrieving revision 1.48 |
54 |
retrieving revision 1.49 |
55 |
diff -p -w -b -B -u -u -r1.48 -r1.49 |
56 |
--- ChangeLog 24 Feb 2009 17:44:47 -0000 1.48 |
57 |
+++ ChangeLog 26 Oct 2009 07:19:33 -0000 1.49 |
58 |
@@ -1,6 +1,15 @@ |
59 |
# ChangeLog for dev-db/libdbi-drivers |
60 |
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.48 2009/02/24 17:44:47 armin76 Exp $ |
62 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
63 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.49 2009/10/26 07:19:33 robbat2 Exp $ |
64 |
+ |
65 |
+*libdbi-drivers-0.8.3-r1 (26 Oct 2009) |
66 |
+ |
67 |
+ 26 Oct 2009; Robin H. Johnson <robbat2@g.o> |
68 |
+ libdbi-drivers-0.8.3.ebuild, +libdbi-drivers-0.8.3-r1.ebuild, |
69 |
+ +files/libdbi-drivers-0.8.3-firebird-fix.patch, |
70 |
+ +files/libdbi-drivers-0.8.3-oracle-build-fix.patch: |
71 |
+ Bug #289519: Fixup for Firebird compile. Bug #256411: Fix for Oracle |
72 |
+ compile. Bug #254851: USE-default for tinderbox build. |
73 |
|
74 |
24 Feb 2009; Raúl Porcel <armin76@g.o> |
75 |
libdbi-drivers-0.8.3.ebuild: |
76 |
|
77 |
|
78 |
|
79 |
1.1 dev-db/libdbi-drivers/libdbi-drivers-0.8.3-r1.ebuild |
80 |
|
81 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3-r1.ebuild?rev=1.1&view=markup |
82 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3-r1.ebuild?rev=1.1&content-type=text/plain |
83 |
|
84 |
Index: libdbi-drivers-0.8.3-r1.ebuild |
85 |
=================================================================== |
86 |
# Copyright 1999-2009 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3-r1.ebuild,v 1.1 2009/10/26 07:19:33 robbat2 Exp $ |
89 |
|
90 |
EAPI=1 |
91 |
inherit eutils autotools |
92 |
|
93 |
MY_PV="${PV}-1" |
94 |
MY_P="${PN}-${MY_PV}" |
95 |
|
96 |
DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi." |
97 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
98 |
HOMEPAGE="http://libdbi-drivers.sourceforge.net/" |
99 |
LICENSE="LGPL-2.1" |
100 |
DEPEND=">=dev-db/libdbi-0.8.3 |
101 |
mysql? ( virtual/mysql ) |
102 |
postgres? ( virtual/postgresql-server ) |
103 |
sqlite? ( <dev-db/sqlite-3 ) |
104 |
sqlite3? ( >=dev-db/sqlite-3 ) |
105 |
!bindist? ( firebird? ( dev-db/firebird ) ) |
106 |
doc? ( app-text/openjade )" |
107 |
|
108 |
IUSE="mysql postgres sqlite oci8 firebird +sqlite3 bindist doc" |
109 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
110 |
SLOT=0 |
111 |
S="${WORKDIR}/${MY_P}" |
112 |
|
113 |
src_unpack() { |
114 |
unpack ${A} |
115 |
epatch "${FILESDIR}"/${PN}-0.8.3-doc-build-fix.patch |
116 |
epatch "${FILESDIR}"/${PN}-0.8.3-oracle-build-fix.patch |
117 |
epatch "${FILESDIR}"/${PN}-0.8.3-firebird-fix.patch |
118 |
cd "${S}" |
119 |
eautoreconf |
120 |
} |
121 |
|
122 |
pkg_setup() { |
123 |
local drivers="" |
124 |
use mysql && drivers="${drivers} mysql" |
125 |
use postgres && drivers="${drivers} pgsql" |
126 |
use sqlite && drivers="${drivers} sqlite" |
127 |
use sqlite3 && drivers="${drivers} sqlite3" |
128 |
if use firebird; then |
129 |
if use bindist; then |
130 |
eerror "The Interbase Public License is incompatible with LGPL, see bug #200284." |
131 |
eerror "Disabling firebird in the build" |
132 |
else |
133 |
drivers="${drivers} firebird" |
134 |
fi |
135 |
fi |
136 |
if use oci8; then |
137 |
if [ -z "${ORACLE_HOME}" ]; then |
138 |
die "\$ORACLE_HOME is not set!" |
139 |
fi |
140 |
drivers="${drivers} oracle" |
141 |
fi |
142 |
# safety check |
143 |
if [ -z "${drivers// /}" ]; then |
144 |
die "No supported databases in your USE flags! (mysql, postgres, sqlite, sqlite3, oracle, firebird)" |
145 |
fi |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
local myconf="" |
150 |
# WARNING: the configure script does NOT work correctly |
151 |
# --without-$driver does NOT work |
152 |
# so do NOT use `use_with...` |
153 |
use mysql && myconf="${myconf} --with-mysql" |
154 |
use postgres && myconf="${myconf} --with-pgsql" |
155 |
use sqlite && myconf="${myconf} --with-sqlite" |
156 |
use sqlite3 && myconf="${myconf} --with-sqlite3" |
157 |
use !bindist && use firebird && myconf="${myconf} --with-firebird" |
158 |
if use oci8; then |
159 |
if [ -z "${ORACLE_HOME}" ]; then |
160 |
die "\$ORACLE_HOME is not set!" |
161 |
fi |
162 |
myconf="${myconf} --with-oracle-dir=${ORACLE_HOME} --with-oracle" |
163 |
fi |
164 |
|
165 |
econf $(use_enable doc docs) ${myconf} || die "econf failed" |
166 |
emake || die "emake failed" |
167 |
} |
168 |
|
169 |
src_install () { |
170 |
emake install DESTDIR="${D}" || die "make install failed" |
171 |
dodoc AUTHORS ChangeLog NEWS README README.osx TODO |
172 |
} |
173 |
src_test() { |
174 |
if [ -z "${WANT_INTERACTIVE_TESTS}" ]; then |
175 |
ewarn "Tests disabled due to interactivity." |
176 |
ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them." |
177 |
return 0 |
178 |
fi |
179 |
einfo "Running interactive tests" |
180 |
emake check || die "Tests failed" |
181 |
} |