summaryrefslogtreecommitdiff
blob: af977d03daf3314fbc2f54bf949eee099e604f4a (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/lahelper/lahelper-0.6.3.ebuild,v 1.1 2004/11/15 14:02:19 usata Exp $

inherit eutils

DESCRIPTION="LaHelper (LaTeX Helper) is a GNOME document preparation GUI for LaTeX"
HOMEPAGE="http://lahelper.sourceforge.net/"
SRC_URI="mirror://sourceforge/lahelper/${P}-1.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="=x11-libs/gtk+-1.2*
	=gnome-base/gnome-libs-1.4*
	gnome-base/bonobo
	virtual/tetex"
RDEPEND="${DEPEND}
	~media-gfx/eog-0.6
	media-gfx/imagemagick"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-gentoo.diff
	sed -i -e "s:/usr/include/zvt:/usr/include/gnome-1.0/zvt:g" configure*
	find . -type f | xargs sed -i -e "s%/usr/local/share%/usr/share%g"
}

src_compile() {
	econf || die "could not configure"
	emake || die "emake failed"
}

src_install() {
	make install DESTDIR=${D} || die
	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README*
}