/[gentoo-x86]/app-shells/mksh/mksh-48b.ebuild
Gentoo

Contents of /app-shells/mksh/mksh-48b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Feb 23 08:50:40 2014 UTC (10 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for ppc, wrt bug #500492

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 nimiux 1.2 # Copyright 1999-2014 Gentoo Foundation
2 patrick 1.1 # Distributed under the terms of the GNU General Public License v2
3 ago 1.4 # $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-48b.ebuild,v 1.3 2014/02/20 20:39:33 ago Exp $
4 patrick 1.1
5     EAPI=4
6    
7     inherit eutils toolchain-funcs
8    
9     DESCRIPTION="MirBSD KSH Shell"
10     HOMEPAGE="http://mirbsd.de/mksh"
11     SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz"
12     LICENSE="BSD"
13     SLOT="0"
14 ago 1.4 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
15 patrick 1.1 IUSE="static"
16     DEPEND="static? ( dev-libs/klibc )"
17     RDEPEND=""
18     S="${WORKDIR}/${PN}"
19    
20     src_compile() {
21     tc-export CC
22     # we want to build static with klibc
23     if use static; then unset CC; export CC="/usr/bin/klcc"; export LDSTATIC="-static"; fi
24     export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
25     # we can't assume lto existing/enabled, so we add a fallback
26     sh Build.sh -r -c lto || sh Rebuild.sh || die
27     }
28    
29     src_install() {
30     exeinto /bin
31     doexe mksh
32     doman mksh.1
33     dodoc dot.mkshrc
34     }
35    
36     src_test() {
37     ./test.sh || die
38     }

  ViewVC Help
Powered by ViewVC 1.1.20