summaryrefslogtreecommitdiff
path: root/sci-visualization/zhu3d
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-visualization/zhu3d
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-visualization/zhu3d')
-rw-r--r--sci-visualization/zhu3d/Manifest8
-rw-r--r--sci-visualization/zhu3d/files/zhu3d-4.2.4-gold.patch11
-rw-r--r--sci-visualization/zhu3d/metadata.xml19
-rw-r--r--sci-visualization/zhu3d/zhu3d-4.2.4.ebuild76
-rw-r--r--sci-visualization/zhu3d/zhu3d-4.2.6.ebuild77
5 files changed, 191 insertions, 0 deletions
diff --git a/sci-visualization/zhu3d/Manifest b/sci-visualization/zhu3d/Manifest
new file mode 100644
index 000000000000..ca4125b3222f
--- /dev/null
+++ b/sci-visualization/zhu3d/Manifest
@@ -0,0 +1,8 @@
+AUX zhu3d-4.2.4-gold.patch 286 SHA256 5641b806a3666123ad79535400373eb4d0ca17d27965ee2b054e29b84cf07fb2 SHA512 85b25013ee480b9a2a5e50a19cc7edad95ad9d01de2b92fb6b71b57d9ffbaba0db3a07a3665bed30ec3af53b9794fe51b40f393aa2663892daf22620883dbc50 WHIRLPOOL ffd911c7495c4d20ef8cfbadeffcae71bfc8d19bade01beb50b4002a82ac9e9deea8fb54464908b5a42488e94af103f44d591a4eebad20d914db6c0f24ba9d81
+DIST zhu3d-4.2.4.tar.gz 942827 SHA256 bb40273b69c2b0b3aa295fd4d239cbda68cdc576d728b7ca0de3491e46e7f88f SHA512 7b38fa8da837d0f64ca32face6fe9e1d7d97893c13c3f91bce93c712914dc0ce163137e091423135080c1b1219ebed435ef7dbab3a74edf26c133d7ddb1c6c1e WHIRLPOOL f8ebe1f0e1cab1bd439504c4a2e21599d22d29d606a82503d736407202e8464acbfdddacb4d8b6b11b59eddde7ec38974dcad9b14fcacf480a4994f0dee46c73
+DIST zhu3d-4.2.6.tar.gz 953395 SHA256 59aec1898dd598b4a085f7e83420ff926bbeb73027f29887dcd3495659b529df SHA512 105c68e0bfff7b2dbb71d3ed713033e82a729db7d3d8f6e3de038ced53db0829e0b0b146e6b042d954983af830c6834921be58d72bde90012461047d5d99dfd1 WHIRLPOOL fd28a3a6bf58b1eddf5716f279797ed224cbd16f273992e70d9a93129e923120053e4440103bb3456f7f2bf5b36adf6dc31f9d13ed8214a444101a61c106b5e2
+EBUILD zhu3d-4.2.4.ebuild 1688 SHA256 757d53c858d429dc039951d93c150abe5d0768a079dedde993c56db42dd17ece SHA512 d4211b40d38eef8b5b72cb8fa7c0d180ec6638bbdb2247383658ad89d60fb1128c0e9152bf3b101e3ce349e5e97a7d8fd721a0ffad46651d7e739cea6dc660d8 WHIRLPOOL 75770d96122d7a156b32dc5302b4922c4e0b0240076645df4595ef284db75d92c8d18194d0249309c125378b801c45a8e920bf695b1580193a119c2462e7a19d
+EBUILD zhu3d-4.2.6.ebuild 1701 SHA256 68c0a5ec191c9abfbad49c318de1c175898ea80f7251084c994930ad6ff6aa5f SHA512 f2040ec8e96704000d5d8a07f33114d3252b30252ad733ddb77e129626b2c51db244b65d88b6b29df410ed977c116965225be4d53ea3f4189274eac217eb1d67 WHIRLPOOL 3911c97da2abc64c5f41e16c3a5e69961a47acb5f6899a88e8c32738e1ed585bd81f4909fac270611fdefd975a9c4ce8cc6db9defc64be7f1f4410aa396bc4e2
+MISC ChangeLog 2643 SHA256 7195b6c660c7b1abbe2f74709ddf1b7c242a5fff8d819b323875c7ae6c222a38 SHA512 b2a0dc6b1e305db1df6caca67697bbc503f0edde4fe1ed865660c5dfe9724e2f427ec3fa879ef2950b68f711a4cd40c45eea823f049618595bd087c1cfae67c3 WHIRLPOOL 13070bc76e70ef2c34f913e81bbffc36e35c66315096ddb9ea04576bb34f7a91bcad8c06fc54144bf60f01cd22a399c677600b56d442eb614736623781af8607
+MISC ChangeLog-2015 3805 SHA256 08fe584bb255a5ab66950fb8e340ac21047d51b84c3a9f235281be4e43ed9941 SHA512 2854a4e28101db9ea582786e91a39a958fa93f89515f7b46575bc9bb568d1523f4ebbec6420e33f1612ea99e08c0920a611c9150238765ac80cede1dc009799a WHIRLPOOL 46ef8cee52640d0c8a3db1097118df79f742df2c0f0e748953f369b08debfb5749abcf86cbe48efa52f0ba078bf1cc597641ab5b070f2b87f11ecc76ea0d9222
+MISC metadata.xml 814 SHA256 51a96086ac5c90fc4095b98e24de966753499cbc2412dfaafac3e380b040b5ee SHA512 6444c71fc9c956d40342f4928b0d452ae4f60852b27b607fa2b67615e211842dffe1bb6d4694268411ff08b431e08a4f32e50d8d19e0c0654d296c6231b0062d WHIRLPOOL 76f26bc28ce1b323ff6c7de4f09b8ec661c96c26f158bb37a58b39817f79c17e70fce1478d79265a787b271122f74cd32150eac4befa8e3518df58bb0e2a10f4
diff --git a/sci-visualization/zhu3d/files/zhu3d-4.2.4-gold.patch b/sci-visualization/zhu3d/files/zhu3d-4.2.4-gold.patch
new file mode 100644
index 000000000000..64a6ad42b3d4
--- /dev/null
+++ b/sci-visualization/zhu3d/files/zhu3d-4.2.4-gold.patch
@@ -0,0 +1,11 @@
+--- zhu3d.pro
++++ zhu3d.pro
+@@ -48,7 +48,7 @@
+ CONFIG += release
+ TARGET = zhu3d
+ QT += opengl
+-
++LIBS += -lGLU
+
+ # ============================================================================
+ # Optimisation switches. For both GCC/ICC compilers -O3 is default.
diff --git a/sci-visualization/zhu3d/metadata.xml b/sci-visualization/zhu3d/metadata.xml
new file mode 100644
index 000000000000..cc3c6e1d3cb3
--- /dev/null
+++ b/sci-visualization/zhu3d/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Zhu3D allows you to interactively view and animate mathematical
+ functions, isosurfaces and a further independent parametric system.
+ Numerical solutions of equation systems are found with an adaptive
+ random search. The OpenGL-viewer supports zooming, scaling, rotating
+ and translating as well as filed lightning or surface properties.
+ Special effects are transparency, textures, fog and motion blur.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">zhu3d</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-visualization/zhu3d/zhu3d-4.2.4.ebuild b/sci-visualization/zhu3d/zhu3d-4.2.4.ebuild
new file mode 100644
index 000000000000..eabd53772ce1
--- /dev/null
+++ b/sci-visualization/zhu3d/zhu3d-4.2.4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+LANGS="cs de es fr zh"
+
+inherit eutils qt4-r2
+
+DESCRIPTION="Interactive 3D mathematical function viewer"
+HOMEPAGE="https://sourceforge.net/projects/zhu3d"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="
+ virtual/glu
+ virtual/opengl
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-gold.patch" )
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ local datadir=/usr/share/${PN}
+ sed \
+ -e "s:^SYSDIR=:SYSDIR=${datadir}/system:" \
+ -e "s:^TEXDIR=:TEXDIR=${datadir}/textures:" \
+ -e "s:^WORKDIR=:WORKDIR=${datadir}/work:" \
+ -e "s:^DOCDIR=:DOCDIR=/usr/share/doc/${PF}/html:" \
+ -i ${PN}.pri || die "sed zhu3d.pri failed"
+
+ sed \
+ -e "/# Optimisation/,/# Include/d" \
+ -i zhu3d.pro || die "optimisation sed failed"
+}
+
+src_install() {
+ # not working: emake install INSTALL_ROOT="${D}" || die
+ dobin zhu3d
+
+ dodoc {readme,src/changelog}.txt
+ dohtml doc/*.png doc/${PN}_en.html
+
+ local lang
+ for lang in ${LANGS} ; do
+ if use linguas_${lang} ; then
+
+ insinto /usr/share/${PN}/system/languages
+ doins system/languages/${PN}_${lang}.qm
+
+ if [ -e doc/${PN}_${lang}.html ] ; then
+ dohtml doc/${PN}_${lang}.html
+ fi
+ fi
+ done
+
+ insinto /usr/share/${PN}
+ doins -r work/textures
+
+ insinto /usr/share/${PN}/work
+ doins -r work/*.zhu work/slideshow
+
+ insinto /usr/share/${PN}/system
+ doins -r system/*.zhu system/icons
+
+ doicon system/icons/${PN}.png
+ make_desktop_entry ${PN} "Zhu3D Function Viewer" ${PN} "Education;Science;Math;Qt"
+}
diff --git a/sci-visualization/zhu3d/zhu3d-4.2.6.ebuild b/sci-visualization/zhu3d/zhu3d-4.2.6.ebuild
new file mode 100644
index 000000000000..d7c48e1a7d16
--- /dev/null
+++ b/sci-visualization/zhu3d/zhu3d-4.2.6.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+LANGS="cs de es fr zh"
+
+inherit eutils qt4-r2
+
+DESCRIPTION="Interactive 3D mathematical function viewer"
+HOMEPAGE="https://sourceforge.net/projects/zhu3d"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="
+ virtual/glu
+ virtual/opengl
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.2.4-gold.patch )
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ local datadir=/usr/share/${PN}
+ sed \
+ -e "s:^SYSDIR=:SYSDIR=${datadir}/system:" \
+ -e "s:^TEXDIR=:TEXDIR=${datadir}/textures:" \
+ -e "s:^WORKDIR=:WORKDIR=${datadir}/work:" \
+ -e "s:^DOCDIR=:DOCDIR=/usr/share/doc/${PF}/html:" \
+ -i ${PN}.pri || die "sed zhu3d.pri failed"
+
+ sed \
+ -e "/# Optimisation/,/# Include/d" \
+ -i zhu3d.pro || die "optimisation sed failed"
+}
+
+src_install() {
+ # not working: emake install INSTALL_ROOT="${D}" || die
+ dobin zhu3d
+
+ dodoc {readme,src/changelog}.txt
+ dohtml doc/*.png doc/${PN}_en.html
+
+ local lang
+ for lang in ${LANGS} ; do
+ if use linguas_${lang} ; then
+
+ insinto /usr/share/${PN}/system/languages
+ doins system/languages/${PN}_${lang}.qm
+
+ if [ -e doc/${PN}_${lang}.html ] ; then
+ dohtml doc/${PN}_${lang}.html
+ fi
+ fi
+ done
+
+ insinto /usr/share/${PN}
+ doins -r work/textures
+
+ insinto /usr/share/${PN}/work
+ doins -r work/*.zhu work/slideshow
+
+ insinto /usr/share/${PN}/system
+ doins -r system/*.zhu system/icons
+
+ doicon system/icons/${PN}.png
+ make_desktop_entry ${PN} "Zhu3D Function Viewer" \
+ ${PN} "Education;Science;Math;Qt"
+}