blob: e6da1bcdb2bd39167cfa11098cc792d1d3308762 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/truevision/truevision-0.5.5.2.ebuild,v 1.7 2006/03/26 19:05:32 vanquirius Exp $
inherit eutils gnome2 versionator
MY_P="${PN}-$(replace_version_separator 3 '-')"
EM_V="0.5.4"
DESCRIPTION="Gnome frontend to Povray"
HOMEPAGE="http://truevision.sourceforge.net"
SRC_URI="mirror://sourceforge/truevision/${MY_P}.tar.bz2
mirror://sourceforge/truevision/${PN}-extramat-${EM_V}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="doc"
DEPEND=">=x11-libs/gtk+-2.8.8
>=x11-libs/gtkglext-1.0.6-r3
gnome-base/libgnome
>=media-gfx/povray-3.6.1
sys-libs/zlib
virtual/opengl
>=gnome-base/libgnomeui-2.12.0"
DOCS="AUTHORS README ChangeLog TODO"
USE_DESTDIR="1"
S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
src_unpack() {
unpack ${A}
# Patch for editing gnome-vfs-mime-magic and do update-mime below
# bug 84530
cd "${S}"
epatch "${FILESDIR}"/${P}-makefile-mime-magic.patch
}
src_install() {
gnome2_src_install
# extra materials
cd "${WORKDIR}"/${PN}-extramat-${EM_V}
cp -R materials "${D}"/usr/share/truevision/materials/
# causes segfault related to pygtk, needs investigation
rm "${D}"/usr/share/truevision/python/plug-ins/starfield.py
# duplicated, unnecessary documentation
rm -rf "${D}"/usr/share/doc/${PN}
# fix desktop entry
echo "NoDisplay=true" >> "${D}"/usr/share/applications/truevision.desktop
make_desktop_entry truevision "Truevision" /usr/share/pixmaps/truevision/gnome-truevision.png "Graphics;3DGraphics;RasterGraphics;"
}
pkg_postinst() {
update-mime-database /usr/share/mime
}
|