diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-05-17 09:17:19 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-05-17 09:17:19 +0000 |
commit | 86ff443518a290e78e56c568da1cc85fbe98702c (patch) | |
tree | b3de62cea0c1a399c8c02defac4a6d0b23f2cccc /dev-db/myodbc | |
parent | Bump with non-intrusive patch for mysql-4.1 support. (diff) | |
download | historical-86ff443518a290e78e56c568da1cc85fbe98702c.tar.gz historical-86ff443518a290e78e56c568da1cc85fbe98702c.tar.bz2 historical-86ff443518a290e78e56c568da1cc85fbe98702c.zip |
Add metadata. New version for mysql-4.1 support.
Diffstat (limited to 'dev-db/myodbc')
-rw-r--r-- | dev-db/myodbc/ChangeLog | 8 | ||||
-rw-r--r-- | dev-db/myodbc/Manifest | 5 | ||||
-rw-r--r-- | dev-db/myodbc/files/digest-myodbc-3.51.11 | 1 | ||||
-rw-r--r-- | dev-db/myodbc/metadata.xml | 5 | ||||
-rw-r--r-- | dev-db/myodbc/myodbc-3.51.11.ebuild | 88 |
5 files changed, 105 insertions, 2 deletions
diff --git a/dev-db/myodbc/ChangeLog b/dev-db/myodbc/ChangeLog index 1fa83aecab97..dd6f16ff3686 100644 --- a/dev-db/myodbc/ChangeLog +++ b/dev-db/myodbc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-db/myodbc # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/ChangeLog,v 1.5 2005/01/01 17:36:34 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/ChangeLog,v 1.6 2005/05/17 09:17:19 robbat2 Exp $ + +*myodbc-3.51.11 (17 May 2005) + + 17 May 2005; Robin H. Johnson <robbat2@gentoo.org> +metadata.xml, + +myodbc-3.51.11.ebuild: + Add metadata. New version for mysql-4.1 support. 29 Jun 2004; Aron Griffis <agriffis@gentoo.org> myodbc-3.51.06.ebuild: sync IUSE (+debug, +doc, +static) diff --git a/dev-db/myodbc/Manifest b/dev-db/myodbc/Manifest index ecc77a6993d5..fb75653f693a 100644 --- a/dev-db/myodbc/Manifest +++ b/dev-db/myodbc/Manifest @@ -1,5 +1,8 @@ +MD5 3d106c5ef9bc5f8f7cedcfb0637c91e1 myodbc-3.51.11.ebuild 2392 MD5 1dee3decca7e30bfc578ba35120ebc86 myodbc-3.51.06.ebuild 2370 -MD5 28de4baa7d5a0f71cab721b2deddb658 ChangeLog 779 +MD5 cbe2c6ff49a9da0de8d517e0544152c3 ChangeLog 953 +MD5 a5dda17df0286cd82cae42d117784903 metadata.xml 163 MD5 af6071c0c469470111c00d957ccad675 files/digest-myodbc-3.51.06 66 +MD5 b305275bdb6622eccc8d3df6e5b59657 files/digest-myodbc-3.51.11 66 MD5 ef517bf6e6fb65582a5198a63db3b786 files/odbcinst.ini.m4 233 MD5 bdcd6e3e92526bd31f3dad197f3ff9e4 files/odbc.ini.m4 517 diff --git a/dev-db/myodbc/files/digest-myodbc-3.51.11 b/dev-db/myodbc/files/digest-myodbc-3.51.11 new file mode 100644 index 000000000000..a13368be26fa --- /dev/null +++ b/dev-db/myodbc/files/digest-myodbc-3.51.11 @@ -0,0 +1 @@ +MD5 fb295a2a07dab09caf608f2227b531ef MyODBC-3.51.11.tar.gz 971989 diff --git a/dev-db/myodbc/metadata.xml b/dev-db/myodbc/metadata.xml new file mode 100644 index 000000000000..dbfe84ca36cf --- /dev/null +++ b/dev-db/myodbc/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>mysql-bugs</herd> +</pkgmetadata> diff --git a/dev-db/myodbc/myodbc-3.51.11.ebuild b/dev-db/myodbc/myodbc-3.51.11.ebuild new file mode 100644 index 000000000000..e91d8d3bb863 --- /dev/null +++ b/dev-db/myodbc/myodbc-3.51.11.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/myodbc/myodbc-3.51.11.ebuild,v 1.1 2005/05/17 09:17:19 robbat2 Exp $ + +MY_PN="MyODBC" +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="~x86" +IUSE="debug doc static" +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`" + + 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 \ + ${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" +} |