blob: 18beda2ed881f2e81920862dbbe04d9dbe4a6b1f (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/IPTables-libiptc/IPTables-libiptc-0.520.0.ebuild,v 1.1 2013/07/10 16:19:00 pinkbyte Exp $
EAPI=5
MODULE_AUTHOR=HAWK
MODULE_VERSION=0.52
inherit perl-module toolchain-funcs
DESCRIPTION="Perl extension for iptables libiptc library"
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~pinkbyte/distfiles/${PN}/${P}-support-for-iptables-1.4.12.patch.bz2
http://dev.gentoo.org/~pinkbyte/distfiles/${PN}/${P}-support-for-iptables-1.4.16.2.patch.bz2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# package dependency on iptables is very fragile
# see https://rt.cpan.org/Public/Bug/Display.html?id=70639
RDEPEND="<net-firewall/iptables-1.4.18:="
DEPEND="${RDEPEND}"
PATCHES=(
"${WORKDIR}/${P}-support-for-iptables-1.4.12.patch"
"${WORKDIR}/${P}-support-for-iptables-1.4.16.2.patch"
"${FILESDIR}/${P}-respect-cflags.patch"
)
# Most of tests needs root access, but they do not fail without it
SRC_TEST="do"
src_prepare() {
tc-export CC
perl-module_src_prepare
}
|