# 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.6-r2.ebuild,v 1.2 2013/09/26 00:14:50 floppym Exp $ EAPI=5 PYTHON_COMPAT=( python2_7 ) inherit distutils-r1 DESCRIPTION="A client for the OpenStack Quantum API" HOMEPAGE="https://launchpad.net/neutron" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" 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/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}]" python_install() { distutils-r1_python_install #stupid stupid local SITEDIR="${D%/}$(python_get_sitedir)" || die cd "${SITEDIR}" || die local egg=( python_neutronclient*.egg-info ) #[[ -f ${egg[0]} ]] || die "python_quantumclient*.egg-info not found" ln -s "${egg[0]}" "${egg[0]/neutron/quantum}" || die ln -s neutronclient quantumclient || die ln -s neutron quantumclient/quantum || die }