diff options
author | Markus Meier <maekke@gentoo.org> | 2009-09-21 15:55:39 +0000 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2009-09-21 15:55:39 +0000 |
commit | ba4d9d374cc712629bb0f5e81442686d173c80c0 (patch) | |
tree | 739018ceabd49d27b01faba1f40ee43bf26f6d7c /media-gfx/yafaray | |
parent | Automated update of use.local.desc (diff) | |
download | historical-ba4d9d374cc712629bb0f5e81442686d173c80c0.tar.gz historical-ba4d9d374cc712629bb0f5e81442686d173c80c0.tar.bz2 historical-ba4d9d374cc712629bb0f5e81442686d173c80c0.zip |
initial import of yafaray, ebuild by me, bug #273738
Package-Manager: portage-2.2_rc40/cvs/Linux i686
Diffstat (limited to 'media-gfx/yafaray')
-rw-r--r-- | media-gfx/yafaray/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/yafaray/Manifest | 15 | ||||
-rw-r--r-- | media-gfx/yafaray/metadata.xml | 13 | ||||
-rw-r--r-- | media-gfx/yafaray/yafaray-0.1.1.ebuild | 83 |
4 files changed, 121 insertions, 0 deletions
diff --git a/media-gfx/yafaray/ChangeLog b/media-gfx/yafaray/ChangeLog new file mode 100644 index 000000000000..03cc48cd9b28 --- /dev/null +++ b/media-gfx/yafaray/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-gfx/yafaray +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/yafaray/ChangeLog,v 1.1 2009/09/21 15:55:39 maekke Exp $ + +*yafaray-0.1.1 (21 Sep 2009) + + 21 Sep 2009; Markus Meier <maekke@gentoo.org> +yafaray-0.1.1.ebuild, + +metadata.xml: + initial import of yafaray, ebuild by me, bug #273738 + diff --git a/media-gfx/yafaray/Manifest b/media-gfx/yafaray/Manifest new file mode 100644 index 000000000000..dca510a65863 --- /dev/null +++ b/media-gfx/yafaray/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST YafaRay-blender.0.1.1.zip 37965 RMD160 0a4c9648224b7a457370928152861e6a65c6f380 SHA1 c53aeb330072513d139fbe7701cc55cb94d183c4 SHA256 68041b4c13793c0ef3491dc5ccb3e39ae3f845b9c6f9edadddd3cd71a83abdad +DIST YafaRay.0.1.1.zip 542063 RMD160 446ce67034da84f94d5a4b9dc3f9be012b075905 SHA1 430deeb5462ebef27fb433ad5d8ca868d8f291c2 SHA256 9588f1ee85fae286fcfc0bd6d05fb2c60bfadea0c6f4254fb6dac00a36f7f3a1 +EBUILD yafaray-0.1.1.ebuild 2153 RMD160 af74b48252e7a133385ffa8862b40425f91ae65a SHA1 56ea212c45e3650c80e8bce3979f564e1009bfb3 SHA256 e815d86eb4ede8be929e276923597d267e14c714126e6e374478c7f5e66b261a +MISC ChangeLog 381 RMD160 1fdca498cbb9809308b68c2c8c30a28a8f745878 SHA1 a75a2b5ff711f6ada74e8785458e80575c4ca962 SHA256 256cd9de14dc56a8536f24b6a4c67d30fb512bfe42f2dba50698be691cc74497 +MISC metadata.xml 673 RMD160 6d357d9193425d456bf4fc7f9d42d32cfcdcca17 SHA1 a2b96f774766f25b5cfbe20c03817140af03b3e1 SHA256 24a5043479e3d0bbc3bc6c9b92c1b6601b9262daf5f6c5950ee4095cd335a9ae +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkq3ongACgkQkKaRLQcq0GJZqQCdHo104DPg0RmDVbDsa6pM24w1 +HmsAn1vTTXQihrmemAgoqVPTPX9HFX7h +=5Dmh +-----END PGP SIGNATURE----- diff --git a/media-gfx/yafaray/metadata.xml b/media-gfx/yafaray/metadata.xml new file mode 100644 index 000000000000..3ec6e16295f6 --- /dev/null +++ b/media-gfx/yafaray/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>graphics</herd> +<longdescription lang="en"> +YafaRay is a raytracing open source render engine. Raytracing is a rendering technique for generating realistic images by tracing the path of light through a 3D scene. +An render engine consists of a "faceless" computer program that interacts with a host 3D application to provide very specific raytracing capabilties "on demand". Blender 3D is the host application of YafaRay. +</longdescription> +<use> + <flag name="blender">install <pkg>media-gfx/blender</pkg> scripts</flag> +</use> +</pkgmetadata> + diff --git a/media-gfx/yafaray/yafaray-0.1.1.ebuild b/media-gfx/yafaray/yafaray-0.1.1.ebuild new file mode 100644 index 000000000000..db6786f6ed81 --- /dev/null +++ b/media-gfx/yafaray/yafaray-0.1.1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/yafaray/yafaray-0.1.1.ebuild,v 1.1 2009/09/21 15:55:39 maekke Exp $ + +EAPI=2 +MY_PN="YafaRay" + +inherit multilib + +DESCRIPTION="YafaRay is a raytracing open source render engine" +HOMEPAGE="http://www.yafaray.org/" +SRC_URI="http://static.yafaray.org/sources/${MY_PN}.${PV}.zip + blender? ( + http://static.yafaray.org/sources/${MY_PN}-blender.${PV}.zip + )" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+blender debug qt4" + +RDEPEND=" + dev-libs/libxml2 + media-libs/freetype + media-libs/jpeg + media-libs/libpng + media-libs/openexr + sys-libs/zlib + blender? ( >=media-gfx/blender-2.49 ) + qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 )" +DEPEND="${RDEPEND} + app-arch/unzip + dev-lang/swig + >=dev-util/scons-1.0" + +S="${WORKDIR}/${PN}" + +src_prepare() { + sed -i \ + -e 's:-Wall::g' \ + -e 's:-O3 -ffast-math::g' \ + "${S}"/config/linux2-config.py || die "sed failed" + sed -i \ + -e "s:env.subst('\$YF_PLUGINPATH'):\"/usr/$(get_libdir)/yafaray\":"\ + "${S}"/tools/writeconfig.py || die "sed failed" + # add correct paths for qt-libs + echo 'gui_env.Append(CPPPATH = ["/usr/include/qt4"])' >> "${S}"/src/gui/SConscript + echo "gui_env.Append(LIBPATH = [\"/usr/$(get_libdir)/qt4\"])" >> "${S}"/src/gui/SConscript +} + +user_config() { + echo $@ >> "${S}"/user-config.py +} + +src_configure() { + user_config "PREFIX=\"${D}/usr\"" + user_config "BASE_LPATH=\"/usr/$(get_libdir)/\"" + user_config "YF_LIBOUT=\"\${PREFIX}/$(get_libdir)/\"" + user_config "YF_PLUGINPATH=\"\${PREFIX}/$(get_libdir)/yafaray/\"" + if use qt4; then + user_config "WITH_YF_QT='true'" + user_config "YF_QTDIR='/usr'" + fi + use debug && user_config "YF_DEBUG='true'" +} + +src_compile() { + scons ${MAKEOPTS} || die "scons failed" + scons swig || die "scons swig failed" +} + +src_install() { + scons install || die "scons install failed" + scons swig_install || die "scons swig_install failed" + + if use blender; then + cd ../yafaray-blender + insinto /usr/share/blender/scripts + doins yafaray_ui.py + insinto /usr/share/yafaray/blender + doins yaf_*.py + fi +} |