You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycryptopp/pycryptopp-0.6.0.ebuild,v 1.4 2014/08/14 16:36:00 phajdan.jr Exp $
|
|
|
|
EAPI="5"
|
|
PYTHON_COMPAT=( python{2_6,2_7} )
|
|
|
|
inherit distutils-r1 vcs-snapshot
|
|
|
|
NUM="1206569328141510525648634803928199668821045408958"
|
|
MY_P="${P}.${NUM}"
|
|
|
|
DESCRIPTION="Python wrappers for a few algorithms from the Crypto++ library"
|
|
HOMEPAGE="http://tahoe-lafs.org/trac/pycryptopp http://pypi.python.org/pypi/pycryptopp"
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="dev-libs/crypto++"
|
|
DEPEND="${RDEPEND}
|
|
dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
|
|
DOCS="NEWS.rst"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
python_prepare_all() {
|
|
# Don't install license files
|
|
sed -i -e "/data_files=data_files,/d" setup.py || die
|
|
|
|
distutils-r1_python_prepare_all
|
|
}
|
|
|
|
python_compile() {
|
|
# use system crypto++ library
|
|
distutils-r1_python_compile --disable-embedded-cryptopp
|
|
}
|
|
|
|
python_test() {
|
|
esetup.py test
|
|
}
|