summaryrefslogtreecommitdiff
blob: 984ce801e2c0307601bf337dacec5e0cb54f2736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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-python
	dev-python/dbus-python
	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}
}