1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
11 DESCRIPTION="The diet shell"
12 HOMEPAGE="http://www.blah.ch/shish/"
13 SRC_URI="http://www.blah.ch/${PN}/pkg/${MY_P}.tar.bz2"
20 DEPEND="diet? ( dev-libs/dietlibc )"
23 S="${WORKDIR}/${MY_P}"
25 DOCS=( AUTHORS BUGS ChangeLog README TODO )
28 use diet && export CC="diet $(tc-getCC) -nostdinc"
32 # Respect CFLAGS, bug #439974
34 -e '/CFLAGS="$CFLAGS/d' \
35 -e '/-fexpensive-optimizations -fomit-frame-pointer/d' \
36 configure || die 'sed on configure failed'
42 --disable-quiet # bug 439974
46 # parallel make is b0rked
56 einfo "Updating ${ROOT}etc/shells"
57 ( grep -v "^/bin/shish$" "${ROOT}"etc/shells; echo "/bin/shish" ) > "${T}"/shells
58 mv -f "${T}"/shells "${ROOT}"etc/shells