diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-07-20 13:38:46 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-07-20 13:38:46 +0000 |
commit | 6cc77e282e5bb171f785bf3993f189ff990b34bd (patch) | |
tree | 07fba8ca633a4f8030bb552b632e9e5c3e58ec13 /media-gfx | |
parent | media-gfx/yafray:openexr (diff) | |
download | gentoo-2-6cc77e282e5bb171f785bf3993f189ff990b34bd.tar.gz gentoo-2-6cc77e282e5bb171f785bf3993f189ff990b34bd.tar.bz2 gentoo-2-6cc77e282e5bb171f785bf3993f189ff990b34bd.zip |
New version
(Portage version: 2.1.1_pre2-r4)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/yafray/ChangeLog | 9 | ||||
-rw-r--r-- | media-gfx/yafray/files/digest-yafray-0.0.9 | 3 | ||||
-rw-r--r-- | media-gfx/yafray/files/yafray-0.0.9-libdir.patch | 30 | ||||
-rw-r--r-- | media-gfx/yafray/files/yafray-0.0.9-scons.patch | 25 | ||||
-rw-r--r-- | media-gfx/yafray/yafray-0.0.9.ebuild | 51 |
5 files changed, 117 insertions, 1 deletions
diff --git a/media-gfx/yafray/ChangeLog b/media-gfx/yafray/ChangeLog index 7c3b9a79fde1..02ae15cf768b 100644 --- a/media-gfx/yafray/ChangeLog +++ b/media-gfx/yafray/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-gfx/yafray # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/yafray/ChangeLog,v 1.30 2006/06/30 00:35:52 lu_zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/yafray/ChangeLog,v 1.31 2006/07/20 13:38:46 lu_zero Exp $ + +*yafray-0.0.9 (20 Jul 2006) + + 20 Jul 2006; Luca Barbato <lu_zero@gentoo.org> + +files/yafray-0.0.9-libdir.patch, +files/yafray-0.0.9-scons.patch, + +yafray-0.0.9.ebuild: + New version 30 Jun 2006; Luca Barbato <lu_zero@gentoo.org> yafray-0.0.8.ebuild: Make scons parallebuild work diff --git a/media-gfx/yafray/files/digest-yafray-0.0.9 b/media-gfx/yafray/files/digest-yafray-0.0.9 new file mode 100644 index 000000000000..59d123f564c0 --- /dev/null +++ b/media-gfx/yafray/files/digest-yafray-0.0.9 @@ -0,0 +1,3 @@ +MD5 7365122e0ca6f439988f51e8b4db935c yafray-0.0.9.tar.gz 316033 +RMD160 4bad504cf78e86718869b9ced3967d31ec66a608 yafray-0.0.9.tar.gz 316033 +SHA256 f803e7058fb65cab9c0d00599daa85ca291fb57941822d622426e3466ec0aefb yafray-0.0.9.tar.gz 316033 diff --git a/media-gfx/yafray/files/yafray-0.0.9-libdir.patch b/media-gfx/yafray/files/yafray-0.0.9-libdir.patch new file mode 100644 index 000000000000..11ceef96110b --- /dev/null +++ b/media-gfx/yafray/files/yafray-0.0.9-libdir.patch @@ -0,0 +1,30 @@ +--- yafray.old/linux-settings.py 2006-07-14 12:14:52.000000000 +0200 ++++ yafray/linux-settings.py 2006-07-20 14:38:26.000000000 +0200 +@@ -5,13 +5,15 @@ + + srcroot = os.getcwd() + prefix = '' ++libdif = '' + + def init(args): +- global prefix ++ global prefix, libdir + prefix = args.get('prefix','/usr/local') ++ libdir = args.get('libdir','/lib') + +-def get_libpath(args): return prefix+"/lib" +-def get_pluginpath(args): return prefix+"/lib/yafray" ++def get_libpath(args): return prefix+libdif ++def get_pluginpath(args): return prefix+libdir+"/yafray" + def get_binpath(args): return prefix+"/bin" + def get_confpath(args): return prefix+"/etc" + def get_cxxflags(args): +@@ -40,7 +42,7 @@ + return False + + def get_include(args): return [ exr.PATH + "/include/OpenEXR" ] +- def get_libpath(args): return [ exr.PATH + "/lib" ] ++ def get_libpath(args): return [ exr.PATH + libdir ] + def get_libs(args): return ['IlmImf', 'Imath', 'Iex', 'Half'] + + class jpeg(globalinfo.library): diff --git a/media-gfx/yafray/files/yafray-0.0.9-scons.patch b/media-gfx/yafray/files/yafray-0.0.9-scons.patch new file mode 100644 index 000000000000..7d286a7c1097 --- /dev/null +++ b/media-gfx/yafray/files/yafray-0.0.9-scons.patch @@ -0,0 +1,25 @@ +--- yafray.old/SConstruct 2006-06-20 19:24:00.000000000 +0200 ++++ yafray/SConstruct 2006-07-20 14:53:59.000000000 +0200 +@@ -3,6 +3,7 @@ + import configio + import globalinfo + ++destdir=ARGUMENTS.get('destdir','') + prefix=ARGUMENTS.get('prefix','/usr/local') + + ficheros = { +@@ -36,10 +37,10 @@ + + class config: + cxxflags = confer.get_cxxflags(A) +- libpath = confer.get_libpath(A) +- pluginpath = confer.get_pluginpath(A) +- binpath = confer.get_binpath(A) +- confpath = confer.get_confpath(A) ++ libpath = destdir + confer.get_libpath(A) ++ pluginpath = destdir + confer.get_pluginpath(A) ++ binpath = destdir + confer.get_binpath(A) ++ confpath = destdir + confer.get_confpath(A) + rootpath = Dir('.').srcnode().abspath + + for name,val in confer.__dict__.items(): diff --git a/media-gfx/yafray/yafray-0.0.9.ebuild b/media-gfx/yafray/yafray-0.0.9.ebuild new file mode 100644 index 000000000000..3434982bd015 --- /dev/null +++ b/media-gfx/yafray/yafray-0.0.9.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/yafray/yafray-0.0.9.ebuild,v 1.1 2006/07/20 13:38:46 lu_zero Exp $ + +inherit eutils python multilib + +DESCRIPTION="Yet Another Free Raytracer" +HOMEPAGE="http://www.yafray.org/" +SRC_URI="http://www.yafray.org/sec/2/downloads/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="openexr" + +RDEPEND="media-libs/jpeg + sys-libs/zlib" +DEPEND="${RDEPEND} + >=sys-devel/gcc-3.3 + >=sys-apps/sed-4 + dev-util/scons" + +export WANT_AUTOMAKE="1.7" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-scons.patch + epatch ${FILESDIR}/${P}-libdir.patch + # Dirty hack for a dirty buildsystem. + sed -i -e "s:-O3:${CXXFLAGS} -fsigned-char:g" *-settings.py +} + +src_compile() { + local exr_path="" + use openexr && exr_path="/usr" + + scons ${MAKEOPTS} prefix="/usr" \ + libdir="/$(get_libdir)" + exr_path="$exr_path" || die +} + +src_install() { + scons prefix="/usr" destdir="${D}" libdir="/$(get_libdir)" install || die + + find ${D} -name .sconsign -exec rm \{\} \; + dodoc AUTHORS || die "dodoc failed" + dohtml doc/doc.html || die "dohtml failed" +} |