blob: 45adebb592af53118f825a05f15b214f1b55eafc (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.98p.ebuild,v 1.1 2005/12/04 21:14:52 markusle Exp $
inherit eutils
MY_P="Gato"
MY_PV="0.98P"
DESCRIPTION="Graph Animation Toolbox"
LICENSE="LGPL-2"
HOMEPAGE="http://gato.sourceforge.net/"
SRC_URI="http://gato.sourceforge.net/Download/${MY_P}-${MY_PV}.tar.gz
doc? ( http://gato.sourceforge.net/Download/${MY_P}-Doc-${MY_PV}.tar.gz )"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="doc"
DEPEND=""
RDEPEND="dev-lang/python
dev-lang/tk"
S="${WORKDIR}"/Gato
GATO_DOC="${WORKDIR}"/Doc
src_unpack() {
unpack ${A}
# convert to python2.4
epatch "${FILESDIR}"/gato-python2.4-gentoo.patch
cd "${S}"
# change TKinter call to avoid crashing of X
sed -e "s:self.overrideredirect(1):self.overrideredirect(0):" \
-i GatoDialogs.py || die "failed to patch GatoDialogs.py"
}
src_install() {
# install python code
insinto /usr/lib/${PN}
doins *.py || die "Failed to install python files"
fperms 755 /usr/lib/${PN}/Gato.py /usr/lib/${PN}/Gred.py
# create symlinks
dodir /usr/bin
dosym /usr/lib/${PN}/Gato.py /usr/bin/gato
dosym /usr/lib/${PN}/Gred.py /usr/bin/gred
# install data files
insinto /usr/share/${PN}
doins BFS.* DFS.* sample.cat || die "failed to data files"
# install docs
if use doc; then
dohtml -r ${GATO_DOC}/*
fi
}
|