1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
12 inherit autotools eutils gnome2 python
14 MY_P="${P}-dev-build${build}"
15 DESCRIPTION="a text editor that is simple, slim and sleek, yet powerful"
16 HOMEPAGE="http://scribes.sourceforge.net"
17 SRC_URI="http://launchpad.net/scribes/${PV}/scribes-milestone1/+download/${MY_P}.tar.bz2"
21 KEYWORDS="~amd64 ~x86"
24 RDEPEND="gnome-base/gconf
25 doc? ( gnome-extra/yelp )
27 dev-python/dbus-python
29 dev-python/gtkspell-python
30 dev-python/pygtksourceview
32 DEPEND="app-text/gnome-doc-utils
39 DOCS="AUTHORS ChangeLog CONTRIBUTORS NEWS README TODO TRANSLATORS"
42 python_set_active_version 2
43 G2CONF="--disable-scrollkeeper"
47 epatch "${FILESDIR}"/${PN}-sandbox.patch
48 # keep make from byte-compiling python modules itself
49 epatch "${FILESDIR}"/${PN}-byte-compiling-plugins.patch
52 # make py-compile useless (but true)
53 echo '#!/bin/sh' > py-compile || die "Could not kill py-compile"
55 python_convert_shebangs -r 2 .
62 python_clean_installation_image
67 python_mod_optimize SCRIBES
72 python_mod_cleanup SCRIBES