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/myodbc: ChangeLog myodbc-3.51.26_p1127.ebuild
Date: Sat, 01 Nov 2008 09:15:29
Message-Id: E1KwCZp-0004uY-Ad@stork.gentoo.org
1 robbat2 08/11/01 09:15:25
2
3 Modified: ChangeLog
4 Added: myodbc-3.51.26_p1127.ebuild
5 Log:
6 Version bump per bug #240088, also handles new upstream source location and versioning.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.26-hardened-r4 x86_64)
8
9 Revision Changes Path
10 1.16 dev-db/myodbc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/myodbc/ChangeLog?rev=1.16&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/myodbc/ChangeLog?rev=1.16&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/myodbc/ChangeLog?r1=1.15&r2=1.16
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/myodbc/ChangeLog,v
19 retrieving revision 1.15
20 retrieving revision 1.16
21 diff -p -w -b -B -u -u -r1.15 -r1.16
22 --- ChangeLog 2 Jul 2007 02:28:00 -0000 1.15
23 +++ ChangeLog 1 Nov 2008 09:15:25 -0000 1.16
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-db/myodbc
26 -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/ChangeLog,v 1.15 2007/07/02 02:28:00 peper Exp $
28 +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/ChangeLog,v 1.16 2008/11/01 09:15:25 robbat2 Exp $
30 +
31 +*myodbc-3.51.26_p1127 (01 Nov 2008)
32 +
33 + 01 Nov 2008; Robin H. Johnson <robbat2@g.o>
34 + +myodbc-3.51.26_p1127.ebuild:
35 + Version bump per bug #240088, also handles new upstream source location
36 + and versioning.
37
38 02 Jul 2007; Piotr JaroszyƄski <peper@g.o> myodbc-3.51.12.ebuild:
39 (QA) RESTRICT clean up.
40
41
42
43 1.1 dev-db/myodbc/myodbc-3.51.26_p1127.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/myodbc/myodbc-3.51.26_p1127.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/myodbc/myodbc-3.51.26_p1127.ebuild?rev=1.1&content-type=text/plain
47
48 Index: myodbc-3.51.26_p1127.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/myodbc-3.51.26_p1127.ebuild,v 1.1 2008/11/01 09:15:25 robbat2 Exp $
53
54 MY_PN="mysql-connector-odbc"
55 MY_P="${MY_PN}-${PV/_p/r}"
56 DESCRIPTION="ODBC driver for MySQL"
57 HOMEPAGE="http://www.mysql.com/products/myodbc/"
58 SRC_URI="mirror://mysql/Downloads/Connector-ODBC/3.51/${MY_P}.tar.gz"
59 RESTRICT="primaryuri"
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~x86"
63 IUSE="debug doc static"
64 RDEPEND=">=virtual/mysql-4.0 dev-db/unixODBC sys-devel/m4"
65 # perl is required for building docs
66 DEPEND="${RDEPEND} doc? ( dev-lang/perl )"
67 S=${WORKDIR}/${MY_P}
68
69 src_compile() {
70 local myconf="--enable-static"
71 use static \
72 && myconf="${myconf} --disable-shared" \
73 || myconf="${myconf} --enable-shared"
74
75 myconf="${myconf} $(use_with doc docs) $(use_with debug)"
76 myconf="${myconf} --disable-gui"
77 #TODO: the configure test against qt 4 enter in an endless loop
78 #myconf="${myconf} $(use_enable qt gui)"
79
80 econf \
81 --libexecdir=/usr/sbin \
82 --sysconfdir=/etc/myodbc \
83 --localstatedir=/var/lib/myodbc \
84 --with-mysql-libs=/usr/lib/mysql \
85 --with-mysql-includes=/usr/include/mysql \
86 --with-odbc-ini=/etc/unixODBC/odbc.ini \
87 --with-unixODBC=/usr \
88 --enable-myodbc3i \
89 --enable-myodbc3m \
90 --disable-test \
91 --without-samples \
92 ${myconf} || die "econf failed"
93
94 emake || die "emake failed"
95 }
96
97 src_install() {
98 into /usr
99 einstall \
100 libexecdir=${D}/usr/sbin \
101 sysconfdir=${D}/etc/myodbc \
102 localstatedir=${D}/var/lib/myodbc
103 dodoc INSTALL RELEASE-NOTES README
104 }
105
106 pkg_config() {
107 [ "${ROOT}" != "/" ] && \
108 die "Sorry, non-standard \$ROOT setting is not supported :-("
109
110 for i in odbc.ini odbcinst.ini; do
111 einfo "Building $i"
112 /usr/bin/m4 -D__PN__=${PN} -D__PF__=${PF} ${FILESDIR}/${i}.m4 >${T}/${i}
113 done;
114
115 local msg='MySQL ODBC driver'
116 local drivers=$(/usr/bin/odbcinst -q -d)
117 if echo $drivers | grep -vq "^\[${PN}\]$" ; then
118 ebegin "Installing ${msg}"
119 /usr/bin/odbcinst -i -d -f ${T}/odbcinst.ini
120 rc=$?
121 eend $rc
122 [ $rc -ne 0 ] && die
123 else
124 einfo "Skipping already installed ${msg}"
125 fi
126
127 local sources=$(/usr/bin/odbcinst -q -s)
128 msg='sample MySQL ODBC DSN'
129 if echo $sources | grep -vq "^\[${PN}-test\]$"; then
130 ebegin "Installing ${msg}"
131 /usr/bin/odbcinst -i -s -l -f ${T}/odbc.ini
132 rc=$?
133 eend $rc
134 [ $rc -ne 0 ] && die
135 else
136 einfo "Skipping already installed ${msg}"
137 fi
138 }
139
140 pkg_postinst() {
141 elog "If this is a new install, please run the following command"
142 elog "to configure the MySQL ODBC drivers and sources:"
143 elog "emerge --config =${CATEGORY}/${PF}"
144 }