summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2007-02-05 19:27:27 +0000
committerSamuli Suominen <drac@gentoo.org>2007-02-05 19:27:27 +0000
commitc4ad462f10d443eab0dd5860908061df7ef6ef82 (patch)
treead36cbf1bb6216d59b7cc300a61b87ea01355dc3 /media-libs/imlib/imlib-1.9.15-r1.ebuild
parentStable on ppc wrt bug #162039. (diff)
downloadgentoo-2-c4ad462f10d443eab0dd5860908061df7ef6ef82.tar.gz
gentoo-2-c4ad462f10d443eab0dd5860908061df7ef6ef82.tar.bz2
gentoo-2-c4ad462f10d443eab0dd5860908061df7ef6ef82.zip
Fix fix for 3425, sed call was outdated. Remove USE static. Fix autotools handling. Fix documentation installation. Clean up. Will be unmasked soon, running some tests.
Diffstat (limited to 'media-libs/imlib/imlib-1.9.15-r1.ebuild')
-rw-r--r--media-libs/imlib/imlib-1.9.15-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/media-libs/imlib/imlib-1.9.15-r1.ebuild b/media-libs/imlib/imlib-1.9.15-r1.ebuild
new file mode 100644
index 000000000000..97a579483d3e
--- /dev/null
+++ b/media-libs/imlib/imlib-1.9.15-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/imlib/imlib-1.9.15-r1.ebuild,v 1.1 2007/02/05 19:27:27 drac Exp $
+
+inherit autotools eutils gnome.org
+
+DESCRIPTION="Image loading and rendering library"
+HOMEPAGE="http://www.enlightenment.org/Libraries/Imlib.html"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="doc gtk"
+
+RDEPEND="gtk? ( =x11-libs/gtk+-1.2* )
+ >=media-libs/tiff-3.5.5
+ >=media-libs/giflib-4.1.0
+ >=media-libs/libpng-1.2.1
+ >=media-libs/jpeg-6b"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Fix aclocal underquoted definition warnings.
+ # Conditionalize gdk functions for bug 40453.
+ # Fix imlib-config for bug 3425.
+ epatch "${FILESDIR}"/${P}.patch
+
+ # Fix security bug 72681.
+ epatch "${FILESDIR}"/${PN}-security.patch
+
+ eautoreconf
+}
+
+src_compile() {
+ econf --sysconfdir=/etc/imlib \
+ $(use_enable gtk gdk) \
+ $(use_enable gtk gtktest)
+
+ emake || die "emake failed."
+}
+
+src_install() {
+ emake "DESTDIR=${D}" install || die "emake install failed."
+
+ dodoc AUTHORS ChangeLog README
+ use doc && dohtml doc/*
+
+ # Hack to avoid installing pkgconfig file.
+ use gtk || rm "${D}"/usr/lib*/pkgconfig/imlibgdk.pc
+}