summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/mksh/mksh-40f.ebuild')
-rw-r--r--app-shells/mksh/mksh-40f.ebuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/app-shells/mksh/mksh-40f.ebuild b/app-shells/mksh/mksh-40f.ebuild
index 0766b6fb620e..ec7056d7dd2d 100644
--- a/app-shells/mksh/mksh-40f.ebuild
+++ b/app-shells/mksh/mksh-40f.ebuild
@@ -1,8 +1,10 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-40f.ebuild,v 1.1 2012/04/07 00:49:50 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-40f.ebuild,v 1.2 2012/09/22 20:04:21 ottxor Exp $
-inherit eutils
+EAPI=4
+
+inherit eutils toolchain-funcs unpacker
DESCRIPTION="MirBSD KSH Shell"
HOMEPAGE="http://mirbsd.de/mksh"
@@ -10,27 +12,28 @@ ARC4_VERSION="1.14"
SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND="app-arch/cpio"
RDEPEND=""
S="${WORKDIR}/${PN}"
-src_unpack() {
- gzip -dc "${DISTDIR}/${PN}-R${PV}.cpio.gz" | cpio -mid
+src_prepare(){
+ epatch "${FILESDIR}/${P}-etc-configurable.patch"
}
src_compile() {
tc-export CC
+ export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
# we can't assume lto existing/enabled, so we add a fallback
sh Build.sh -r -c lto || sh Rebuild.sh || die
}
src_install() {
exeinto /bin
- doexe mksh || die
- doman mksh.1 || die
- dodoc dot.mkshrc || die
+ doexe mksh
+ doman mksh.1
+ dodoc dot.mkshrc
}
src_test() {