summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-02-13 03:35:41 +0000
committerMike Gilbert <floppym@gentoo.org>2012-02-13 03:35:41 +0000
commitadd933b02f0cab7014e4efa3a6c6fdfa2898b2e2 (patch)
tree1fc4640788889cb37e35819078e52a907527415c /app-shells/ksh/ksh-93.20110208.ebuild
parentInitial import. Thanks Maxim Konyushikhin for the initial ebuild (bug 387399) (diff)
downloadgentoo-2-add933b02f0cab7014e4efa3a6c6fdfa2898b2e2.tar.gz
gentoo-2-add933b02f0cab7014e4efa3a6c6fdfa2898b2e2.tar.bz2
gentoo-2-add933b02f0cab7014e4efa3a6c6fdfa2898b2e2.zip
Version bump / rewrite for bug 386339. Should also resolve bug 238906.
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'app-shells/ksh/ksh-93.20110208.ebuild')
-rw-r--r--app-shells/ksh/ksh-93.20110208.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-shells/ksh/ksh-93.20110208.ebuild b/app-shells/ksh/ksh-93.20110208.ebuild
new file mode 100644
index 000000000000..6a37d740e159
--- /dev/null
+++ b/app-shells/ksh/ksh-93.20110208.ebuild
@@ -0,0 +1,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.1 2012/02/13 03:35:41 floppym 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-ksh.$(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 || die
+}
+
+src_install() {
+ dodoc lib/package/ast-ksh.README
+ dohtml lib/package/ast-ksh.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
+}