summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-03 02:42:24 +0000
committerMike Frysinger <vapier@gentoo.org>2012-06-03 02:42:24 +0000
commit55c87819218ba9e481b9adbfcfb5a96e283b6a54 (patch)
tree328bb9c1adf6dc6d1806a240f67e72f241c34de0 /media-libs/iulib/iulib-0.4.ebuild
parentVersion bump. (diff)
downloadgentoo-2-55c87819218ba9e481b9adbfcfb5a96e283b6a54.tar.gz
gentoo-2-55c87819218ba9e481b9adbfcfb5a96e283b6a54.tar.bz2
gentoo-2-55c87819218ba9e481b9adbfcfb5a96e283b6a54.zip
Update to EAPI=4, and fix multilib paths.
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/iulib/iulib-0.4.ebuild')
-rw-r--r--media-libs/iulib/iulib-0.4.ebuild26
1 files changed, 16 insertions, 10 deletions
diff --git a/media-libs/iulib/iulib-0.4.ebuild b/media-libs/iulib/iulib-0.4.ebuild
index e0c30d3a3bf5..587a3daeb5e4 100644
--- a/media-libs/iulib/iulib-0.4.ebuild
+++ b/media-libs/iulib/iulib-0.4.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/iulib/iulib-0.4.ebuild,v 1.6 2010/11/08 15:13:00 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/iulib/iulib-0.4.ebuild,v 1.7 2012/06/03 02:42:24 vapier Exp $
-inherit eutils toolchain-funcs
+EAPI="4"
+
+inherit eutils toolchain-funcs multilib scons-utils
DESCRIPTION="easy-to-use image and video I/O functions"
HOMEPAGE="http://code.google.com/p/iulib/"
@@ -24,24 +26,28 @@ RDEPEND="sys-libs/zlib
DEPEND="${RDEPEND}
dev-util/scons"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}"/${PN}-0.4-scons-build-env.patch
sed -i \
- -e "/^have_sdl = 1/s:1:`use sdl && echo 1 || echo 0`:" \
+ -e "/^have_sdl = 1/s:1:$(usex sdl 1 0):" \
-e '/tiff/s:inflate:TIFFOpen:' \
-e '/progs.Append(LIBS=libiulib)/s:Append:Prepend:' \
+ -e "/^libdir/s:/lib:/$(get_libdir):" \
SConstruct || die #297326 #308955 #310439
sed -i '/SDL.SDL_image.h/d' utils/dgraphics.cc || die #310443
+ tc-export AR CC CXX RANLIB
+}
+
+src_configure() {
+ # Avoid configure as we build/install with scons
+ :
}
src_compile() {
- tc-export CC CXX
- scons prefix=/usr || die
+ escons prefix=/usr
}
src_install() {
- scons install prefix="${D}/usr" || die
+ escons prefix="${D}"/usr install
dodoc CHANGES README TODO
}