summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Riosa <vivo@gentoo.org>2006-06-24 15:53:45 +0000
committerFrancesco Riosa <vivo@gentoo.org>2006-06-24 15:53:45 +0000
commit2f9146f52bf6e7f4549cf8a582d13691187211f1 (patch)
tree7c891ed7cbcf5ef22da20a327de947f4e80ecc29 /dev-db/myodbc
parentRepoman fixes. (diff)
downloadgentoo-2-2f9146f52bf6e7f4549cf8a582d13691187211f1.tar.gz
gentoo-2-2f9146f52bf6e7f4549cf8a582d13691187211f1.tar.bz2
gentoo-2-2f9146f52bf6e7f4549cf8a582d13691187211f1.zip
version bump
(Portage version: 2.1.1_pre1-r1)
Diffstat (limited to 'dev-db/myodbc')
-rw-r--r--dev-db/myodbc/ChangeLog7
-rw-r--r--dev-db/myodbc/files/digest-myodbc-3.51.062
-rw-r--r--dev-db/myodbc/files/digest-myodbc-3.51.112
-rw-r--r--dev-db/myodbc/files/digest-myodbc-3.51.123
-rw-r--r--dev-db/myodbc/myodbc-3.51.12.ebuild96
5 files changed, 109 insertions, 1 deletions
diff --git a/dev-db/myodbc/ChangeLog b/dev-db/myodbc/ChangeLog
index b67a2cd41714..876d4846936f 100644
--- a/dev-db/myodbc/ChangeLog
+++ b/dev-db/myodbc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/myodbc
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/ChangeLog,v 1.10 2006/01/21 20:32:02 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/ChangeLog,v 1.11 2006/06/24 15:53:44 vivo Exp $
+
+*myodbc-3.51.12 (24 Jun 2006)
+
+ 24 Jun 2006; Francesco Riosa <vivo@gentoo.org> +myodbc-3.51.12.ebuild:
+ version bump
21 Jan 2006; <nixnut@gentoo.org> myodbc-3.51.11.ebuild:
Added ~ppc keyword.
diff --git a/dev-db/myodbc/files/digest-myodbc-3.51.06 b/dev-db/myodbc/files/digest-myodbc-3.51.06
index fecb2686315a..60eee896cbde 100644
--- a/dev-db/myodbc/files/digest-myodbc-3.51.06
+++ b/dev-db/myodbc/files/digest-myodbc-3.51.06
@@ -1 +1,3 @@
MD5 5a59b4f01592fc9ec96e985bc7d6aada MyODBC-3.51.06.tar.gz 322059
+RMD160 4ddfdec5dfd9dcd9aa524839eab3b96a543b6134 MyODBC-3.51.06.tar.gz 322059
+SHA256 e0beacd4fb6beae938d60d6c39dcca30e7bdb58d5e82d499a4fcbff805c129e9 MyODBC-3.51.06.tar.gz 322059
diff --git a/dev-db/myodbc/files/digest-myodbc-3.51.11 b/dev-db/myodbc/files/digest-myodbc-3.51.11
index a13368be26fa..712acf03cab0 100644
--- a/dev-db/myodbc/files/digest-myodbc-3.51.11
+++ b/dev-db/myodbc/files/digest-myodbc-3.51.11
@@ -1 +1,3 @@
MD5 fb295a2a07dab09caf608f2227b531ef MyODBC-3.51.11.tar.gz 971989
+RMD160 629dd12acdd85e15a04730aa00fec5b9134c67bf MyODBC-3.51.11.tar.gz 971989
+SHA256 a460e66f782080cb8c596192b62b21975782ae13861353260c99cc67abd8a441 MyODBC-3.51.11.tar.gz 971989
diff --git a/dev-db/myodbc/files/digest-myodbc-3.51.12 b/dev-db/myodbc/files/digest-myodbc-3.51.12
new file mode 100644
index 000000000000..ef2e4b2278f8
--- /dev/null
+++ b/dev-db/myodbc/files/digest-myodbc-3.51.12
@@ -0,0 +1,3 @@
+MD5 a484f590464fb823a8f821b2f1fd7fef mysql-connector-odbc-3.51.12.tar.gz 979942
+RMD160 295bdca51ad5fd7bf0a56ccb161fe5a0463e71ef mysql-connector-odbc-3.51.12.tar.gz 979942
+SHA256 7a9c19bd4ee140e7afe77fdcaecee53b4ce4bbbeb35a158c9548aa7ab9482c74 mysql-connector-odbc-3.51.12.tar.gz 979942
diff --git a/dev-db/myodbc/myodbc-3.51.12.ebuild b/dev-db/myodbc/myodbc-3.51.12.ebuild
new file mode 100644
index 000000000000..398a1398cb20
--- /dev/null
+++ b/dev-db/myodbc/myodbc-3.51.12.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/myodbc-3.51.12.ebuild,v 1.1 2006/06/24 15:53:45 vivo Exp $
+
+MY_PN="mysql-connector-odbc"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="ODBC driver for MySQL"
+HOMEPAGE="http://www.mysql.com/products/myodbc/"
+SRC_URI="mirror://mysql/Downloads/MyODBC3/${MY_P}.tar.gz"
+RESTRICT="primaryuri"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="debug doc static"
+RESTRICT="confcache"
+RDEPEND=">=dev-db/mysql-4 dev-db/unixODBC sys-devel/m4"
+# perl is required for building docs
+DEPEND="${RDEPEND} doc? ( dev-lang/perl )"
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ local myconf="--enable-static"
+ use static \
+ && myconf="${myconf} --disable-shared" \
+ || myconf="${myconf} --enable-shared"
+
+ myconf="${myconf} $(use_with doc docs) $(use_with debug)"
+ myconf="${myconf} --disable-gui"
+ #TODO: the configure test against qt 4 enter in an endless loop
+ #myconf="${myconf} $(use_enable qt gui)"
+
+ econf \
+ --libexecdir=/usr/sbin \
+ --sysconfdir=/etc/myodbc \
+ --localstatedir=/var/lib/myodbc \
+ --with-mysql-libs=/usr/lib/mysql \
+ --with-mysql-includes=/usr/include/mysql \
+ --with-odbc-ini=/etc/unixODBC/odbc.ini \
+ --with-unixODBC=/usr \
+ --enable-myodbc3i \
+ --enable-myodbc3m \
+ --disable-test \
+ --without-samples \
+ ${myconf} || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ into /usr
+ einstall \
+ libexecdir=${D}/usr/sbin \
+ sysconfdir=${D}/etc/myodbc \
+ localstatedir=${D}/var/lib/myodbc
+ dodoc INSTALL RELEASE-NOTES README
+}
+
+pkg_config() {
+ [ "${ROOT}" != "/" ] && \
+ die "Sorry, non-standard \$ROOT setting is not supported :-("
+
+ for i in odbc.ini odbcinst.ini; do
+ einfo "Building $i"
+ /usr/bin/m4 -D__PN__=${PN} -D__PF__=${PF} ${FILESDIR}/${i}.m4 >${T}/${i}
+ done;
+
+ local msg='MySQL ODBC driver'
+ local drivers=$(/usr/bin/odbcinst -q -d)
+ if echo $drivers | grep -vq "^\[${PN}\]$" ; then
+ ebegin "Installing ${msg}"
+ /usr/bin/odbcinst -i -d -f ${T}/odbcinst.ini
+ rc=$?
+ eend $rc
+ [ $rc -ne 0 ] && die
+ else
+ einfo "Skipping already installed ${msg}"
+ fi
+
+ local sources=$(/usr/bin/odbcinst -q -s)
+ msg='sample MySQL ODBC DSN'
+ if echo $sources | grep -vq "^\[${PN}-test\]$"; then
+ ebegin "Installing ${msg}"
+ /usr/bin/odbcinst -i -s -l -f ${T}/odbc.ini
+ rc=$?
+ eend $rc
+ [ $rc -ne 0 ] && die
+ else
+ einfo "Skipping already installed ${msg}"
+ fi
+}
+
+pkg_postinst() {
+ einfo "If this is a new install, please run the following command"
+ einfo "to configure the MySQL ODBC drivers and sources:"
+ einfo "ebuild ${PORTDIR}/${CATEGORY}/${PN}/${PF}.ebuild config"
+}