From 4e684178bdf55554af8dbe64c49d125caf44dc95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Mon, 13 Feb 2017 01:57:08 +0100 Subject: [PATCH] [dev-python/pyspf] add python3_5 --- dev-python/pyspf/Manifest | 1 + dev-python/pyspf/pyspf-2.0.12-r1.ebuild | 35 +++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 dev-python/pyspf/Manifest create mode 100644 dev-python/pyspf/pyspf-2.0.12-r1.ebuild diff --git a/dev-python/pyspf/Manifest b/dev-python/pyspf/Manifest new file mode 100644 index 0000000..e07ec14 --- /dev/null +++ b/dev-python/pyspf/Manifest @@ -0,0 +1 @@ +DIST pyspf-2.0.12t.tar.gz 67189 SHA256 8aa21ba0e3aff8a4e8ad8f586c500a5d1f9c4c902c3f11bcc107465857cd41a2 SHA512 1ad23b5dea4aa8edd03b3fd9fc675685bcb0e216474534563c55988df040abd4e2bbc8488bba80d26466877e8b2ec88cbadc2f67eb8c4bf6f26f975d8af81d8d WHIRLPOOL 9159c23a0f9b56e6069f4cf35cadd5af6ab017f8bee4e7d5f98bf94c2cd0a336660d95f35a81c769b19c96235500760e6a9bde504b3e5c9f1419a05d19913d3e diff --git a/dev-python/pyspf/pyspf-2.0.12-r1.ebuild b/dev-python/pyspf/pyspf-2.0.12-r1.ebuild new file mode 100644 index 0000000..7ad33f3 --- /dev/null +++ b/dev-python/pyspf/pyspf-2.0.12-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +PYTHON_REQ_USE="ipv6?" +inherit distutils-r1 + +DESCRIPTION="Python implementation of the Sender Policy Framework (SPF) protocol" +HOMEPAGE="https://pypi.python.org/pypi/pyspf" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}t.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ipv6 test" + +# >=python-3.3 comes with the built-in ipaddress module +RDEPEND="dev-python/authres[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/ipaddr-2.1.10[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/pydns:2[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/pydns:3[${PYTHON_USEDEP}]' 'python3*')" + +DEPEND="test? ( ${RDEPEND} + dev-python/pyyaml[${PYTHON_USEDEP}] )" + +REQUIRED_USE="test? ( ipv6 )" + +python_test() { + pushd test &> /dev/null + "${PYTHON}" testspf.py || die + popd &> /dev/null +}