1 # Maintainer: Gen Zhang <genneth@gmail.com>
5 pkgdesc="Gedit plugin that provides features to ease the edition of LaTeX documents"
7 url="http://live.gnome.org/Gedit/LaTeXPlugin"
10 depends=(gedit rubber texlive-core python2-gobject)
11 makedepends=(cairo gettext atk intltool libpeas gtk3 glib2)
13 conflicts=(gedit-latex-plugin)
14 replaces=(gedit-latex-plugin)
15 install=gschemas.install
16 source=(http://ftp.gnome.org/pub/gnome/sources/gedit-latex/3.3/$pkgname-$pkgver.tar.xz)
17 md5sums=('59dd79538a49169d86f8e6a72f55b8d4')
20 cd "$srcdir/$pkgname-$pkgver"
22 # fixes taken from the fedora package
23 sed -i -e 's|_CONFIG_FILENAME = "/etc/texmf/texmf.cnf"|_CONFIG_FILENAME = "/usr/share/texmf/web2c/texmf.cnf"|' latex/latex/environment.py
24 sed -i -e 's|_DEFAULT_TEXMF_DIR = "/usr/share/texmf-texlive"|_DEFAULT_TEXMF_DIR = "/usr/share/texmf"|' latex/latex/environment.py
26 # no gnome-open, use gvfs-open instead; fixed in master:
27 # http://git.gnome.org/browse/gedit-latex/commit/?id=4166f494ca26e1ef0540652fc1658e9dc31e6a0d
28 sed -i -e 's:gnome-open:gvfs-open:g' latex/latex/views.py
29 sed -i -e 's:gnome-open:gvfs-open:g' latex/latex/views.py
30 sed -i -e 's:gnome-open:gvfs-open:g' latex/latex/preview.py
31 sed -i -e 's:gnome-open:gvfs-open:g' data/tools.xml
33 PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-static
38 cd "$srcdir/$pkgname-$pkgver"
39 make DESTDIR="$pkgdir/" install