/[gentoo-x86]/sci-visualization/zhu3d/zhu3d-4.2.6.ebuild
Gentoo

Contents of /sci-visualization/zhu3d/zhu3d-4.2.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 14 20:52:35 2013 UTC (4 years, 5 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.01.22013-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/zhu3d/zhu3d-4.2.4.ebuild,v 1.6 2013/03/02 23:29:22 hwoarang Exp $
4
5 EAPI=5
6
7 LANGS="cs de es fr zh"
8
9 inherit eutils qt4-r2
10
11 DESCRIPTION="Interactive 3D mathematical function viewer"
12 HOMEPAGE="http://sourceforge.net/projects/zhu3d"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14
15 LICENSE="GPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE=""
19
20 DEPEND="
21 virtual/glu
22 virtual/opengl
23 dev-qt/qtcore:4
24 dev-qt/qtgui:4
25 dev-qt/qtopengl:4"
26 RDEPEND="${DEPEND}"
27
28 PATCHES=( "${FILESDIR}"/${PN}-4.2.4-gold.patch )
29
30 src_prepare() {
31 qt4-r2_src_prepare
32
33 local datadir=/usr/share/${PN}
34 sed \
35 -e "s:^SYSDIR=:SYSDIR=${datadir}/system:" \
36 -e "s:^TEXDIR=:TEXDIR=${datadir}/textures:" \
37 -e "s:^WORKDIR=:WORKDIR=${datadir}/work:" \
38 -e "s:^DOCDIR=:DOCDIR=/usr/share/doc/${PF}/html:" \
39 -i ${PN}.pri || die "sed zhu3d.pri failed"
40
41 sed \
42 -e "/# Optimisation/,/# Include/d" \
43 -i zhu3d.pro || die "optimisation sed failed"
44 }
45
46 src_install() {
47 # not working: emake install INSTALL_ROOT="${D}" || die
48 dobin zhu3d
49
50 dodoc {readme,src/changelog}.txt
51 dohtml doc/*.png doc/${PN}_en.html
52
53 local lang
54 for lang in ${LANGS} ; do
55 if use linguas_${lang} ; then
56
57 insinto /usr/share/${PN}/system/languages
58 doins system/languages/${PN}_${lang}.qm
59
60 if [ -e doc/${PN}_${lang}.html ] ; then
61 dohtml doc/${PN}_${lang}.html
62 fi
63 fi
64 done
65
66 insinto /usr/share/${PN}
67 doins -r work/textures
68
69 insinto /usr/share/${PN}/work
70 doins -r work/*.zhu work/slideshow
71
72 insinto /usr/share/${PN}/system
73 doins -r system/*.zhu system/icons
74
75 doicon system/icons/${PN}.png
76 make_desktop_entry ${PN} "Zhu3D Function Viewer" \
77 ${PN} "Education;Science;Math;Qt"
78 }

  ViewVC Help
Powered by ViewVC 1.1.20