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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20