dev-python/raspberrypi-gpio: new package
This commit is contained in:
parent
1cb10d8860
commit
23037557fc
2 changed files with 38 additions and 0 deletions
36
dev-python/raspberrypi-gpio/raspberrypi-gpio-0.6.3.ebuild
Normal file
36
dev-python/raspberrypi-gpio/raspberrypi-gpio-0.6.3.ebuild
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Copyright 2015 Stuart Shelton
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue