blob: 9341051b5a567070c6b5064433596687ef62dced (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/ash/ash-1.6.ebuild,v 1.22 2005/10/02 11:29:27 agriffis Exp $
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="NetBSD's lightweight bourne shell"
HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/src/bin/sh/"
SRC_URI="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/tar_files/src/bin.tar.gz
mirror://gentoo/dash-ash-hetio-yacc.diff.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha ~amd64 arm ia64 ~mips ppc sparc x86"
IUSE="static"
DEPEND="sys-devel/pmake
sys-apps/sed
dev-util/yacc"
S=${WORKDIR}/bin_NetBSD-1.6release/src/bin/sh
src_unpack() {
mkdir ${WORKDIR}/bin_NetBSD-1.6release
(cd ${WORKDIR}/bin_NetBSD-1.6release; tar zxv --no-same-owner \
-f ${DISTDIR}/bin.tar.gz src/bin/sh)
epatch ${DISTDIR}/dash-ash-hetio-yacc.diff.bz2
cd ${S}
epatch ${FILESDIR}/${P}-gcc4.diff
}
src_compile() {
use static && append-ldflags -static
append-flags "-Wall -DBSD=1 -D_GNU_SOURCE -DGLOB_BROKEN \
-DHAVE_VASPRINTF=1 -DIFS_BROKEN -DGCC_BROKEN_NG -D__COPYRIGHT\(x\)=\
-D__RCSID\(x\)= -D_DIAGASSERT\(x\)= -fstrict-aliasing"
# pmake name conflicts, use full path
/usr/bin/pmake CC="$(tc-getCC)" CFLAGS:="${CFLAGS}" \
YACC:="sh ${S}/yaccfe.sh" || die "pmake failed"
}
src_install() {
into /
newbin sh ash || die
newman sh.1 ash.1
}
|