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

Contents of /app-shells/mksh/mksh-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Apr 7 06:05:24 2013 UTC (15 months, 2 weeks ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +8 -5 lines
Adding static useflag and klibc dependency as per upstream suggestion

(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-9999.ebuild,v 1.4 2012/12/01 03:12:33 patrick Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 if [[ $PV = 9999 ]]; then
10 inherit cvs
11 ECVS_SERVER="anoncvs.mirbsd.org:/cvs"
12 ECVS_MODULE="mksh"
13 ECVS_USER="_anoncvs"
14 ECVS_AUTH="ext"
15 KEYWORDS=""
16 DEPEND="static? ( dev-libs/klibc )"
17 else
18 inherit unpacker
19 DEPEND="app-arch/cpio
20 static? ( dev-libs/klibc )"
21 SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz"
22 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
23 fi
24
25 DESCRIPTION="MirBSD Korn Shell"
26 HOMEPAGE="http://mirbsd.de/mksh"
27 LICENSE="BSD"
28 SLOT="0"
29 IUSE="static"
30 RDEPEND=""
31 S="${WORKDIR}/${PN}"
32
33 src_compile() {
34 tc-export CC
35 # we want to build static with klibc
36 if use static; then unset CC; export CC="/usr/bin/klcc"; export LDSTATIC="-static"; fi
37 export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
38 sh Build.sh -r -c lto || sh Rebuild.sh || die
39 }
40
41 src_install() {
42 exeinto /bin
43 doexe mksh
44 doman mksh.1
45 dodoc dot.mkshrc
46 }
47
48 src_test() {
49 ./test.sh || die
50 }

  ViewVC Help
Powered by ViewVC 1.1.20