34 lines
872 B
Bash
34 lines
872 B
Bash
# Copyright 2014 Michael Greene
|
|
# Distributed under the terms of the BSD 3-Clause License
|
|
# $HEADER: $
|
|
|
|
EAPI=5
|
|
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Pretty Good Privacy for Python - a pure Python OpenPGP implementation."
|
|
HOMEPAGE="https://github.com/SecurityInnovation/PGPy"
|
|
SRC_URI="mirror://pypi/P/PGPy/PGPy-${PV}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE=""
|
|
|
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
RDEPEND="dev-python/singledispatch[${PYTHON_USEDEP}]
|
|
>=dev-python/six-1.7.2[${PYTHON_USEDEP}]
|
|
>=dev-python/cryptography-0.5.4[${PYTHON_USEDEP}]
|
|
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_2 python3_3)"
|
|
DOCS=( README.rst )
|
|
|
|
src_unpack() {
|
|
if [ "${A}" != "" ]; then
|
|
unpack ${A}
|
|
fi
|
|
|
|
cd "${WORKDIR}"
|
|
mv PGPy-${PV} pgpy-${PV}
|
|
}
|