summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-06-11 16:22:28 +0000
committerHans de Graaff <graaff@gentoo.org>2011-06-11 16:22:28 +0000
commit91d64f1b67ef822ff5bd70793bbadc2d53df1fdc (patch)
treefb7650b63bab630223851e562a34e0e02ad6112b /app-office
parentAdd ~alpha/~ia64/~sparc wrt #365331 (diff)
downloadgentoo-2-91d64f1b67ef822ff5bd70793bbadc2d53df1fdc.tar.gz
gentoo-2-91d64f1b67ef822ff5bd70793bbadc2d53df1fdc.tar.bz2
gentoo-2-91d64f1b67ef822ff5bd70793bbadc2d53df1fdc.zip
Use configure option to stop gnome-specific components being built automagically. Fixes bug 371005.
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'app-office')
-rw-r--r--app-office/mdbtools/ChangeLog10
-rw-r--r--app-office/mdbtools/mdbtools-0.6_pre2-r3.ebuild67
2 files changed, 75 insertions, 2 deletions
diff --git a/app-office/mdbtools/ChangeLog b/app-office/mdbtools/ChangeLog
index 5832c6b3080d..47c8633122f4 100644
--- a/app-office/mdbtools/ChangeLog
+++ b/app-office/mdbtools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-office/mdbtools
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/mdbtools/ChangeLog,v 1.55 2010/12/02 15:51:21 flameeyes Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/mdbtools/ChangeLog,v 1.56 2011/06/11 16:22:28 graaff Exp $
+
+*mdbtools-0.6_pre2-r3 (11 Jun 2011)
+
+ 11 Jun 2011; Hans de Graaff <graaff@gentoo.org> +mdbtools-0.6_pre2-r3.ebuild:
+ Use configure option to stop gnome-specific components being built
+ automagically. Fixes bug 371005.
02 Dec 2010; Diego E. Pettenò <flameeyes@gentoo.org>
-mdbtools-0.6_pre1-r1.ebuild:
diff --git a/app-office/mdbtools/mdbtools-0.6_pre2-r3.ebuild b/app-office/mdbtools/mdbtools-0.6_pre2-r3.ebuild
new file mode 100644
index 000000000000..786aa476718a
--- /dev/null
+++ b/app-office/mdbtools/mdbtools-0.6_pre2-r3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/mdbtools/mdbtools-0.6_pre2-r3.ebuild,v 1.1 2011/06/11 16:22:28 graaff Exp $
+
+EAPI="2"
+
+# Will fail with 1.10+ because of config.rpath
+WANT_AUTOMAKE="1.9"
+
+inherit eutils autotools
+
+MY_P=${P/_/}
+S="${WORKDIR}/${PN}-cvs-20050624"
+
+DESCRIPTION="A set of libraries and utilities for reading Microsoft Access database (MDB) files"
+HOMEPAGE="http://sourceforge.net/projects/mdbtools"
+SRC_URI="mirror://gentoo/${PN}-cvs-20050624.tar.gz"
+
+IUSE="gnome odbc static-libs"
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+
+RDEPEND=">=dev-libs/glib-2
+ sys-libs/ncurses
+ sys-libs/readline
+ gnome? (
+ >=gnome-base/libglade-2
+ >=gnome-base/libgnomeui-2 )
+ odbc? ( >=dev-db/unixODBC-2.0 )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ >=sys-devel/flex-2.5.0
+ >=sys-devel/bison-1.35"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc34.patch
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+ epatch "${FILESDIR}"/${P}-haveiconv-fix.patch
+ epatch "${FILESDIR}"/${P}-parallel-make.patch
+ epatch "${FILESDIR}"/${P}-odbc_definitions.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). Starting with libtool 2.2.4 it is
+ # also necessary to remove the acinclude.m4 file since it contains
+ # an old libtool.m4 that is obsolete, #227257.
+ rm "${S}"/acinclude.m4
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use odbc && myconf="${myconf} --with-unixodbc=/usr"
+
+ econf ${myconf} \
+ $(use_enable gnome gmdb2) \
+ $(use_enable static-libs static) || die "configure failed"
+}
+
+src_install() {
+ emake 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
+}