/[gentoo-x86]/app-shells/mksh/mksh-40f.ebuild
Gentoo

Contents of /app-shells/mksh/mksh-40f.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 22 20:04:21 2012 UTC (22 months, 4 weeks ago) by ottxor
Branch: MAIN
Changes since 1.1: +11 -8 lines
added prefix support (bug #432262)

(Portage version: 2.2.0_alpha131/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-40f.ebuild,v 1.1 2012/04/07 00:49:50 patrick Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs unpacker
8
9 DESCRIPTION="MirBSD KSH Shell"
10 HOMEPAGE="http://mirbsd.de/mksh"
11 ARC4_VERSION="1.14"
12 SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz"
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
16 IUSE=""
17 DEPEND="app-arch/cpio"
18 RDEPEND=""
19 S="${WORKDIR}/${PN}"
20
21 src_prepare(){
22 epatch "${FILESDIR}/${P}-etc-configurable.patch"
23 }
24
25 src_compile() {
26 tc-export CC
27 export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
28 # we can't assume lto existing/enabled, so we add a fallback
29 sh Build.sh -r -c lto || sh Rebuild.sh || die
30 }
31
32 src_install() {
33 exeinto /bin
34 doexe mksh
35 doman mksh.1
36 dodoc dot.mkshrc
37 }
38
39 src_test() {
40 ./test.sh || die
41 }

  ViewVC Help
Powered by ViewVC 1.1.20