diff options
Diffstat (limited to 'dev-libs/pigpio/pigpio-67.ebuild')
-rw-r--r-- | dev-libs/pigpio/pigpio-67.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/pigpio/pigpio-67.ebuild b/dev-libs/pigpio/pigpio-67.ebuild new file mode 100644 index 000000000000..1975d0a2cf3a --- /dev/null +++ b/dev-libs/pigpio/pigpio-67.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 systemd toolchain-funcs + +DESCRIPTION="A library for the Raspberry which allows control of the GPIOs" +HOMEPAGE="http://abyz.me.uk/rpi/pigpio/index.html" +SRC_URI="https://github.com/joan2937/pigpio/archive/V${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~arm" +IUSE="python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + eapply "${FILESDIR}/${P}-makefile.patch" + eapply_user +} + +src_compile() { + emake CC="$(tc-getCC)" STRIP=: STRIPLIB=: SIZE=: + use python && distutils-r1_src_compile +} + +src_install() { + emake DESTDIR="${D}" LDCONFIG=: PYTHON2=: PYTHON3=: libdir="$(get_libdir)" prefix="/usr" mandir="/usr/share/man" install + einstalldocs + newinitd "${FILESDIR}"/pigpiod.initd pigpiod + newconfd "${FILESDIR}"/pigpiod.confd pigpiod + systemd_newunit "${FILESDIR}"/pigpiod.systemd pigpiod.service + use python && distutils-r1_src_install +} |