/[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.1 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.1 2011/02/11 15:50:21 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
7ECVS_SERVER="anoncvs.mirbsd.org:/cvs" 7inherit eutils toolchain-funcs
8ECVS_MODULE="mksh"
9ECVS_USER="_anoncvs"
10ECVS_AUTH="ext"
11 8
9if [[ $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 )"
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
24
12DESCRIPTION="MirBSD KSH Shell" 25DESCRIPTION="MirBSD Korn Shell"
13HOMEPAGE="http://mirbsd.de/mksh" 26HOMEPAGE="http://mirbsd.de/mksh"
14ARC4_VERSION="1.14"
15LICENSE="BSD" 27LICENSE="BSD"
16SLOT="0" 28SLOT="0"
17KEYWORDS="" 29IUSE="static"
18IUSE=""
19DEPEND="app-arch/cpio"
20RDEPEND="" 30RDEPEND=""
21S="${WORKDIR}/${PN}" 31S="${WORKDIR}/${PN}"
22 32
23src_unpack() {
24 cvs_src_unpack
25}
26
27src_compile() { 33src_compile() {
28 tc-export CC 34 tc-export CC
29 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
30} 39}
31 40
32src_install() { 41src_install() {
33 exeinto /bin 42 exeinto /bin
34 doexe mksh || die 43 doexe mksh
35 doman mksh.1 || die 44 doman mksh.1
36 dodoc dot.mkshrc || die 45 dodoc dot.mkshrc
37} 46}
38 47
39src_test() { 48src_test() {
40 ./test.sh || die 49 ./test.sh || die
41} 50}

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

  ViewVC Help
Powered by ViewVC 1.1.20