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

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

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

Revision 1.2 Revision 1.5
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2013 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/mksh-9999.ebuild,v 1.2 2011/02/13 00:22:39 patrick Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-9999.ebuild,v 1.5 2013/04/07 06:05:24 patrick Exp $
4 4
5inherit eutils cvs 5EAPI=4
6 6
7inherit eutils toolchain-funcs
8
9if [[ $PV = 9999 ]]; then
10 inherit cvs
7ECVS_SERVER="anoncvs.mirbsd.org:/cvs" 11 ECVS_SERVER="anoncvs.mirbsd.org:/cvs"
8ECVS_MODULE="mksh" 12 ECVS_MODULE="mksh"
9ECVS_USER="_anoncvs" 13 ECVS_USER="_anoncvs"
10ECVS_AUTH="ext" 14 ECVS_AUTH="ext"
15 KEYWORDS=""
16 DEPEND="static? ( dev-libs/klibc )"
17else
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"
23fi
11 24
12DESCRIPTION="MirBSD Korn Shell" 25DESCRIPTION="MirBSD Korn Shell"
13HOMEPAGE="http://mirbsd.de/mksh" 26HOMEPAGE="http://mirbsd.de/mksh"
14LICENSE="BSD" 27LICENSE="BSD"
15SLOT="0" 28SLOT="0"
16KEYWORDS="" 29IUSE="static"
17IUSE=""
18DEPEND=""
19RDEPEND="" 30RDEPEND=""
20S="${WORKDIR}/${PN}" 31S="${WORKDIR}/${PN}"
21 32
22src_unpack() {
23 cvs_src_unpack
24}
25
26src_compile() { 33src_compile() {
27 tc-export CC 34 tc-export CC
28 sh Build.sh -r || die 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
29} 39}
30 40
31src_install() { 41src_install() {
32 exeinto /bin 42 exeinto /bin
33 doexe mksh || die 43 doexe mksh
34 doman mksh.1 || die 44 doman mksh.1
35 dodoc dot.mkshrc || die 45 dodoc dot.mkshrc
36} 46}
37 47
38src_test() { 48src_test() {
39 ./test.sh || die 49 ./test.sh || die
40} 50}

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

  ViewVC Help
Powered by ViewVC 1.1.20