summaryrefslogtreecommitdiff
blob: 9209e5bd0b26dfcde8954b7639d114c865d7b3ee (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
54
55
56
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.0.5.ebuild,v 1.6 2002/11/15 16:05:16 phoenix Exp $

IUSE=""

S=${WORKDIR}/${P}
DESCRIPTION="UNIX Shell similar to the Korn shell"
SRC_URI="ftp://ftp.zsh.org/pub/old/${P}.tar.gz"
HOMEPAGE="www.zsh.org/"
SLOT="0"
LICENSE="ZSH"

DEPEND="virtual/glibc
	>=sys-libs/ncurses-5.1"


KEYWORDS="x86 ppc sparc sparc64"

src_compile() {
	./configure --prefix=/usr --host=${CHOST} \
		--bindir=/bin \
		--mandir=/usr/share/man \
		--libdir=/usr/lib \
		--infodir=/usr/share/info \
		--enable-maildir-support \
		--enable-etcdir=/etc/zsh \
		--enable-zshenv=/etc/zsh/zshenv \
		--enable-zshlogin=/etc/zsh/zshlogin \
		--enable-zshrc=/etc/zsh/zshrc \
		--enable-fndir=/usr/share/zsh \
		--enable-function-subdirs || die
	# Can't use emake, b0rks
	make || die
	# make check violates sandboxing
#	make check || die
}

src_install() {
	make prefix=${D}/usr \
		bindir=${D}/bin \
		mandir=${D}/usr/share/man \
		libdir=${D}/usr/lib \
		fndir=${D}/usr/share/zsh \
		infodir=${D}/usr/share/info \
		install.bin install.man install.modules \
		install.info install.fns || die
		
	dodoc ChangeLog META-FAQ README INSTALL LICENCE config.modules
	docinto StartupFiles
 	dodoc StartupFiles/z*
	dodir /etc/zsh
	cp ${S}/StartupFiles/z* ${D}/etc/zsh

	rm -rf ${D}/share
}