Lines 1-6
Link Here
|
1 |
# Copyright 1999-2015 Gentoo Foundation |
1 |
# Copyright 1999-2014 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-50d-r1.ebuild,v 1.1 2015/01/18 01:44:25 patrick Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
Lines 12-18
Link Here
|
12 |
LICENSE="BSD" |
12 |
LICENSE="BSD" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
14 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
15 |
IUSE="static" |
15 |
IUSE="static lto" |
16 |
DEPEND="static? ( dev-libs/klibc )" |
16 |
DEPEND="static? ( dev-libs/klibc )" |
17 |
RDEPEND="" |
17 |
RDEPEND="" |
18 |
S="${WORKDIR}/${PN}" |
18 |
S="${WORKDIR}/${PN}" |
Lines 25-33
Link Here
|
25 |
export CC="/usr/bin/klcc" |
25 |
export CC="/usr/bin/klcc" |
26 |
export LDSTATIC="-static" |
26 |
export LDSTATIC="-static" |
27 |
fi |
27 |
fi |
|
|
28 |
|
29 |
local cm |
30 |
if use lto ; then |
31 |
cm='lto' |
32 |
fi |
28 |
export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" |
33 |
export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" |
29 |
# we can't assume lto existing/enabled, so we add a fallback |
34 |
# we can't assume lto existing/enabled, so we add a fallback |
30 |
sh Build.sh -r -c lto || sh Rebuild.sh || die |
35 |
sh Build.sh -r -c ${cm:-combine} || sh Rebuild.sh || die |
31 |
} |
36 |
} |
32 |
|
37 |
|
33 |
src_install() { |
38 |
src_install() { |