summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2013-06-14 20:52:35 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2013-06-14 20:52:35 +0000
commita35bf2748c67cd87a9016360ed8460570372459d (patch)
treec8401758b33df8038a3ec75193c4bc7f7c0ce99f
parentVersion bump (diff)
downloadgentoo-2-a35bf2748c67cd87a9016360ed8460570372459d.tar.gz
gentoo-2-a35bf2748c67cd87a9016360ed8460570372459d.tar.bz2
gentoo-2-a35bf2748c67cd87a9016360ed8460570372459d.zip
Version bump
(Portage version: 2.2.01.22013-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
-rw-r--r--sci-visualization/zhu3d/ChangeLog7
-rw-r--r--sci-visualization/zhu3d/zhu3d-4.2.6.ebuild78
2 files changed, 84 insertions, 1 deletions
diff --git a/sci-visualization/zhu3d/ChangeLog b/sci-visualization/zhu3d/ChangeLog
index 437dfc50a940..7bdd7e9cb05a 100644
--- a/sci-visualization/zhu3d/ChangeLog
+++ b/sci-visualization/zhu3d/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-visualization/zhu3d
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/zhu3d/ChangeLog,v 1.25 2013/03/02 23:29:22 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/zhu3d/ChangeLog,v 1.26 2013/06/14 20:52:35 bicatali Exp $
+
+*zhu3d-4.2.6 (14 Jun 2013)
+
+ 14 Jun 2013; Sébastien Fabbro <bicatali@gentoo.org> +zhu3d-4.2.6.ebuild:
+ Version bump
02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> zhu3d-4.2.4.ebuild:
Move Qt dependencies to the new category
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..3ed94ae9724c
--- /dev/null
+++ b/sci-visualization/zhu3d/zhu3d-4.2.6.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/zhu3d/zhu3d-4.2.6.ebuild,v 1.1 2013/06/14 20:52:35 bicatali Exp $
+
+EAPI=5
+
+LANGS="cs de es fr zh"
+
+inherit eutils qt4-r2
+
+DESCRIPTION="Interactive 3D mathematical function viewer"
+HOMEPAGE="http://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"
+}