diff --git a/dev-python/raspberrypi-gpio/Manifest b/dev-python/raspberrypi-gpio/Manifest new file mode 100644 index 0000000..e61a1f5 --- /dev/null +++ b/dev-python/raspberrypi-gpio/Manifest @@ -0,0 +1,2 @@ +DIST RPi.GPIO-0.6.3.tar.gz 27598 BLAKE2B d4cb7cd28ddc4252f2c267d82bc1913b309c1135b78f2db36a29c059728e8eccd76c5285480896d637aa8afb7c10064f67a830b15a964dad75006583db7eb398 SHA512 8e011b147e55449a0bec59feeddd9b9a6f3a9526f6f731f6a79e927dcc1cc92b48d66b65de67c4f63c076c424c043547ecbd094c7d250b8b336182566fe20905 +EBUILD raspberrypi-gpio-0.6.3.ebuild 730 BLAKE2B d873dea563a8c77d8955cca4b1a111a538cb21d1b9247dd5799a7d87faa0955829b169b38f49c3923a1627528659248fc5e38257d72396160e2a1b2f509f412b SHA512 092347ceee6f47c26f37274df1299fa8592bf0f92fc8bd474608bcc9c46af4ac4f18207b3d2096c2511083572a731b176132bdcda39e4e690bb4aae3db7067e2 diff --git a/dev-python/raspberrypi-gpio/raspberrypi-gpio-0.6.3.ebuild b/dev-python/raspberrypi-gpio/raspberrypi-gpio-0.6.3.ebuild new file mode 100644 index 0000000..4dd6931 --- /dev/null +++ b/dev-python/raspberrypi-gpio/raspberrypi-gpio-0.6.3.ebuild @@ -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 +}