| 1 | # Copyright 1999-2012 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.3 2012/09/22 20:04:21 ottxor 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 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | |
6 | |
| 7 | inherit eutils toolchain-funcs |
7 | inherit eutils toolchain-funcs |
| 8 | |
8 | |
| … | |
… | |
| 30 | S="${WORKDIR}/${PN}" |
30 | S="${WORKDIR}/${PN}" |
| 31 | |
31 | |
| 32 | src_compile() { |
32 | src_compile() { |
| 33 | tc-export CC |
33 | tc-export CC |
| 34 | export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" |
34 | export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" |
| 35 | sh Build.sh -r || die |
35 | sh Build.sh -r -c lto || sh Rebuild.sh || die |
| 36 | } |
36 | } |
| 37 | |
37 | |
| 38 | src_install() { |
38 | src_install() { |
| 39 | exeinto /bin |
39 | exeinto /bin |
| 40 | doexe mksh |
40 | doexe mksh |