diff options
author | 2015-12-23 02:01:03 +0600 | |
---|---|---|
committer | 2015-12-23 02:01:03 +0600 | |
commit | 3c8ed910b0ad34698cfa6b6f023e81617dc97124 (patch) | |
tree | a2174ff142e8dac04bae17eed08285318ef2693e | |
parent | [app-accessibility/rhvoice] Bump (diff) | |
download | activehome-3c8ed910b0ad34698cfa6b6f023e81617dc97124.tar.gz activehome-3c8ed910b0ad34698cfa6b6f023e81617dc97124.tar.bz2 activehome-3c8ed910b0ad34698cfa6b6f023e81617dc97124.zip |
SweetHome3D
Signed-off-by: Vadim A. Misbakh-Soloviov <git@mva.name>
-rw-r--r-- | media-gfx/sunflow/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/sunflow/metadata.xml | 11 | ||||
-rw-r--r-- | media-gfx/sunflow/sunflow-0.7.3.ebuild | 36 | ||||
-rw-r--r-- | media-gfx/sweethome3d-bin/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/sweethome3d-bin/sweethome3d-bin-5.1.ebuild | 31 | ||||
-rw-r--r-- | media-gfx/sweethome3d/Manifest | 3 | ||||
-rw-r--r-- | media-gfx/sweethome3d/metadata.xml | 7 | ||||
-rw-r--r-- | media-gfx/sweethome3d/sweethome3d-5.1.ebuild | 114 |
8 files changed, 205 insertions, 0 deletions
diff --git a/media-gfx/sunflow/Manifest b/media-gfx/sunflow/Manifest new file mode 100644 index 0000000..97e6ffb --- /dev/null +++ b/media-gfx/sunflow/Manifest @@ -0,0 +1 @@ +DIST sunflow-0.7.3.zip 1202475 RMD160 168cf3df556999961cf0ead8b0043600907598f4 SHA1 338756fea942772fc7456c47b36dd1df1772954b SHA256 38e7778c7fc3c8ef98ae779a4cc578e568ffe17a3743c48ba4ae653f862df41d diff --git a/media-gfx/sunflow/metadata.xml b/media-gfx/sunflow/metadata.xml new file mode 100644 index 0000000..5508681 --- /dev/null +++ b/media-gfx/sunflow/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd></herd> + <longdescription lang="en"> + Sunflow is an open source rendering system for photo-realistic image + synthesis. It is written in Java and built around a flexible ray tracing + core and an extensible object-oriented design. + </longdescription> +</pkgmetadata> + diff --git a/media-gfx/sunflow/sunflow-0.7.3.ebuild b/media-gfx/sunflow/sunflow-0.7.3.ebuild new file mode 100644 index 0000000..18e425c --- /dev/null +++ b/media-gfx/sunflow/sunflow-0.7.3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple eutils + +DESCRIPTION="A rendering system for photo-realistic image synthesis." +HOMEPAGE="http://sunflow.sourceforge.net/" +SRC_URI="http://www.polyquark.com/opensource/download/binariesAndSources.zip -> ${P}.zip" +IUSE="" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +S="${WORKDIR}" + +COMMON_DEP="dev-java/janino:0" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEP}" + +JAVA_GENTOO_CLASSPATH="janino" +JAVA_SRC_DIR="src" + +src_install() { + java-pkg-simple_src_install + + java-pkg_dolauncher ${PN} --java_args "-Xmx1g" --main SunflowGUI + make_desktop_entry ${PN} "Sunflow" {PN} Graphics +} diff --git a/media-gfx/sweethome3d-bin/Manifest b/media-gfx/sweethome3d-bin/Manifest new file mode 100644 index 0000000..190d517 --- /dev/null +++ b/media-gfx/sweethome3d-bin/Manifest @@ -0,0 +1,2 @@ +DIST SweetHome3D-5.1-linux-x64.tgz 49651793 SHA256 e68e35514574df9422ac09741835cc60140d0d5e24016cf495e7f91bf971b7e2 SHA512 96a931800f9fc4981e0d6b3078cca986b047027c96f4856f7dda7466b1c2317eb3adef92705d2741a68f0bd87954fd47797dc38783eed48acfcb13c854baea4e WHIRLPOOL 13a5a4cf37deb37d26b40db63b6a59f6f4b89104ee07dd65a6472df72086542d536dbf90a3bda514a5dae39321b2674c48a2e3782a9809e4bd205fad010ee6ae +DIST SweetHome3D-5.1-linux-x86.tgz 55661988 SHA256 1d44b8cf6e5c8914e551aec4a2193c3e8e38081c4661087d5bccac9a2d450698 SHA512 7f42079a630760a34588e52bac6cea083799d690530cb7cc32ab6851e48597b2ee3d7734921d396fbbb074e5d30b2cd05b189266d33b5e90f1159c7ad18dc907 WHIRLPOOL 0ad4ac9abcdedd0ccc257779519a9162bc940583b7e3c4cfedf5120f7ed5488a7094f79fd8e946bdb1a22eb0c5077cec54752a65ba9a2d2e10a6eedd0c9f6fd0 diff --git a/media-gfx/sweethome3d-bin/sweethome3d-bin-5.1.ebuild b/media-gfx/sweethome3d-bin/sweethome3d-bin-5.1.ebuild new file mode 100644 index 0000000..3b99581 --- /dev/null +++ b/media-gfx/sweethome3d-bin/sweethome3d-bin-5.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# This ebuild is a modified version of ebuild from java overlay. + +EAPI="5" +inherit eutils + +MY_PN="SweetHome3D" + +DESCRIPTION="Sweet Home 3D is a free interior design application." +HOMEPAGE="http://sweethome3d.sourceforge.net/" +SRC_URI="amd64? ( mirror://sourceforge/sweethome3d/${MY_PN}-${PV}-linux-x64.tgz ) + x86? ( mirror://sourceforge/sweethome3d/${MY_PN}-${PV}-linux-x86.tgz )" +LICENSE="GPL-3" +IUSE="" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="" + +RDEPEND="" + +S="${WORKDIR}/${MY_PN}-${PV}" +src_install() { + dodir /usr/share/sweethome3d + cp -r ${S}/* ${D}/usr/share/sweethome3d/ + dosym /usr/share/sweethome3d/${MY_PN} /usr/bin/${MY_PN} + make_desktop_entry ${MY_PN} "${MY_PN}" +} + diff --git a/media-gfx/sweethome3d/Manifest b/media-gfx/sweethome3d/Manifest new file mode 100644 index 0000000..4163f20 --- /dev/null +++ b/media-gfx/sweethome3d/Manifest @@ -0,0 +1,3 @@ +DIST SweetHome3D-5.1-src.zip 27176567 SHA256 0f879c3227658b80366df74ead4e6bd5d63559fe4f69b267ffbd29f72a4c26ee SHA512 b4bd9cd10df6619b4c3c7a09aadb0bf7f40a5a1d7f6bce989ecbeec15612a1f964633c026255ee203ebdd481a6287c72a1836d98bc463cfa210c2e640edb4ed9 WHIRLPOOL 6d3c422cd5f838fbcd559d12322b15bef4583d405aaa2e75bc9a2fa21bb0088ab793bfef3a4635950440c955911085a367c5daec83ed9b0a95e384e11b733f80 +DIST sunflow-0.7.3.zip 1202475 SHA256 38e7778c7fc3c8ef98ae779a4cc578e568ffe17a3743c48ba4ae653f862df41d SHA512 d35e3e4411603c88678143c984a7b43e7a31f012a5d85b4bde666830f31bdb6f1286d73d402b676d89ff99e87bc92b88ef21b7a308c9c5d58005e603295492c3 WHIRLPOOL 6573adeee50c4efc07b0391c9a24dd1d12164a555fdbc75bf69a8061776b797395a2bcda7c793c2213c45fcfd4f95fd95bdcc53ca47c11a5f4749b3afb3569a8 +DIST sweethome3d.png 6828 SHA256 5cc20b9b82b84d1d85dc776e77d1399bfad136fc032d3f6c9fe1f06cdba33855 SHA512 5582051094b3d49fba3daa50d581140cac5c4f7b30c868eb88b767cebbcea09d692811091969ec1b8cf8cdf81db51dd215a48c3f1e29ab037ce9f77d187c4925 WHIRLPOOL bec009fdd431a7a2180dd4d5264b6649e4a37e71e823961cd5d5c898319726c42c0538303769080eb49e9f2934ad06b82e2f0d53404c849b3d4f0f0249974462 diff --git a/media-gfx/sweethome3d/metadata.xml b/media-gfx/sweethome3d/metadata.xml new file mode 100644 index 0000000..fde0137 --- /dev/null +++ b/media-gfx/sweethome3d/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<pkgmetadata> +<herd>java</herd> +<maintainer> + <email>java@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/media-gfx/sweethome3d/sweethome3d-5.1.ebuild b/media-gfx/sweethome3d/sweethome3d-5.1.ebuild new file mode 100644 index 0000000..315ba67 --- /dev/null +++ b/media-gfx/sweethome3d/sweethome3d-5.1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" +inherit eutils java-pkg-2 java-ant-2 java-pkg-simple + +MY_PN="SweetHome3D" + +DESCRIPTION="Sweet Home 3D is a free interior design application." +HOMEPAGE="http://${PN}.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-src.zip + http://dev.gentoo.org/~fordfrog/distfiles/${PN}.png + http://www.polyquark.com/opensource/download/binariesAndSources.zip -> sunflow-0.7.3.zip" +LICENSE="GPL-3" +IUSE="" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +COMMON_DEPEND=" + >=dev-java/apple-java-extensions-bin-1.5:0 + dev-java/freehep-graphics2d:0 + dev-java/freehep-graphicsio:0 + dev-java/freehep-graphicsio-svg:0 + dev-java/freehep-util:0 + dev-java/itext:0 + dev-java/j3d-core:0 + dev-java/janino:0 + dev-java/java3dsloader:0 + dev-java/jmf-bin:0 + dev-java/jnlp-api + dev-java/vecmath:0 + dev-java/batik +" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEPEND}" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +S="${WORKDIR}/${MY_PN}-${PV}-src" +SUNFLOW_PATCH="sunflow-0.07.3h-src-diff" + +# sunflow variables +JAVA_GENTOO_CLASSPATH="janino" +JAVA_SRC_DIR="${WORKDIR}/${SUNFLOW_PATCH}/src" + +# sweethome variables +EANT_BUILD_TARGET="build furniture textures help" + +src_unpack() { + unpack ${MY_PN}-${PV}-src.zip + + # prepare modified sources of sunflow + mkdir ${SUNFLOW_PATCH} || die + pushd ${SUNFLOW_PATCH} >/dev/null || die + unpack sunflow-0.7.3.zip + popd >/dev/null || die + unpack ./SweetHome3D-${PV}-src/${SUNFLOW_PATCH}.zip + + einfo "Removing bundled jars..." + find -name "*.jar" -type f | xargs rm -v +} + +java_prepare() { + # add dependencies into the lib dir + pushd "${S}"/lib >/dev/null || die + java-pkg_jar-from freehep-graphics2d + java-pkg_jar-from freehep-graphicsio + java-pkg_jar-from freehep-graphicsio-svg + java-pkg_jar-from freehep-util + java-pkg_jar-from itext iText.jar + java-pkg_jar-from j3d-core + java-pkg_jar-from java3dsloader + java-pkg_jar-from jmf-bin + java-pkg_jar-from jnlp-api + java-pkg_jar-from vecmath + java-pkg_jar-from batik-1.7 batik-parser.jar + popd >/dev/null || die + pushd "${S}"/libtest >/dev/null || die + java-pkg_jar-from apple-java-extensions-bin + popd >/dev/null || die + + # add dependency for sunflow + java-pkg_jar-from --into "${WORKDIR}"/${SUNFLOW_PATCH} janino +} + +src_compile() { + # to prevent QA warning, renaming build.xml for a while + mv build.xml build.xml.bak || die + + # compile and link sunflow + java-pkg-simple_src_compile + mv "${S}"/${PN}.jar "${S}"/lib/sunflow.jar || die + + # rename build.xml back + mv build.xml.bak build.xml || die + + java-pkg-2_src_compile +} + +src_install() { + java-pkg_dojar build/*.jar + java-pkg_dojar lib/sunflow.jar + + # create SweetHome3D wrapper script + java-pkg_dolauncher ${MY_PN} --main com.eteks.sweethome3d.SweetHome3D \ + -Djava.library.path=/usr/$(get_libdir)/${PN} -Xmx256m + + doicon "${DISTDIR}"/${PN}.png || die + make_desktop_entry SweetHome3D "Sweet Home 3D" ${PN} Graphics +} |