2018-08-26 11:48:37 +00:00
|
|
|
# Copyright 2015 Stuart Shelton
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
2020-05-16 09:12:29 +00:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} )
|
2018-08-26 11:48:37 +00:00
|
|
|
|
|
|
|
inherit distutils-r1 eutils
|
|
|
|
|
|
|
|
MY_P=${P/raspberrypi-gpio/RPi.GPIO}
|
|
|
|
|
|
|
|
DESCRIPTION="A collection of libraries to process XML with Python"
|
|
|
|
HOMEPAGE="http://pyxml.sourceforge.net/"
|
|
|
|
SRC_URI="https://downloads.sourceforge.net/project/raspberry-gpio-python/RPi.GPIO-${PV}.tar.gz"
|
|
|
|
RESTRICT="mirror
|
|
|
|
test"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~arm"
|
|
|
|
IUSE="doc"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
cd test || die
|
|
|
|
"${PYTHON}" test.py || die "Tests fail with ${EPYTHON}"
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
|
|
|
|
if use doc; then
|
|
|
|
dodoc README.txt
|
|
|
|
dodoc CHANGELOG.txt
|
|
|
|
fi
|
|
|
|
}
|