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

Contents of /sci-misc/gato/gato-0.99c.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Aug 4 16:01:17 2012 UTC (2 years, 4 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Version bump

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

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild,v 1.8 2010/06/24 12:52:40 jlec Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 PYTHON_USE_WITH="tk"
8
9 inherit eutils python
10
11 MY_PN="Gato"
12 MY_PV=$(echo ${PV} | tr '[:lower:]' '[:upper:]')
13
14 DESCRIPTION="Graph Animation Toolbox"
15 HOMEPAGE="http://gato.sourceforge.net/"
16 SRC_URI="http://gato.sourceforge.net/Download/${MY_PN}-${MY_PV}.tar.gz
17 doc? ( http://gato.sourceforge.net/Download/${MY_PN}-Doc-${MY_PV}.tar.gz )"
18
19 LICENSE="LGPL-2"
20 SLOT="0"
21 KEYWORDS="~amd64 ~ppc ~x86"
22 IUSE="doc"
23
24 S="${WORKDIR}/${MY_PN}"
25
26 pkg_setup() {
27 python_set_active_version 2
28 python_pkg_setup
29 }
30
31 src_prepare() {
32 # change TKinter call to avoid crashing of X
33 sed -i \
34 -e 's:self.overrideredirect(1):self.overrideredirect(0):' \
35 "${S}"/GatoDialogs.py || die "failed to patch GatoDialogs.py"
36 }
37
38 src_install() {
39 # install python code
40 local instdir=$(python_get_sitedir)/${PN}
41 insinto ${instdir}
42 doins *.py || die "Failed to install python files"
43 fperms 755 ${instdir}/{Gato,Gred}.py
44 python_convert_shebangs -r 2 "${ED}"
45
46 # create symlinks
47 dosym ${instdir}/Gato.py /usr/bin/gato || die
48 dosym ${instdir}/Gred.py /usr/bin/gred || die
49
50 # install data files
51 insinto /usr/share/${PN}
52 doins BFS.* DFS.* sample.cat || die "failed to data files"
53
54 use doc && dohtml -r "${WORKDIR}"/Doc/*
55 }
56
57 pkg_postinst() {
58 python_mod_optimize ${PN}
59 }
60
61 pkg_postrm() {
62 python_mod_cleanup ${PN}
63 }

  ViewVC Help
Powered by ViewVC 1.1.20