From 5696e33f65eb34bdf79f99b882323f55df7c7f14 Mon Sep 17 00:00:00 2001 From: Simon Haegler Date: Wed, 19 Oct 2011 12:00:17 +0200 Subject: added mitsuba 0.3.0 --- media-gfx/mitsuba/Manifest | 2 + media-gfx/mitsuba/mitsuba-0.3.0.ebuild | 67 ++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 media-gfx/mitsuba/Manifest create mode 100644 media-gfx/mitsuba/mitsuba-0.3.0.ebuild diff --git a/media-gfx/mitsuba/Manifest b/media-gfx/mitsuba/Manifest new file mode 100644 index 0000000..545be8f --- /dev/null +++ b/media-gfx/mitsuba/Manifest @@ -0,0 +1,2 @@ +DIST cb6e89af8012.tar.bz2 19574819 RMD160 dd34f0717a590d1be7179ec42412369c86353298 SHA1 4e543f8d11bcd5198996a1690df9bea08edea8f8 SHA256 a661b4c554d4afd5a5d851e030eca2994ab0f3556a0d7d39adedd8b10d0ccd07 +EBUILD mitsuba-0.3.0.ebuild 1443 RMD160 11915455617a46032195ac2856b23bb158df073c SHA1 ddc835f9149d0946761ddde54cf3422c97854bba SHA256 14ede156dbf1386a191dd4960df305c481ce09f293fcfe0dfd5462b80355bff8 diff --git a/media-gfx/mitsuba/mitsuba-0.3.0.ebuild b/media-gfx/mitsuba/mitsuba-0.3.0.ebuild new file mode 100644 index 0000000..65d39f7 --- /dev/null +++ b/media-gfx/mitsuba/mitsuba-0.3.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +PYTHON_DEPEND="3:3.1" +inherit scons-utils toolchain-funcs multilib + +MY_PV="cb6e89af8012" +MY_P="${PN}-${MY_PV}" + +SRC_URI="https://www.mitsuba-renderer.org/hg/mitsuba/archive/${MY_PV}.tar.bz2" + +DESCRIPTION="Mitsuba physically based renderer" +HOMEPAGE="https://www.mitsuba-renderer.org" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="virtual/jpeg + media-libs/libpng + x11-libs/libX11 + media-libs/glew + x11-libs/qt-core + x11-libs/qt-gui + x11-libs/qt-opengl + media-libs/openexr + dev-libs/xerces-c + dev-libs/boost + media-libs/collada-dom" +DEPEND="dev-util/scons + ${RDEPEND}" +S=${WORKDIR}/${MY_P} + +src_prepare() { + mkdir -p "${S}/dependencies" + echo "${PV}" > "${S}/dependencies/version" +} + +src_configure() { + ln -s "${S}/build/config-linux.py" "${S}/config.py" +} + +src_compile() { + escons || die "Scons failed" +} + +src_install() { + cd dist + + exeinto /usr/bin + doexe mitsuba mtssrv mtsgui mtsutil mtsimport || die + dolib.so libmitsuba-hw.so libmitsuba-render.so libmitsuba-core.so libmitsuba-bidir.so || die + + insinto "/usr/share/${P}" + doins -r "${S}/data/ior" + doins -r "${S}/data/schema" + + local my_plugins="/usr/$(get_libdir)/${PN}/plugins" + into ${my_plugins} + dolib.so plugins/*.so || die + + local my_python="/usr/$(get_libdir)/${PN}/python" + into ${my_python} + dolib.so python/*.so || die +} -- cgit v1.2.3-65-gdbad