/[gentoo-x86]/app-shells/mksh/mksh-44-r1.ebuild
Gentoo

Contents of /app-shells/mksh/mksh-44-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Apr 26 12:41:23 2013 UTC (16 months, 4 weeks ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #467318

(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 7194459F)

1 patrick 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.3 # $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-44-r1.ebuild,v 1.2 2013/04/26 12:40:54 ago Exp $
4 patrick 1.1
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}.tgz"
13     LICENSE="BSD"
14     SLOT="0"
15 ago 1.3 KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
16 patrick 1.1 IUSE="static"
17     DEPEND="app-arch/cpio
18     static? ( dev-libs/klibc )"
19     RDEPEND=""
20     S="${WORKDIR}/${PN}"
21    
22     src_compile() {
23     tc-export CC
24     # we want to build static with klibc
25     if use static; then unset CC; export CC="/usr/bin/klcc"; export LDSTATIC="-static"; fi
26     export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
27     # we can't assume lto existing/enabled, so we add a fallback
28     sh Build.sh -r -c lto || sh Rebuild.sh || die
29     }
30    
31     src_install() {
32     exeinto /bin
33     doexe mksh
34     doman mksh.1
35     dodoc dot.mkshrc
36     }
37    
38     src_test() {
39     ./test.sh || die
40     }

  ViewVC Help
Powered by ViewVC 1.1.20