blob: af870746dd7d947cc8a11c2fc12fed3dabb0c193 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-iptables/python-iptables-0.2.0.ebuild,v 1.1 2013/11/14 22:27:02 chutzpah Exp $
EAPI=5
PYTHON_COMPAT=(python2_7)
inherit distutils-r1
DESCRIPTION="Python bindings for iptables."
HOMEPAGE="https://github.com/ldx/python-iptables"
SRC_URI="https://github.com/ldx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="net-firewall/iptables"
RDEPEND="${DEPEND}"
# tests manipulate live iptables rules
RESTRICT=test
PATCHES=(
"${FILESDIR}/${P}-tests.patch"
)
python_test() {
${PYTHON} test.py
}
|