summaryrefslogtreecommitdiff
blob: 09159521af74b8a6544aad93dcfc0021561c54d4 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-office/lyx-base/lyx-base-1.1.6.4-r3.ebuild,v 1.1 2002/03/23 23:50:49 danarmak Exp $

# The real version of LyX is 1.1.6fix4. As Portage has no support for
# arbitrary suffixes like 'fix', this is translated into 1.1.6.4.
MY_P=lyx-1.1.6fix4
S=${WORKDIR}/${MY_P}
DESCRIPTION="LyX is an WYSIWYM frontend for LaTeX"
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/${MY_P}.tar.gz"
HOMEPAGE="http://www.lyx.org/"

# This lyx-base ebuild only depends on the absolutely necessary packages.
# The acompanying lyx-utils ebuild depends on lyx-base and on everything
# else that lyx can use.
DEPEND="virtual/x11
	x11-libs/xforms
	app-text/tetex 
	>=sys-devel/perl-5
	nls? ( sys-devel/gettext )"

src_compile() {
	
	local myconf
	use nls || myconf="${myconf} --disable-nls"
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir='$(prefix)/share/info' \
		--with-extra-inc=/usr/X11R6/include \
		--mandir='$(prefix)/share/man' \
		${myconf} || die "./configure failed"
	emake || die "emake failed"
}

src_install () {
	# The 'install-strip' target is provided by the LyX makefile
	# for stripping installed binaries.  Use prefix= instead of
	# DESTDIR=, otherwise it violates the sandbox in the po directory.
	make prefix=${D}/usr install-strip
}