/[gentoo-x86]/dev-python/python-iptables/python-iptables-0.8.0.ebuild
Gentoo

Contents of /dev-python/python-iptables/python-iptables-0.8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jun 15 21:44:17 2015 UTC (5 years ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Version bump. Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-iptables/python-iptables-0.7.0.ebuild,v 1.1 2015/01/22 02:21:40 chutzpah Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7 inherit distutils-r1
8
9 DESCRIPTION="Python bindings for iptables"
10 HOMEPAGE="https://github.com/ldx/python-iptables"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
12
13 LICENSE="Apache-2.0"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="doc"
17
18 DEPEND="net-firewall/iptables
19 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
20 RDEPEND="${DEPEND}"
21
22 # tests manipulate live iptables rules, so disable them by default
23 RESTRICT=test
24
25 python_prepare_all() {
26 # Prevent un-needed d'loading during doc build
27 sed -e "s/, 'sphinx.ext.intersphinx'//" -i doc/conf.py || die
28 distutils-r1_python_prepare_all
29 }
30
31 python_compile_all() {
32 use doc && emake -C doc html
33 }
34
35 python_test() {
36 ${PYTHON} test.py || die "tests fail with ${EPYTHON}"
37 }
38
39 python_install_all() {
40 use doc && local HTML_DOCS=( doc/_build/html/. )
41 distutils-r1_python_install_all
42 }

  ViewVC Help
Powered by ViewVC 1.1.20