blob: fd83da7909af3f379497b70d1aacf78f5890f8f7 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/shish/shish-0.7_pre3.ebuild,v 1.2 2005/10/01 13:44:42 hollow Exp $
inherit toolchain-funcs
MY_PV=${PV/_/-}
MY_P=${PN}-${MY_PV}
DESCRIPTION="The diet shell"
HOMEPAGE="http://www.blah.ch/shish/"
SRC_URI="http://www.blah.ch/${PN}/pkg/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug diet"
DEPEND="diet? ( dev-libs/dietlibc )"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
use diet && export CC="diet $(tc-getCC) -nostdinc"
}
src_compile() {
econf $(use_enable debug) || die "econf failed"
# parallel make is b0rked
emake -j1 || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
doman doc/man/shish.1
dodoc AUTHORS BUGS README TODO ChangeLog
}
pkg_postinst() {
einfo "Updating /etc/shells"
( grep -v "^/bin/shish$" /etc/shells; echo "/bin/shish" ) > ${T}/shells
mv -f ${T}/shells /etc/shells
}
|