# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 python DESCRIPTION="Simple, slim, sleek, yet powerful text editor for GNOME" HOMEPAGE="http://scribes.sf.net/" SRC_URI="mirror://sourceforge/scribes/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" NEED_PYTHON="2.4" RDEPEND=">=x11-libs/gtk+-2.10 >=gnome-base/gconf-2.12.0 >=dev-libs/dbus-glib-0.70 >=dev-python/dbus-python-0.70 >=dev-python/pygtk-2.10.0 >=dev-python/gnome-python-2.12.0 >=dev-python/gnome-python-desktop-2.12.0 >=dev-python/gnome-python-extras-2.12.0 >=gnome-extra/yelp-2.12.0 >=sys-apps/dbus-0.70" DEPEND="${RDEPEND} app-text/scrollkeeper >=dev-util/intltool-0.35" DOCS="AUTHORS README COPYING TODO ChangeLog INSTALL NEWS README" src_unpack() { gnome2_src_unpack # disable pyc and pyo compiling cd "${S}" find . -iname *.pyo -exec rm -f {} \; mv py-compile py-compile.orig ln -s /bin/true py-compile mv compile.py compile.py.orig touch compile.py } pkg_postinst() { gnome2_pkg_postinst python_version python_mod_optimize "${ROOT}/usr/lib/python${PYVER}/site-packages/SCRIBES" python_mod_optimize "${ROOT}/usr/share/${PN}/plugins/" } pkg_postrm() { gnome2_pkg_postrm python_version python_mod_cleanup "${ROOT}/usr/share/${PN}/plugins/" python_mod_cleanup }