| 1 |
bicatali |
1.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.02.ebuild,v 1.1 2010/06/24 12:51:38 jlec 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 |
|
|
}
|