| 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/sys-apps/checkpolicy/checkpolicy-2.1.11.ebuild,v 1.1 2012/10/09 20:04:47 swift Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.1.11.ebuild,v 1.2 2012/10/13 16:47:08 swift Exp $ |
| 4 | |
4 | |
| 5 | inherit toolchain-funcs |
5 | inherit toolchain-funcs eutils |
| 6 | |
6 | |
| 7 | SEPOL_VER="2.1.8" |
7 | SEPOL_VER="2.1.8" |
| 8 | SEMNG_VER="2.1.9" |
8 | SEMNG_VER="2.1.9" |
| 9 | |
9 | |
| 10 | DESCRIPTION="SELinux policy compiler" |
10 | DESCRIPTION="SELinux policy compiler" |
| … | |
… | |
| 25 | |
25 | |
| 26 | src_compile() { |
26 | src_compile() { |
| 27 | emake CC="$(tc-getCC)" YACC="bison -y" || die |
27 | emake CC="$(tc-getCC)" YACC="bison -y" || die |
| 28 | } |
28 | } |
| 29 | |
29 | |
|
|
30 | src_prepare() { |
|
|
31 | epatch_user |
|
|
32 | } |
|
|
33 | |
| 30 | src_install() { |
34 | src_install() { |
| 31 | emake DESTDIR="${D}" install || die |
35 | emake DESTDIR="${D}" install || die |
| 32 | |
36 | |
| 33 | if use debug; then |
37 | if use debug; then |
| 34 | dobin "${S}/test/dismod" |
38 | dobin "${S}/test/dismod" |