/[gentoo-x86]/sci-misc/gato/gato-1.1.2.ebuild
Gentoo

Contents of /sci-misc/gato/gato-1.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 16 16:07:37 2012 UTC (2 years ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
sci-misc/gato: Require tk support in python, #435036

(Portage version: 2.2.0_alpha128/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-misc/gato/gato-1.1.2.ebuild,v 1.1 2012/08/04 16:01:17 bicatali Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2"
8 PYTHON_USE_WITH="tk"
9
10 inherit eutils python
11
12 MYP="Gato-${PV}"
13
14 DESCRIPTION="Graph Animation Toolbox"
15 HOMEPAGE="http://gato.sourceforge.net/"
16 SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
17
18 LICENSE="LGPL-2"
19 SLOT="0"
20 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
21 IUSE=""
22
23 S="${WORKDIR}/${MYP}"
24
25 pkg_setup() {
26 python_set_active_version 2
27 python_pkg_setup
28 }
29
30 src_prepare() {
31 # change TKinter call to avoid crashing of X
32 sed -i \
33 -e 's:self.overrideredirect(1):self.overrideredirect(0):' \
34 "${S}"/GatoDialogs.py || die "failed to patch GatoDialogs.py"
35 }
36
37 src_install() {
38 # install python code
39 local instdir=$(python_get_sitedir)/${PN}
40 insinto ${instdir}
41 doins *.py
42 fperms 755 ${instdir}/{Gato,Gred}.py
43 python_convert_shebangs -r 2 "${ED}"
44
45 # create symlinks
46 dosym ${instdir}/Gato.py /usr/bin/gato
47 dosym ${instdir}/Gred.py /usr/bin/gred
48
49 # install data files
50 insinto /usr/share/${PN}
51 doins BFS.* DFS.* sample.cat
52 }

  ViewVC Help
Powered by ViewVC 1.1.20