summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/ksh')
-rw-r--r--app-shells/ksh/Manifest8
-rw-r--r--app-shells/ksh/files/ksh-prefix.patch42
-rw-r--r--app-shells/ksh/ksh-93.20110208.ebuild52
-rw-r--r--app-shells/ksh/ksh-93.20120229.ebuild56
-rw-r--r--app-shells/ksh/ksh-93.20140606.ebuild51
-rw-r--r--app-shells/ksh/ksh-93.20140625.ebuild50
-rw-r--r--app-shells/ksh/metadata.xml27
7 files changed, 286 insertions, 0 deletions
diff --git a/app-shells/ksh/Manifest b/app-shells/ksh/Manifest
new file mode 100644
index 000000000000..8a4c61c186b5
--- /dev/null
+++ b/app-shells/ksh/Manifest
@@ -0,0 +1,8 @@
+DIST INIT.2012-01-01.tgz 376375 SHA256 60d9a57885f2f37affb6ddab6090275d715236058561f333f351566bedcc2cd1 SHA512 ad933982d819b594f1303e31b3040b7c5f6ceaf7099d1203b0b7d0949709adf9e953586c9980e1b1cf311902e8a6c8fe6a6118e982d461ffeceddaf8b6f18bbe WHIRLPOOL 718f7275d51386960227bd04cfa51acaaaa8c2f83e1ad0a9f6a7c57f2066e86450a232dd94085ad3357ccbc044e586b15cda46cdcdf9f855db0521e75f96c766
+DIST INIT.2012-02-29.tgz 379873 SHA256 da4a886d28f75f8a011d522697272cd196cdcfb406f92d47f8b0a6608d786896 SHA512 2ac9d7ce48f1dc7e0870d87d34fa1688461268140c0747f507f3677a38fba0b8ca2f44020a4c50e0beaed63949dc347ee48c53b6e09bfb0e6c3e51e128a6302e WHIRLPOOL e4e4bc5bebbccb5e8ce3a8fdd73d1e796f9823291eb7980caa06e40bcea1f41d7122c88af50848f3bda58c340884a0a0071b3ba2559248d470e970362b918d4f
+DIST INIT.2014-06-06.tgz 385532 SHA256 73cc2f6a3edd6ffbfcf5002408f7b35c36000729306c6e60788e1ccbc481886f SHA512 94fd97fa069a2857202f7e12bbd920a1e18be13a3f64a3bb72dfdc78bc5db8d585e4123036f3d12fc8e5ce6ae5469831f7377189daf905debeb07034cf10196a WHIRLPOOL a759f435bba62337badb50f00b3760c0d34ae671868875317452bc53e79baabeaf55a943a8b80dff75b8e501500aa5fc68ed933819fd24af7dffcdb192260beb
+DIST INIT.2014-06-25.tgz 385531 SHA256 e73302b6ab2854421c960f179c3ac079f9e21f0362cfdec58476bda36c163f14 SHA512 9034cdf5b798c134472d786195d0f5d14e7e7a1f8226dcbccf962880cd59cd59d3a5597307587163f90a9187cce0232235cf79bcd66842044b2c624b335ba730 WHIRLPOOL 9e33c998c90878829e6e3007a3fa1b0b7d3128f4761a75630bb449e9e3e29b49c6c54e509c56a1e73119ff87aabc1a84108f4943928920745156d95abf2b0d20
+DIST ast-base.2011-02-08.tgz 6111018 SHA256 44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a SHA512 f8bfa1104778968dc66cc693da1100b624a7016f6d24281f401aec564ec25047b01473755ed55f19638b7060a7007ae8d1092c521f645147b0babfd359586e95 WHIRLPOOL 6510a55ca151d82e5b7fcb64ba32078fba50ebb70da1362f53052aeb3360cc4741789f6334e4d09731075c3b495c88fad3160653e6de0c6dcb915aedaeb48394
+DIST ast-base.2012-02-29.tgz 9068922 SHA256 08223dc93da5a8e3d1b46d772be16cdcfc11b6e41c00b696e8fcf7160b48541b SHA512 95cc909ecb5b2bbfae10a44650dfd1aabf2f2461e82f4c77137696a57c41361cded3e3c0697ab5cc9e63fb72645fe442f5fc32ca0a53370b5f43b396595c4d94 WHIRLPOOL f0324fd98b6f14e4001786620ccd56cf81e87dc68397d74fa214025da8cf605fe3f24d3f809aeef8d692287d898b57725769e77ce6f5d52ac24978bf8cd4671b
+DIST ast-base.2014-06-06.tgz 9605517 SHA256 c08c895f1412d80dc85227d9b9c77dbd55bedb586965972ebe14f6b0e5ac92db SHA512 265cd4763006471e4deb1ee79c6d668f7e56f2a721589054faa7b6fb103d65d963f9101c073f1b748be63d3195ef6dfbda2a3753d06de1d2517f8ed04cad3ff1 WHIRLPOOL 994f416cd9ffd19f3a14f5f6b27be265263541654f793143d896a91c86533928daf44b5154e1bcb01e8456ef3a0e0492f209dc8ca41cf77a110b45cbc3d4a19b
+DIST ast-base.2014-06-25.tgz 9609090 SHA256 58588b07b076f05dbbd5f4f095d5753309a8356ba1e5475262ce77d6bff42dae SHA512 3006dd187c6042798ffd6da5aad8d6340bf4fbad687338b2b9797556136966b65d90295eb267dba198a83ea5b651a9a339d9ff48179f3d7e25b3de76c41bf737 WHIRLPOOL b07c4809e729359d0ed613310f49fa391c199a225e4a3c589f9015af54d1159e199135ee4eadebd9d09f21f3131103550c1c17badc3a643943e3828df79d98d2
diff --git a/app-shells/ksh/files/ksh-prefix.patch b/app-shells/ksh/files/ksh-prefix.patch
new file mode 100644
index 000000000000..c97cbe333ca1
--- /dev/null
+++ b/app-shells/ksh/files/ksh-prefix.patch
@@ -0,0 +1,42 @@
+--- a/src/cmd/ksh93/data/msg.c
++++ b/src/cmd/ksh93/data/msg.c
+@@ -180,7 +180,7 @@
+ const char e_sptbnl[] = " \t\n";
+ const char e_tolower[] = "tolower";
+ const char e_toupper[] = "toupper";
+-const char e_defpath[] = "/bin:/usr/bin:";
++const char e_defpath[] = "@GENTOO_PORTAGE_EPREFIX@/bin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:";
+ const char e_defedit[] = _pth_ed;
+ const char e_unknown [] = "<command unknown>";
+ const char e_devnull[] = "/dev/null";
+@@ -188,24 +188,24 @@
+ const char e_supprompt[] = "# ";
+ const char e_stdprompt[] = "$ ";
+ const char e_profile[] = "$HOME/.profile";
+-const char e_sysprofile[] = "/etc/profile";
+-const char e_suidprofile[] = "/etc/suid_profile";
++const char e_sysprofile[] = "@GENTOO_PORTAGE_EPREFIX@/etc/profile";
++const char e_suidprofile[] = "@GENTOO_PORTAGE_EPREFIX@/etc/suid_profile";
+ #if SHOPT_SYSRC
+-const char e_sysrc[] = "/etc/ksh.kshrc";
++const char e_sysrc[] = "@GENTOO_PORTAGE_EPREFIX@/etc/ksh.kshrc";
+ #endif
+ #if SHOPT_BASH
+ #if SHOPT_SYSRC
+-const char e_bash_sysrc[] = "/etc/bash.bashrc";
++const char e_bash_sysrc[] = "@GENTOO_PORTAGE_EPREFIX@/etc/bash/bashrc";
+ #endif
+ const char e_bash_rc[] = "$HOME/.bashrc";
+ const char e_bash_login[] = "$HOME/.bash_login";
+ const char e_bash_logout[] = "$HOME/.bash_logout";
+ const char e_bash_profile[] = "$HOME/.bash_profile";
+ #endif
+-const char e_crondir[] = "/usr/spool/cron/atjobs";
++const char e_crondir[] = "@GENTOO_PORTAGE_EPREFIX@/usr/spool/cron/atjobs";
+ const char e_prohibited[] = "login setuid/setgid shells prohibited";
+ #if SHOPT_SUID_EXEC
+- const char e_suidexec[] = "/etc/suid_exec";
++ const char e_suidexec[] = "@GENTOO_PORTAGE_EPREFIX@/etc/suid_exec";
+ #endif /* SHOPT_SUID_EXEC */
+ const char hist_fname[] = "/.sh_history";
+ const char e_dot[] = ".";
diff --git a/app-shells/ksh/ksh-93.20110208.ebuild b/app-shells/ksh/ksh-93.20110208.ebuild
new file mode 100644
index 000000000000..35b4c3735f62
--- /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
+# $Id$
+
+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
+}
diff --git a/app-shells/ksh/ksh-93.20120229.ebuild b/app-shells/ksh/ksh-93.20120229.ebuild
new file mode 100644
index 000000000000..22f4edc9bd23
--- /dev/null
+++ b/app-shells/ksh/ksh-93.20120229.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs versionator prefix eutils
+
+DESCRIPTION="The Original Korn Shell, 1993 revision (ksh93)"
+HOMEPAGE="http://www.kornshell.com/"
+
+ksh_release() {
+ local v="$(get_version_component_range 2)"
+ echo "${v:0:4}-${v:4:2}-${v:6:2}"
+}
+
+SRC_URI="mirror://gentoo/INIT.$(ksh_release).tgz
+ http://dev.gentoo.org/~floppym/distfiles/INIT.$(ksh_release).tgz
+ mirror://gentoo/ast-base.$(ksh_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 ~amd64-linux ~x86-linux"
+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
+
+ epatch "${FILESDIR}"/${PN}-prefix.patch
+ eprefixify src/cmd/ksh93/data/msg.c
+}
+
+src_compile() {
+ tc-export AR CC LD NM
+ export CCFLAGS="${CFLAGS}"
+ sh bin/package only make ast-ksh SHELL="${EPREFIX}"/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
+}
diff --git a/app-shells/ksh/ksh-93.20140606.ebuild b/app-shells/ksh/ksh-93.20140606.ebuild
new file mode 100644
index 000000000000..c5d9b7897444
--- /dev/null
+++ b/app-shells/ksh/ksh-93.20140606.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs prefix eutils
+
+DESCRIPTION="The Original Korn Shell, 1993 revision (ksh93)"
+HOMEPAGE="http://www.kornshell.com/"
+
+KSH_PV=${PV:3:4}-${PV:7:2}-${PV:9:2}
+
+SRC_URI="http://dev.gentoo.org/~floppym/distfiles/INIT.${KSH_PV}.tgz
+ http://dev.gentoo.org/~floppym/distfiles/ast-base.${KSH_PV}.tgz"
+
+LICENSE="CPL-1.0 EPL-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+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
+
+ epatch "${FILESDIR}"/${PN}-prefix.patch
+ eprefixify src/cmd/ksh93/data/msg.c
+}
+
+src_compile() {
+ tc-export AR CC LD NM
+ export CCFLAGS="${CFLAGS}"
+ sh bin/package make ast-ksh SHELL=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
+}
diff --git a/app-shells/ksh/ksh-93.20140625.ebuild b/app-shells/ksh/ksh-93.20140625.ebuild
new file mode 100644
index 000000000000..b9f465b81c4c
--- /dev/null
+++ b/app-shells/ksh/ksh-93.20140625.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs prefix eutils
+
+DESCRIPTION="The Original Korn Shell, 1993 revision (ksh93)"
+HOMEPAGE="http://www.kornshell.com/"
+
+KSH_PV=${PV:3:4}-${PV:7:2}-${PV:9:2}
+
+SRC_URI="http://dev.gentoo.org/~floppym/distfiles/INIT.${KSH_PV}.tgz
+ http://dev.gentoo.org/~floppym/distfiles/ast-base.${KSH_PV}.tgz"
+
+LICENSE="CPL-1.0 EPL-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+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
+
+ epatch "${FILESDIR}"/${PN}-prefix.patch
+ eprefixify src/cmd/ksh93/data/msg.c
+}
+
+src_compile() {
+ tc-export AR CC LD NM
+ export CCFLAGS="${CFLAGS}"
+ sh bin/package flat only make ast-ksh SHELL=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)
+ into /
+ dobin bin/ksh
+ dosym ksh /bin/rksh
+ newman man/man1/sh.1 ksh.1
+}
diff --git a/app-shells/ksh/metadata.xml b/app-shells/ksh/metadata.xml
new file mode 100644
index 000000000000..0970fab1edee
--- /dev/null
+++ b/app-shells/ksh/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <longdescription lang="en">
+ The KornShell language was designed and developed by David G. Korn at
+ AT&amp;T Bell Laboratories. It is an interactive command language that
+ provides access to the UNIX system and to many other systems, on the
+ many different computers and workstations on which it is implemented.
+
+ ksh has the functionality of other scripting languages such as awk,
+ icon, perl, rexx, and tcl. For this and many other reasons, ksh is a
+ much better scripting language than any of the other popular shells.
+ The code size for ksh is larger than the Bourne shell or C shell
+ programs. The revised version is even larger.
+
+ In spite of its increased size, ksh provides better performance. You
+ can write programs to run faster with ksh than with either the Bourne
+ shell or the C shell, sometimes an order of magnitude faster. ksh has
+ evolved and matured with extensive user feedback. It has been used by
+ many thousands of people at AT&amp;T since 1982, and at many other
+ companies and universities.
+ </longdescription>
+</pkgmetadata>