/[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.4 Revision 1.5
1# Copyright 1999-2012 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.4 2012/12/01 03:12:33 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
5EAPI=4 5EAPI=4
6 6
7inherit eutils toolchain-funcs 7inherit eutils toolchain-funcs
8 8
11 ECVS_SERVER="anoncvs.mirbsd.org:/cvs" 11 ECVS_SERVER="anoncvs.mirbsd.org:/cvs"
12 ECVS_MODULE="mksh" 12 ECVS_MODULE="mksh"
13 ECVS_USER="_anoncvs" 13 ECVS_USER="_anoncvs"
14 ECVS_AUTH="ext" 14 ECVS_AUTH="ext"
15 KEYWORDS="" 15 KEYWORDS=""
16 DEPEND="static? ( dev-libs/klibc )"
16else 17else
17 inherit unpacker 18 inherit unpacker
18 DEPEND="app-arch/cpio" 19 DEPEND="app-arch/cpio
20 static? ( dev-libs/klibc )"
19 SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz" 21 SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz"
20 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux" 22 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
21fi 23fi
22 24
23DESCRIPTION="MirBSD Korn Shell" 25DESCRIPTION="MirBSD Korn Shell"
24HOMEPAGE="http://mirbsd.de/mksh" 26HOMEPAGE="http://mirbsd.de/mksh"
25LICENSE="BSD" 27LICENSE="BSD"
26SLOT="0" 28SLOT="0"
27IUSE="" 29IUSE="static"
28DEPEND="${DEPEND}"
29RDEPEND="" 30RDEPEND=""
30S="${WORKDIR}/${PN}" 31S="${WORKDIR}/${PN}"
31 32
32src_compile() { 33src_compile() {
33 tc-export CC 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
34 export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" 37 export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
35 sh Build.sh -r -c lto || sh Rebuild.sh || die 38 sh Build.sh -r -c lto || sh Rebuild.sh || die
36} 39}
37 40
38src_install() { 41src_install() {

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

  ViewVC Help
Powered by ViewVC 1.1.20