# Copyright 1999-2003 Gentoo Technologies, Inc. # 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.4 2003/09/06 22:23:39 msterret Exp $ inherit eutils IUSE="" S=${WORKDIR}/bin_NetBSD-1.6release/src/bin/sh 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 http://cvs.gentoo.org/~seemant/dash-ash-hetio-yacc.diff.bz2" SLOT="0" LICENSE="BSD" KEYWORDS="~alpha x86" DEPEND="sys-devel/pmake sys-apps/sed dev-util/yacc" 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 } src_compile() { # pmake name conflicts, use full path /usr/bin/pmake CFLAGS:="-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\)= -g -O2 -fstrict-aliasing ${CFLAGS}" \ YACC:="sh ${S}/yaccfe.sh" || die "pmake failed" } src_install() { into / newbin sh ash newman sh.1 ash.1 dosym /usr/share/man/man1/ash.1.gz /usr/share/man/man1/sh.1.gz }