blob: 8256e2e9bda38f43c559daab236dc195f65abdcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.6.ebuild,v 1.2 2009/09/20 22:35:02 pebenito Exp $
inherit java-pkg-opt-2 autotools
DESCRIPTION="SELinux policy tools"
HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml"
SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${PN}-${PV}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X debug java python"
DEPEND=">=sys-libs/libsepol-2.0.37
sys-libs/libselinux
sys-devel/bison
sys-devel/flex
>=dev-db/sqlite-3.2
dev-libs/libxml2
dev-util/pkgconfig
java? (
>=dev-lang/swig-1.3.28
>=virtual/jdk-1.4
)
python? (
>=dev-lang/python-2.4
>=dev-lang/swig-1.3.28
)
X? (
>=dev-lang/tk-8.4.9
>=gnome-base/libglade-2.0
>=x11-libs/gtk+-2.8
)"
RDEPEND=">=sys-libs/libsepol-2.0.37
sys-libs/libselinux
>=dev-db/sqlite-3.2
dev-libs/libxml2
java? ( >=virtual/jre-1.4 )
python? ( >=dev-lang/python-2.4 )
X? (
>=dev-lang/tk-8.4.9
>=dev-tcltk/bwidget-1.8
>=gnome-base/libglade-2.0
>=x11-libs/gtk+-2.8
)"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/setools-3.3.6-headers.diff"
eautomake
}
src_compile() {
econf \
--with-java-prefix=${JAVA_HOME} \
--disable-selinux-check \
--disable-bwidget-check \
$(use_enable python swig-python) \
$(use_enable java swig-java) \
$(use_enable X swig-tcl) \
$(use_enable X gui) \
$(use_enable debug)
# work around swig c99 issues. it does not require
# c99 anyway.
sed -i -e 's/-std=gnu99//' "${S}/libseaudit/swig/python/Makefile"
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die "install failed."
}
|