updated ebuild while preparing to submit it

[skip ci]
This commit is contained in:
Michael Greene
2016-04-22 18:02:36 -07:00
parent 7c6f01e7af
commit 9d93ae4970

View File

@@ -1,34 +1,43 @@
# Copyright 2014 Michael Greene
# Distributed under the terms of the BSD 3-Clause License
# $HEADER: $
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
EAPI=6
PYTHON_COMPAT=( python{2_7,3_{3,4,5}} pypy )
inherit distutils-r1
if [[ "${PV}" == "0.4.0" ]]; then
# PGPy 0.4.0's filename is slightly different because of difficulties with PyPI when uploading
MY_PV="${PV}a"
fi
DESCRIPTION="Pretty Good Privacy for Python - a pure Python OpenPGP implementation."
HOMEPAGE="https://github.com/SecurityInnovation/PGPy"
SRC_URI="https://pypi.python.org/packages/0a/2c/bfe57ac97d31fcd7172df43770d68bab1fbd38d629448ec8013f4714e779/PGPy-0.4.0a.tar.gz"
HOMEPAGE="https://github.com/SecurityInnovation/PGPy/"
SRC_URI="mirror://pypi/P/PGPy/PGPy-${MY_PV-$PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="dev-python/singledispatch[${PYTHON_USEDEP}]
dev-python/pyasn1[${PYTHON_USEDEP}]
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
>=dev-python/cryptography-1.1.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3)"
RDEPEND="
dev-python/singledispatch[${PYTHON_USEDEP}]
dev-python/pyasn1[${PYTHON_USEDEP}]
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
>=dev-python/cryptography-1.1.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3)"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
DOCS=( README.rst )
src_unpack() {
if [ "${A}" != "" ]; then
unpack ${A}
fi
if [ "${A}" != "" ]; then
unpack ${A}
fi
cd "${WORKDIR}"
mv PGPy-${PV} pgpy-${PV}
cd "${WORKDIR}"
mv PGPy-${PV} ${P}
}