summaryrefslogtreecommitdiff
blob: 3f8cf22e53498fcb7dbfad485ab22cb93434aae2 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/dash/dash-0.4.24.ebuild,v 1.1 2004/03/26 18:53:19 seemant Exp $

IUSE=""

MY_P="${P/-/_}"
S=${WORKDIR}/${PN}
DESCRIPTION="Debian-version of NetBSD's lightweight bourne shell"
HOMEPAGE="http://ftp.debian.org/debian/pool/main/d/dash/"
SRC_URI="http://ftp.debian.org/debian/pool/main/d/dash/${MY_P}.tar.gz"

SLOT="0"
LICENSE="BSD"
KEYWORDS="~x86"

DEPEND="sys-devel/pmake
	sys-apps/sed 
	dev-util/yacc"

src_compile() {
	# pmake name conflicts, use full path
	/usr/bin/pmake CFLAGS:="-Wall -DBSD=1 -DSMALL -D_GNU_SOURCE -DGL \
		-DIFS_BROKEN -D__COPYRIGHT\(x\)= -D__RCSID\(x\)= \
		-D_DIAGASSERT\(x\)= -g -O2 -fstrict-aliasing" YACC:=bison
}

src_install() {
	exeinto /bin
	newexe sh dash

	newman sh.1 dash.1
	#dosym /usr/share/man/man1/ash.1.gz /usr/share/man/man1/sh.1.gz
	
	dodoc TOUR debian/changelog
}