diff options
Diffstat (limited to 'gnome-extra/gedit-latex/gedit-latex-0.2-r1.ebuild')
-rw-r--r-- | gnome-extra/gedit-latex/gedit-latex-0.2-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/gnome-extra/gedit-latex/gedit-latex-0.2-r1.ebuild b/gnome-extra/gedit-latex/gedit-latex-0.2-r1.ebuild new file mode 100644 index 0000000..06ac486 --- /dev/null +++ b/gnome-extra/gedit-latex/gedit-latex-0.2-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils python + +DESCRIPTION="LaTeX plugin for gedit" +HOMEPAGE="http://live.gnome.org/Gedit/LaTeXPlugin" +SRC_URI="mirror://sourceforge/${PN}/LaTeXPlugin-${PV/_rc/rc}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="" + +RDEPEND=">=app-editors/gedit-2.15.2[python] + dev-python/gnome-vfs-python + dev-python/dbus-python + dev-python/pygtk + dev-python/pyenchant + dev-tex/rubber" + +DEPEND="" + +S="${WORKDIR}" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + mv GeditLaTeXPlugin ${PN} + mv GeditLaTeXPlugin.gedit-plugin ${PN}.gedit-plugin + sed -i -e "s/GeditLaTeXPlugin/${PN}/g" ${PN}.gedit-plugin ${PN}/src/base/resources.py + rm ${PN}/ChangeLog + rm ${PN}/INSTALL + rm ${PN}/COPYING + insinto /usr/$(get_libdir)/gedit-2/plugins + doins -r * + fperms 755 /usr/$(get_libdir)/gedit-2/plugins/${PN}/util/eps2png.pl +} + +pkg_postinst() { + python_mod_optimize /usr/$(get_libdir)/gedit-2/plugins/${PN} +} + +pkg_postrm() { + python_mod_cleanup /usr/$(get_libdir)/gedit-2/plugins/${PN} +} |