blob: 7f29e225bb005891c7cce8dc969f678b2ad3ddb2 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libfwbuilder/libfwbuilder-2.1.18.ebuild,v 1.5 2009/01/07 20:14:21 ranger Exp $
EAPI=1
inherit eutils qt3
DESCRIPTION="Firewall Builder 2.1 API library and compiler framework"
HOMEPAGE="http://www.fwbuilder.org/"
SRC_URI="mirror://sourceforge/fwbuilder/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="snmp ssl stlport"
DEPEND=">=dev-libs/libxml2-2.4.10
>=dev-libs/libxslt-1.0.7
snmp? ( net-analyzer/net-snmp )
ssl? ( dev-libs/openssl )
stlport? ( dev-libs/STLport )
x11-libs/qt:3"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-gcc43.patch"
}
src_compile() {
# we'll use our eqmake instead of bundled script to process qmake files
sed -i -e 's:^. ./runqmake.sh$:echo:' configure \
|| die "sed configure failed"
econf $(use_with ssl openssl) \
$(use_with snmp ucdsnmp) \
$(use_with stlport stlport) \
|| die "configure failed"
# use eqmake to generate Makefiles
eqmake3 ${PN}.pro
for subdir in src src/fwbuilder src/fwcompiler src/test src/confscript \
etc doc migration; do
eqmake3 "${subdir}/${subdir##*/}.pro" -o ${subdir}/Makefile
done
emake || die "Compilation failed"
}
src_install() {
emake install DDIR="${D}" || die "Install failed"
cd "${D}"/usr/share/doc/${PF}
rm COPYING INSTALL
prepalldocs
}
|