summaryrefslogtreecommitdiffstats
path: root/gnome-base/gnome-libs/gnome-libs-1.4.2-r4.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-base/gnome-libs/gnome-libs-1.4.2-r4.ebuild')
-rw-r--r--gnome-base/gnome-libs/gnome-libs-1.4.2-r4.ebuild99
1 files changed, 99 insertions, 0 deletions
diff --git a/gnome-base/gnome-libs/gnome-libs-1.4.2-r4.ebuild b/gnome-base/gnome-libs/gnome-libs-1.4.2-r4.ebuild
new file mode 100644
index 0000000..e35f3b4
--- /dev/null
+++ b/gnome-base/gnome-libs/gnome-libs-1.4.2-r4.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-libs/gnome-libs-1.4.2.ebuild,v 1.33 2006/07/05 05:36:12 vapier Exp $
+
+EAPI=5
+
+inherit eutils libtool multilib autotools flag-o-matic
+
+DESCRIPTION="GNOME Core Libraries"
+HOMEPAGE="http://www.gnome.org/"
+SRC_URI="ftp://ftp.gnome.org/pub/GNOME/sources/${PN}/1.4/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86"
+IUSE="doc esd nls kde"
+
+RDEPEND=">=media-libs/imlib-1.9.10
+ esd? ( >=media-sound/esound-0.2.23 )
+ =x11-libs/gtk+-1.2*
+ =sys-devel/automake-1.4*
+ =sys-devel/autoconf-2.13*
+ sys-libs/db:3
+ doc? ( app-text/docbook-sgml
+ dev-util/gtk-doc )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.10.40
+ >=dev-util/intltool-0.11 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-m4.patch
+ # Correct problems with documentation. See bug #44439.
+ epatch "${FILESDIR}"/${P}-gtkdoc_fixes.patch
+ # Fix compilation with GCC4 ; bug #94321
+ epatch "${FILESDIR}"/${P}-gcc4.patch
+ # Fix compilation with GCC4 on ppc64 ; bug #117750
+ epatch "${FILESDIR}"/${P}-ppc64.patch
+
+ epatch "${FILESDIR}"/gnome-libs-1.4.2-ds-gmodule.diff
+ epatch "${FILESDIR}"/gnome-libs-1.4.2-ds-db.diff
+ epatch "${FILESDIR}"/gnome-libs-ds-gnorba.patch
+
+ aclocal-1.4
+ automake-1.4
+ autoconf-2.13 || die
+}
+
+src_compile() {
+ append-flags -I/usr/include/db1
+
+ local myconf
+
+ use nls || myconf="${myconf} --disable-nls"
+ use kde && myconf="${myconf} --with-kde-datadir=/usr/share"
+ use doc || myconf="${myconf} --disable-gtk-doc"
+ use esd || export ESD_CONFIG=no
+
+ # libtoolize
+ elibtoolize
+
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --libdir=/usr/$(get_libdir) \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --enable-prefer-db1 \
+ ${myconf} || die
+
+ # gnome-libs does not like parallel building, bug #117644
+ emake -j1 || die
+
+ # do the docs (maby add a use variable or put in seperate
+ # ebuild since it is mostly developer docs?)
+ if use doc ; then
+ cd "${S}"/devel-docs
+ emake || die
+ cd "${S}"
+ fi
+}
+
+src_install() {
+ make prefix="${D}"/usr \
+ libdir="${D}"/usr/$(get_libdir) \
+ mandir="${D}"/usr/share/man \
+ infodir="${D}"/usr/share/info \
+ sysconfdir="${D}"/etc \
+ localstatedir="${D}"/var/lib \
+ docdir="${D}"/usr/share/doc/${PF} \
+ HTML_DIR="${D}"/usr/share/gnome/html \
+ install || die
+
+ rm "${D}"/usr/share/gtkrc*
+
+ dodoc AUTHORS ChangeLog README NEWS HACKING
+}