diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-08-04 16:01:17 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-08-04 16:01:17 +0000 |
commit | 49c6437ac479a6f58bd772f6135c8dbdee21ed59 (patch) | |
tree | f6278576cd6e212a3f9d94ae3a192b69208f5ab1 /sci-misc/gato/gato-1.1.2.ebuild | |
parent | respect CFLAGS wrt bug #429422 (diff) | |
download | gentoo-2-49c6437ac479a6f58bd772f6135c8dbdee21ed59.tar.gz gentoo-2-49c6437ac479a6f58bd772f6135c8dbdee21ed59.tar.bz2 gentoo-2-49c6437ac479a6f58bd772f6135c8dbdee21ed59.zip |
Version bump
(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)
Diffstat (limited to 'sci-misc/gato/gato-1.1.2.ebuild')
-rw-r--r-- | sci-misc/gato/gato-1.1.2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sci-misc/gato/gato-1.1.2.ebuild b/sci-misc/gato/gato-1.1.2.ebuild new file mode 100644 index 000000000000..26db0583bf25 --- /dev/null +++ b/sci-misc/gato/gato-1.1.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-1.1.2.ebuild,v 1.1 2012/08/04 16:01:17 bicatali Exp $ + +EAPI=4 + +PYTHON_DEPEND="2" +#PYTHON_USE_WITH="tk" + +inherit eutils python + +MYP="Gato-${PV}" + +DESCRIPTION="Graph Animation Toolbox" +HOMEPAGE="http://gato.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +S="${WORKDIR}/${MYP}" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + # change TKinter call to avoid crashing of X + sed -i \ + -e 's:self.overrideredirect(1):self.overrideredirect(0):' \ + "${S}"/GatoDialogs.py || die "failed to patch GatoDialogs.py" +} + +src_install() { + # install python code + local instdir=$(python_get_sitedir)/${PN} + insinto ${instdir} + doins *.py + fperms 755 ${instdir}/{Gato,Gred}.py + python_convert_shebangs -r 2 "${ED}" + + # create symlinks + dosym ${instdir}/Gato.py /usr/bin/gato + dosym ${instdir}/Gred.py /usr/bin/gred + + # install data files + insinto /usr/share/${PN} + doins BFS.* DFS.* sample.cat +} |