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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Aug 7 04:55:22 2012 UTC (2 years ago) by bicatali
Branch: MAIN
Changes since 1.3: +2 -2 lines
keyword amd64-linux, x86-linux

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20