diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2007-06-15 17:59:22 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2007-06-15 17:59:22 +0000 |
commit | d222c615c48e0b6d5065ee3c8c617315c24211af (patch) | |
tree | 11eec07d63c2bc25e7a6bb89e7241fc765ccc6a1 /dev-libs/apr-util | |
parent | alpha stable wrt #16473 (diff) | |
download | gentoo-2-d222c615c48e0b6d5065ee3c8c617315c24211af.tar.gz gentoo-2-d222c615c48e0b6d5065ee3c8c617315c24211af.tar.bz2 gentoo-2-d222c615c48e0b6d5065ee3c8c617315c24211af.zip |
fix #127781 (mysql support)
(Portage version: 2.1.2.9)
Diffstat (limited to 'dev-libs/apr-util')
-rw-r--r-- | dev-libs/apr-util/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/apr-util/apr-util-1.2.8-r1.ebuild | 77 | ||||
-rw-r--r-- | dev-libs/apr-util/files/digest-apr-util-1.2.8-r1 | 9 |
3 files changed, 92 insertions, 1 deletions
diff --git a/dev-libs/apr-util/ChangeLog b/dev-libs/apr-util/ChangeLog index 47334a8a481a..44cf08816db7 100644 --- a/dev-libs/apr-util/ChangeLog +++ b/dev-libs/apr-util/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/apr-util # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/ChangeLog,v 1.82 2007/06/15 15:46:33 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/ChangeLog,v 1.83 2007/06/15 17:59:22 hollow Exp $ + +*apr-util-1.2.8-r1 (15 Jun 2007) + + 15 Jun 2007; Benedikt Böhm <hollow@gentoo.org> +apr-util-1.2.8-r1.ebuild: + fix #127781 (mysql support) 15 Jun 2007; Raúl Porcel <armin76@gentoo.org> apr-util-1.2.8.ebuild: alpha/ia64/x86 stable wrt #178264 diff --git a/dev-libs/apr-util/apr-util-1.2.8-r1.ebuild b/dev-libs/apr-util/apr-util-1.2.8-r1.ebuild new file mode 100644 index 000000000000..43ca832ba45d --- /dev/null +++ b/dev-libs/apr-util/apr-util-1.2.8-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-1.2.8-r1.ebuild,v 1.1 2007/06/15 17:59:22 hollow Exp $ + +inherit autotools eutils flag-o-matic libtool db-use + +DBD_MYSQL=84 + +DESCRIPTION="Apache Portable Runtime Library" +HOMEPAGE="http://apr.apache.org/" +SRC_URI="mirror://apache/apr/${P}.tar.gz + mirror://apache/apr/apr-${PV}.tar.gz + mirror://gentoo/apr_dbd_mysql-r${DBD_MYSQL}.c" + +LICENSE="Apache-2.0" +SLOT="1" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="berkdb gdbm ldap mysql postgres sqlite sqlite3" +RESTRICT="test" + +DEPEND="dev-libs/expat + ~dev-libs/apr-${PV} + berkdb? ( =sys-libs/db-4* ) + gdbm? ( sys-libs/gdbm ) + ldap? ( =net-nds/openldap-2* ) + postgres? ( dev-db/libpq ) + sqlite? ( =dev-db/sqlite-2* ) + sqlite3? ( =dev-db/sqlite-3* )" + +src_unpack() { + unpack ${A} + cd "${S}" + + cp "${DISTDIR}"/apr_dbd_mysql-r${DBD_MYSQL}.c \ + "${S}"/dbd/apr_dbd_mysql.c || die "could not copy mysql driver" + + ./buildconf --with-apr=../apr-${PV} || die "buildconf failed" + elibtoolize || die "elibtoolize failed" +} + +src_compile() { + local myconf="" + + use ldap && myconf="${myconf} --with-ldap" + + if use berkdb; then + dbver="$(db_findver sys-libs/db)" || die "Unable to find db version" + dbver="$(db_ver_to_slot "$dbver")" + dbver="${dbver/\./}" + myconf="${myconf} --with-dbm=db${dbver} + --with-berkeley-db=$(db_includedir):/usr/$(get_libdir)" + else + myconf="${myconf} --without-berkeley-db" + fi + + econf --datadir=/usr/share/apr-util-1 \ + --with-apr=/usr \ + --with-expat=/usr \ + $(use_with gdbm) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with sqlite sqlite2) \ + $(use_with sqlite3) \ + ${myconf} || die "econf failed!" + + emake || die "emake failed!" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + dodoc CHANGES NOTICE + + # This file is only used on AIX systems, which gentoo is not, + # and causes collisions between the SLOTs, so kill it + rm "${D}"/usr/$(get_libdir)/aprutil.exp +} diff --git a/dev-libs/apr-util/files/digest-apr-util-1.2.8-r1 b/dev-libs/apr-util/files/digest-apr-util-1.2.8-r1 new file mode 100644 index 000000000000..cf3d8328fa26 --- /dev/null +++ b/dev-libs/apr-util/files/digest-apr-util-1.2.8-r1 @@ -0,0 +1,9 @@ +MD5 814f19528d9cfc79aef188dd752e04d8 apr-1.2.8.tar.gz 1107189 +RMD160 299e1ddb1f7c9b0169a410e120c30abea38557c5 apr-1.2.8.tar.gz 1107189 +SHA256 96e31f0ea2e028f372d5fdbbd4f88f31d59e14eda85cd12153183759f8e221c7 apr-1.2.8.tar.gz 1107189 +MD5 a2e2e54d65e9eae961f7171335cf2550 apr-util-1.2.8.tar.gz 646379 +RMD160 00b10ef0aab26f3ea5d374e2400c1dba566a9020 apr-util-1.2.8.tar.gz 646379 +SHA256 6527cb0b3dd619acfca668412e84e52860dfd862054246ca903822d5ea824de6 apr-util-1.2.8.tar.gz 646379 +MD5 a9914273d9f27b3c1fbf9bb50e10627f apr_dbd_mysql-r84.c 49110 +RMD160 9d665f2e964b09f58b182829563a203f59e16640 apr_dbd_mysql-r84.c 49110 +SHA256 79893740a58c96fba6e04f800e950ec42d8128e034056ff8a5770e0d3acc4919 apr_dbd_mysql-r84.c 49110 |