blob: f66bc73c7bb2e9c52890d30325f5ae1fd9156b96 (
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
48
49
50
51
52
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/ksh/ksh-93.20110208.ebuild,v 1.3 2012/03/20 08:29:17 ago Exp $
EAPI=4
inherit toolchain-funcs versionator
DESCRIPTION="The Original Korn Shell, 1993 revision (ksh93)"
HOMEPAGE="http://www.kornshell.com/"
INIT_RELEASE="2012-01-01"
ksh_release() {
local v="$(get_version_component_range 2)"
echo "${v:0:4}-${v:4:2}-${v:6:2}"
}
SRC_URI="http://dev.gentoo.org/~floppym/distfiles/INIT.${INIT_RELEASE}.tgz
http://dev.gentoo.org/~floppym/distfiles/ast-base.$(ksh_release).tgz"
LICENSE="CPL-1.0 EPL-1.0"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE=""
RDEPEND="!app-shells/pdksh"
S=${WORKDIR}
src_prepare() {
# Bug 238906.
sed -i -e 's,cd /tmp,cd "${TMPDIR:-/tmp}",' \
bin/package src/cmd/INIT/package.sh || die
}
src_compile() {
tc-export AR CC LD NM
export CCFLAGS="${CFLAGS}"
sh bin/package only make ast-ksh SHELL=/bin/sh SHOPT_SYSRC=1 || die
}
src_install() {
dodoc lib/package/ast-base.README
dohtml lib/package/ast-base.html
local myhost="$(sh bin/package host)"
cd "arch/${myhost}" || die
into /
dobin bin/ksh
dosym ksh /bin/rksh
newman man/man1/sh.1 ksh.1
}
|