diff options
author | Daniel Kenzelmann <gentoo@k8n.de> | 2020-01-12 12:14:46 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-01-20 15:03:11 +0200 |
commit | 81874ca96973017da4ff81cf2cab8b6f888f365a (patch) | |
tree | 172dfc54b3d7702c82b6cc738f6fd2fb3157c904 /dev-libs/pigpio/pigpio-73.ebuild | |
parent | www-apps/gitea: remove old (diff) | |
download | gentoo-81874ca96973017da4ff81cf2cab8b6f888f365a.tar.gz gentoo-81874ca96973017da4ff81cf2cab8b6f888f365a.tar.bz2 gentoo-81874ca96973017da4ff81cf2cab8b6f888f365a.zip |
dev-libs/pigpio: new version 73
new upstream version, add support for python3_8, remove python2_7
Signed-off-by: Daniel Kenzelmann <gentoo@k8n.de>
Closes: https://github.com/gentoo/gentoo/pull/14317
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/pigpio/pigpio-73.ebuild')
-rw-r--r-- | dev-libs/pigpio/pigpio-73.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-libs/pigpio/pigpio-73.ebuild b/dev-libs/pigpio/pigpio-73.ebuild new file mode 100644 index 000000000000..ca8b1bd2909d --- /dev/null +++ b/dev-libs/pigpio/pigpio-73.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +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} )" + +src_prepare() { + eapply "${FILESDIR}/${PN}-70-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="${EPREFIX}/usr/$(get_libdir)" prefix="${EPREFIX}/usr" \ + mandir="${EPREFIX}/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 +} |