Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 410157 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-23 / +43 lines)
Line  Link Here
0
-- zhu3d-4.2.2.ebuild
0
++ zhu3d-4.2.4.ebuild
Lines 2-53 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/zhu3d/zhu3d-4.2.2.ebuild,v 1.6 2010/09/16 18:18:35 scarabeus Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/zhu3d/zhu3d-4.2.2.ebuild,v 1.6 2010/09/16 18:18:35 scarabeus Exp $
4
4
5
EAPI=2
5
EAPI=4
6
LANGS="cs de es fr zh"
6
7
7
inherit eutils qt4
8
inherit eutils qt4-r2
8
9
9
DESCRIPTION="Interactive 3D mathematical function viewer"
10
DESCRIPTION="Interactive 3D mathematical function viewer"
10
HOMEPAGE="http://sourceforge.net/projects/zhu3d"
11
HOMEPAGE="http://sourceforge.net/projects/zhu3d"
11
LICENSE="GPL-2"
12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
13
13
14
LICENSE="GPL-3"
15
SLOT="0"
16
KEYWORDS="~amd64 ~x86"
14
IUSE=""
17
IUSE=""
15
18
16
KEYWORDS="amd64 x86"
19
DEPEND="virtual/opengl
17
SLOT="0"
20
	x11-libs/qt-core:4
21
	x11-libs/qt-gui:4
22
	x11-libs/qt-opengl:4"
23
REPEND="${DEPEND}"
18
24
19
RDEPEND="x11-libs/qt-gui:4
25
PATCHES=( "${FILESDIR}/${P}-gold.patch" )
20
	x11-libs/qt-opengl:4
21
	virtual/opengl"
22
DEPEND="${RDEPEND}
23
	app-arch/unzip"
24
26
25
src_prepare() {
27
src_prepare() {
28
	qt4-r2_src_prepare
29
26
	local datadir=/usr/share/${PN}
30
	local datadir=/usr/share/${PN}
27
	sed -i \
31
	sed -i \
28
		-e "s:^SYSDIR=:SYSDIR=${datadir}/system:" \
32
		-e "s:^SYSDIR=:SYSDIR=${datadir}/system:" \
29
		-e "s:^TEXDIR=:TEXDIR=${datadir}/textures:" \
33
		-e "s:^TEXDIR=:TEXDIR=${datadir}/textures:" \
30
		-e "s:^WORKDIR=:WORKDIR=${datadir}/work:" \
34
		-e "s:^WORKDIR=:WORKDIR=${datadir}/work:" \
31
		-e "s:^DOCDIR=:WORKDIR=/usr/share/doc/${PF}/html:" \
35
		-e "s:^DOCDIR=:DOCDIR=/usr/share/doc/${PF}/html:" \
32
		${PN}.pri || die "sed zhu3d.pri failed"
36
		${PN}.pri || die "sed zhu3d.pri failed"
33
	sed -i -e "/# Optimisation/,/# Include/d" zhu3d.pro || die
34
}
35
37
36
src_configure() {
38
	sed -i -e "/# Optimisation/,/# Include/d" zhu3d.pro \
37
	eqmake4
39
		|| die "optimisation sed failed"
38
}
40
}
39
41
40
src_install() {
42
src_install() {
41
	# not working: emake install INSTALL_ROOT="${D}" || die
43
	# not working: emake install INSTALL_ROOT="${D}" || die
42
	dobin zhu3d || die
44
	dobin zhu3d
43
45
44
	dodoc {readme,src/changelog}.txt || die
46
	dodoc {readme,src/changelog}.txt
45
	dohtml doc/* || die
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
46
61
47
	insinto /usr/share/${PN}
62
	insinto /usr/share/${PN}
48
	rm -f system/languages/*.ts
63
	doins -r work/textures
49
	doins -r work system || die
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
50
70
51
	doicon system/icons/${PN}.png || die
71
	doicon system/icons/${PN}.png
52
	make_desktop_entry ${PN} "Zhu3D Function Viewer" ${PN} "Education;Science;Math;Qt"
72
	make_desktop_entry ${PN} "Zhu3D Function Viewer" ${PN} "Education;Science;Math;Qt"
53
}
73
}

Return to bug 410157