# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils python DESCRIPTION="LaTeX plugin for gedit" HOMEPAGE="http://live.gnome.org/Gedit/LaTeXPlugin" SRC_URI="mirror://sourceforge/gedit-latex/LaTeXPlugin-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND=">=app-editors/gedit-2.13.0 dev-tex/rubber" pkg_setup() { if ! built_with_use app-editors/gedit python; then eerror "app-editors/gedit was built without support for python." eerror "Please re-emerge app-editors/gedit with USE='python'." die "app-editors/gedit was built without support for python." fi } src_compile() { einfo "Nothing to compile" } src_install() { cd ${WORKDIR} dodoc LaTeXPlugin/ChangeLog rm LaTeXPlugin/ChangeLog insinto /usr/$(get_libdir)/gedit-2/plugins doins -r * } pkg_postinst() { python_mod_optimize /usr/$(get_libdir)/gedit-2/plugins/LaTeXPlugin } pkg_postrm() { python_mod_cleanup /usr/$(get_libdir)/gedit-2/plugins/LaTeXPlugin }