From 5302c2e7f98224f6bc8298813075a24d4d37646e Mon Sep 17 00:00:00 2001 From: Leonardo Boshell Date: Fri, 17 Nov 2006 19:30:35 +0000 Subject: [PATCH] Added eautoreconf() to fix library names on amd64. Package-Manager: portage-2.1.2_rc1-r7 --- app-office/mdbtools/ChangeLog | 9 ++- app-office/mdbtools/files/digest-mdbtools-0.5 | 2 + .../files/digest-mdbtools-0.6_pre1-r1 | 3 + .../mdbtools/mdbtools-0.6_pre1-r1.ebuild | 60 +++++++++++++++++++ 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 app-office/mdbtools/files/digest-mdbtools-0.6_pre1-r1 create mode 100644 app-office/mdbtools/mdbtools-0.6_pre1-r1.ebuild diff --git a/app-office/mdbtools/ChangeLog b/app-office/mdbtools/ChangeLog index ab8b3afc5029..ba4dfe7102f8 100644 --- a/app-office/mdbtools/ChangeLog +++ b/app-office/mdbtools/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-office/mdbtools # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/mdbtools/ChangeLog,v 1.20 2006/05/28 22:21:14 halcy0n Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/mdbtools/ChangeLog,v 1.21 2006/11/17 19:30:35 leonardop Exp $ + +*mdbtools-0.6_pre1-r1 (17 Nov 2006) + + 17 Nov 2006; Leonardo Boshell + -mdbtools-0.6_pre1.ebuild, +mdbtools-0.6_pre1-r1.ebuild: + Run eautoreconf() since the tarball was created with a buggy libtool, + creating libraries with incorrect names in some platforms (e.g. amd64). 28 May 2006; Mark Loeser +files/mdbtools-0.6_pre1-gcc41.patch, mdbtools-0.6_pre1.ebuild: diff --git a/app-office/mdbtools/files/digest-mdbtools-0.5 b/app-office/mdbtools/files/digest-mdbtools-0.5 index ee286e0f5603..caecaa8f78a3 100644 --- a/app-office/mdbtools/files/digest-mdbtools-0.5 +++ b/app-office/mdbtools/files/digest-mdbtools-0.5 @@ -1 +1,3 @@ MD5 4a18bf96e67161101cade64526756d22 mdbtools-0.5.tar.gz 396485 +RMD160 d1d846deda695459396c7dec6b9e57ddf26d2298 mdbtools-0.5.tar.gz 396485 +SHA256 7a5db39fecff5ce4fb91e019acf5795b40221aff09bbd6d84f8dec60f017b05d mdbtools-0.5.tar.gz 396485 diff --git a/app-office/mdbtools/files/digest-mdbtools-0.6_pre1-r1 b/app-office/mdbtools/files/digest-mdbtools-0.6_pre1-r1 new file mode 100644 index 000000000000..ef46c82b4cd6 --- /dev/null +++ b/app-office/mdbtools/files/digest-mdbtools-0.6_pre1-r1 @@ -0,0 +1,3 @@ +MD5 246e8f38b2a1af1bcff60ee0da59300b mdbtools-0.6pre1.tar.gz 611756 +RMD160 e6a89d6984ba84aa9895ab0b6e6b68ac86881be3 mdbtools-0.6pre1.tar.gz 611756 +SHA256 7169dc50da857aae2b3f62cd5c6ace37fed56f3e39d07c9afa5aba882b1de3d3 mdbtools-0.6pre1.tar.gz 611756 diff --git a/app-office/mdbtools/mdbtools-0.6_pre1-r1.ebuild b/app-office/mdbtools/mdbtools-0.6_pre1-r1.ebuild new file mode 100644 index 000000000000..fa79b639025f --- /dev/null +++ b/app-office/mdbtools/mdbtools-0.6_pre1-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/mdbtools/mdbtools-0.6_pre1-r1.ebuild,v 1.1 2006/11/17 19:30:35 leonardop Exp $ + +WANT_AUTOMAKE="1.7" + +inherit eutils autotools + +MY_P=${P/_/} +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="A set of libraries and utilities for reading Microsoft Access database (MDB) files" +HOMEPAGE="http://mdbtools.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +IUSE="gnome odbc" +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=">=dev-libs/glib-2 + sys-libs/ncurses + sys-libs/readline + >=sys-devel/flex-2.5.0 + >=sys-devel/bison-1.35 + gnome? ( + >=gnome-base/libglade-2 + >=gnome-base/libgnomeui-2 ) + odbc? ( >=dev-db/unixODBC-2.0 )" + +src_unpack() { + unpack "${A}" + cd "${S}" + + epatch "${FILESDIR}"/${P}-gcc34.patch + epatch "${FILESDIR}"/${P}-gcc41.patch + + # This is necessary since the upstream tarball was created with a buggy + # libtool, and the .so suffix in library names is lost in some platforms + # (e.g. amd64). + eautoreconf +} + +src_compile() { + local myconf + use odbc && myconf="${myconf} --with-unixodbc=/usr" + + econf --enable-sql \ + ${myconf} || die "configure failed" + + emake || die "Compilation failed" +} + +src_install() { + make DESTDIR="${D}" install || die "Installation failed" + dodoc COPYING* NEWS README* TODO AUTHORS HACKING ChangeLog + + # add a compat symlink (gmdb2 is not compiled if gnome USE flag is disabled) + use gnome && dosym gmdb2 /usr/bin/gmdb +} -- 2.26.2