/[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.4
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.4 2012/12/01 03:12:33 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=""
16else
17 inherit unpacker
18 DEPEND="app-arch/cpio"
19 SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz"
20 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
21fi
11 22
12DESCRIPTION="MirBSD Korn Shell" 23DESCRIPTION="MirBSD Korn Shell"
13HOMEPAGE="http://mirbsd.de/mksh" 24HOMEPAGE="http://mirbsd.de/mksh"
14LICENSE="BSD" 25LICENSE="BSD"
15SLOT="0" 26SLOT="0"
16KEYWORDS=""
17IUSE="" 27IUSE=""
18DEPEND="" 28DEPEND="${DEPEND}"
19RDEPEND="" 29RDEPEND=""
20S="${WORKDIR}/${PN}" 30S="${WORKDIR}/${PN}"
21 31
22src_unpack() {
23 cvs_src_unpack
24}
25
26src_compile() { 32src_compile() {
27 tc-export CC 33 tc-export CC
28 sh Build.sh -r || die 34 export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
35 sh Build.sh -r -c lto || sh Rebuild.sh || die
29} 36}
30 37
31src_install() { 38src_install() {
32 exeinto /bin 39 exeinto /bin
33 doexe mksh || die 40 doexe mksh
34 doman mksh.1 || die 41 doman mksh.1
35 dodoc dot.mkshrc || die 42 dodoc dot.mkshrc
36} 43}
37 44
38src_test() { 45src_test() {
39 ./test.sh || die 46 ./test.sh || die
40} 47}

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

  ViewVC Help
Powered by ViewVC 1.1.20