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.
gentoo-overlay/dev-python/python-neutronclient/python-neutronclient-2.2.3....

47 lines
1.5 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-neutronclient/python-neutronclient-2.2.3.ebuild,v 1.1 2013/09/13 20:36:10 prometheanfire Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="A client for the OpenStack Quantum API"
HOMEPAGE="https://launchpad.net/neutron"
MY_PN="python-quantumclient"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="virtual/python-argparse[${PYTHON_USEDEP}]
>=dev-python/pbr-0.5.16[${PYTHON_USEDEP}]
<dev-python/pbr-0.6[${PYTHON_USEDEP}]
>=dev-python/cliff-1.4[${PYTHON_USEDEP}]
dev-python/httplib2[${PYTHON_USEDEP}]
>=dev-python/iso8601-0.1.4[${PYTHON_USEDEP}]
>=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}]
>=dev-python/d2to1-0.2.10[${PYTHON_USEDEP}]
<dev-python/d2to1-0.3[${PYTHON_USEDEP}]
>=dev-python/prettytable-0.6[${PYTHON_USEDEP}]
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
dev-python/pyparsing[${PYTHON_USEDEP}]"
src_prepare() {
sed -i '/pyparsing/d' "${S}/requirements.txt"
distutils-r1_python_prepare_all
}
python_install() {
distutils-r1_python_install
cd "${D%/}$(python_get_sitedir)" || die
local egg=( python_quantumclient*.egg-info )
#[[ -f ${egg[0]} ]] || die "python_quantumclient*.egg-info not found"
ln -s "${egg[0]}" "${egg[0]/quantum/neutron}" || die
}