2019-04-18 08:49:42 +03:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2016-03-19 14:07:39 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
2019-04-18 08:49:42 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 python3_{5,6} )
|
2016-03-19 14:07:39 +03:00
|
|
|
|
2016-12-29 08:39:20 +03:00
|
|
|
inherit distutils-r1 xdg-utils
|
2016-03-19 14:07:39 +03:00
|
|
|
|
2017-07-11 09:00:46 +03:00
|
|
|
MYPV=${PV/_/}
|
|
|
|
S=${WORKDIR}/${PN}-${MYPV}
|
|
|
|
|
2016-03-19 14:07:39 +03:00
|
|
|
DESCRIPTION="Helpers for Astropy and Affiliated packages"
|
|
|
|
HOMEPAGE="https://github.com/astropy/astropy-helpers"
|
2017-07-11 09:00:46 +03:00
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MYPV}.tar.gz"
|
2016-03-19 14:07:39 +03:00
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
2016-06-10 09:44:59 +03:00
|
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
2016-03-19 14:07:39 +03:00
|
|
|
|
|
|
|
python_prepare_all() {
|
2017-07-11 09:00:46 +03:00
|
|
|
sed -e '/import ah_bootstrap/d' \
|
|
|
|
-i setup.py || die "Removing ah_bootstrap failed"
|
2016-12-29 08:39:20 +03:00
|
|
|
xdg_environment_reset
|
2016-03-19 14:07:39 +03:00
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|