summaryrefslogtreecommitdiff
blob: be5bfdcafc88dbea67ac4d387ee1738f9a622e2f (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
51
52
53
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: System Team <system@gentoo.org>
# Author: Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-editors/xemacs/xemacs-21.1.14.ebuild,v 1.9 2001/10/24 21:34:42 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="XEmacs"
EFS=1.26
BASE=1.55
DEPEND="sys-libs/ncurses nas? media-libs/nas >=sys-libs/db-3 X? ( virtual/x11 media-libs/libpng media-libs/tiff media-libs/jpeg )"
SRC_URI="ftp://ftp.xemacs.org/pub/current/${P}.tar.bz2 ftp://ftp.xemacs.org/xemacs/packages/efs-${EFS}-pkg.tar.gz ftp://ftp.xemacs.org/xemacs/packages/xemacs-base-${BASE}-pkg.tar.gz"
HOMEPAGE="http://www.xemacs.org"

src_unpack() {
	cd ${WORKDIR}
	unpack ${P}.tar.bz2			
}

src_compile() {                           
	local myopts
	myopts="--without-x"
	use X && myopts="--with-x --with-jpeg --with-png --with-tiff"
	if [ "`use gpm`" ]
	then
		myopts="$myopts --with-gpm"
	else
		myopts="$myopts --without-gpm"
	fi
	if [ "`use nas`" ]
	then
		myopts="$myopts --with-sound=both"
	else
		myopts="$myopts --with-sound=native"
	fi
	./configure $myopts --with-database=gnudbm --without-offix --with-ncurses --with-xpm --without-xface --without-gif --prefix=/usr || die
	make || die
}

src_install() {                               
	make prefix=${D}/usr mandir=${D}/usr/share/man/man1 infodir=${D}/usr/share/info install || die
	# Install the two packages
	dodir /usr/lib/xemacs/xemacs-packages/
	cd ${D}/usr/lib/xemacs/xemacs-packages/
	unpack efs-${EFS}-pkg.tar.gz
	unpack xemacs-base-${BASE}-pkg.tar.gz
	#remove extraneous files
	cd ${D}/usr/share/info
	rm -f dir info.info texinfo* termcap*
	cd ${S}
	dodoc BUGS CHANGES-beta COPYING GETTING* INSTALL ISSUES PROBLEMS README*
}