summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2021-07-30 13:56:46 +0200
committerCtibor Brančík <ctibor@brancik.cz>2021-07-30 13:56:46 +0200
commit73dc06ebac33c706a2385bf45ae2c1e549337092 (patch)
tree58a36047a778f30d7c37a36d3f4f19ec0e93ff72
parent905bdc9436065c8ae27730a59ffec9a1dec588a3 (diff)
downloadbrancik-overlay-73dc06ebac33c706a2385bf45ae2c1e549337092.tar.gz
brancik-overlay-73dc06ebac33c706a2385bf45ae2c1e549337092.tar.bz2
Remove dev-libs/wiringPi (dead upstream)
-rw-r--r--dev-libs/wiringPi/files/2.44-makefiles.patch26
-rw-r--r--dev-libs/wiringPi/files/2.44-pseudo-cpuinfo.patch35
-rw-r--r--dev-libs/wiringPi/files/cpuinfo-15
-rw-r--r--dev-libs/wiringPi/metadata.xml27
-rw-r--r--dev-libs/wiringPi/wiringPi-2.44-r7.ebuild120
5 files changed, 0 insertions, 213 deletions
diff --git a/dev-libs/wiringPi/files/2.44-makefiles.patch b/dev-libs/wiringPi/files/2.44-makefiles.patch
deleted file mode 100644
index 5dd00bb..0000000
--- a/dev-libs/wiringPi/files/2.44-makefiles.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff -urN wiringPi-2.44/devLib/Makefile wiringPi-2.44.new/devLib/Makefile
---- wiringPi-2.44/devLib/Makefile 2018-07-30 21:17:30.855974224 +0200
-+++ wiringPi-2.44.new/devLib/Makefile 2018-07-30 21:19:09.916828129 +0200
-@@ -93,8 +93,7 @@
- $Q echo "[Install Dynamic Lib]"
- $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
- $Q install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION)
-- $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so
-- $Q $(LDCONFIG)
-+ $Q ln -sf --relative $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so
-
- .PHONY: install-static
- install-static: $(STATIC)
-diff -urN wiringPi-2.44/wiringPi/Makefile wiringPi-2.44.new/wiringPi/Makefile
---- wiringPi-2.44/wiringPi/Makefile 2018-07-30 21:17:30.851974149 +0200
-+++ wiringPi-2.44.new/wiringPi/Makefile 2018-07-30 21:19:32.980259756 +0200
-@@ -104,8 +104,7 @@
- $Q echo "[Install Dynamic Lib]"
- $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
- $Q install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION)
-- $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so
-- $Q $(LDCONFIG)
-+ $Q ln -sf --relative $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so
-
- .PHONY: install-static
- install-static: $(STATIC)
diff --git a/dev-libs/wiringPi/files/2.44-pseudo-cpuinfo.patch b/dev-libs/wiringPi/files/2.44-pseudo-cpuinfo.patch
deleted file mode 100644
index 888afe4..0000000
--- a/dev-libs/wiringPi/files/2.44-pseudo-cpuinfo.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c
-index a8f5963..73bee7b 100644
---- a/wiringPi/wiringPi.c
-+++ b/wiringPi/wiringPi.c
-@@ -678,7 +678,7 @@ int wiringPiFailure (int fatal, const char *message, ...)
-
- static void piGpioLayoutOops (const char *why)
- {
-- fprintf (stderr, "Oops: Unable to determine board revision from /proc/cpuinfo\n") ;
-+ fprintf (stderr, "Oops: Unable to determine board revision from /etc/wiringpi/cpuinfo\n") ;
- fprintf (stderr, " -> %s\n", why) ;
- fprintf (stderr, " -> You'd best google the error to find out why.\n") ;
- //fprintf (stderr, " -> http://www.raspberrypi.org/phpBB3/viewtopic.php?p=184410#p184410\n") ;
-@@ -695,8 +695,8 @@ int piGpioLayout (void)
- if (gpioLayout != -1) // No point checking twice
- return gpioLayout ;
-
-- if ((cpuFd = fopen ("/proc/cpuinfo", "r")) == NULL)
-- piGpioLayoutOops ("Unable to open /proc/cpuinfo") ;
-+ if ((cpuFd = fopen ("/etc/wiringpi/cpuinfo", "r")) == NULL)
-+ piGpioLayoutOops ("Unable to open /etc/wiringpi/cpuinfo") ;
-
- // Start by looking for the Architecture to make sure we're really running
- // on a Pi. I'm getting fed-up with people whinging at me because
-@@ -891,8 +891,8 @@ void piBoardId (int *model, int *rev, int *mem, int *maker, int *warranty)
-
- (void)piGpioLayout () ; // Call this first to make sure all's OK. Don't care about the result.
-
-- if ((cpuFd = fopen ("/proc/cpuinfo", "r")) == NULL)
-- piGpioLayoutOops ("Unable to open /proc/cpuinfo") ;
-+ if ((cpuFd = fopen ("/etc/wiringpi/cpuinfo", "r")) == NULL)
-+ piGpioLayoutOops ("Unable to open /etc/wiringpi/cpuinfo") ;
-
- while (fgets (line, 120, cpuFd) != NULL)
- if (strncmp (line, "Revision", 8) == 0)
diff --git a/dev-libs/wiringPi/files/cpuinfo-1 b/dev-libs/wiringPi/files/cpuinfo-1
deleted file mode 100644
index ac37271..0000000
--- a/dev-libs/wiringPi/files/cpuinfo-1
+++ /dev/null
@@ -1,5 +0,0 @@
-# Adjust this to match your desired /proc/cpuinfo output
-# The RPi3 has fields missing when running in 64-bit mode, hence this file
-# You only need the missing snippets, for wiringPi to read
-Hardware : BCM2709
-Revision : a02082
diff --git a/dev-libs/wiringPi/metadata.xml b/dev-libs/wiringPi/metadata.xml
deleted file mode 100644
index 3b0bb37..0000000
--- a/dev-libs/wiringPi/metadata.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="person">
- <email>ctibor@brnacik.cz</email>
- <name>Ctibor Brančík</name>
-</maintainer>
-<upstream>
- <maintainer status="active">
- <name>Gordon Henderson</name>
- </maintainer>
-</upstream>
-<longdescription>
- WiringPi is a PIN based GPIO access library written in C
- for the BCM2835 used in the Raspberry Pi (1, 2 and 3).
- It’s designed to be familiar to people who have used the
- Arduino “wiring” system.
-
- A main library, devices library and utility app are included.
-
- You need to uncomment the relevant features in config.txt to use
- this package (for example, "dtparam=spi=on").
-
- NB: please note that Gentoo is treated as an unsupported platform
- by upstream; any bug reports sent there will be rejected.
-</longdescription>
-</pkgmetadata>
diff --git a/dev-libs/wiringPi/wiringPi-2.44-r7.ebuild b/dev-libs/wiringPi/wiringPi-2.44-r7.ebuild
deleted file mode 100644
index d087b25..0000000
--- a/dev-libs/wiringPi/wiringPi-2.44-r7.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit flag-o-matic toolchain-funcs git-r3
-
-KEYWORDS="~arm ~arm64"
-
-DESCRIPTION="GPIO interface libraries (and utility) for the Raspberry Pi"
-HOMEPAGE="http://wiringpi.com/"
-SRC_URI=""
-LICENSE="LGPL-3+"
-SLOT="0"
-IUSE=""
-RESTRICT="mirror"
-
-EGIT_REPO_URI="https://github.com/WiringPi/WiringPi.git"
-EGIT_BRANCH="master"
-# fetch the branch matching the ebuild version
-EGIT_COMMIT="${PV}"
-
-DEPEND=""
-RDEPEND="
- ${DEPEND}"
-
-PATCHES=( "${FILESDIR}/${PV}-makefiles.patch" )
-
-src_prepare() {
- local DIR
- # put header files in include subdirectory
- # don't make library links directly (these break)
- # update manpage location to non-deprecated value
- # get rid of suid (security risk); install utility as sbin instead
- # if on arm64, install to /usr/lib64, not /usr/lib
- # purge upstream email addresses as Gentoo is an unsupported platform
- for DIR in wiringPi devLib gpio; do
- sed -e "s#/include#/include/${PN}#" \
- -e 's:/man/man:/share/man/man:g' \
- -e 's:/bin:/sbin:g' \
- -e 's:4755:0755:g' \
- -i "${DIR}"/Makefile
- if use arm64; then
- sed -e 's:$(PREFIX)/lib:$(PREFIX)/lib64:g' \
- -e 's:/lib/:/lib64/:g' \
- -i "${DIR}"/Makefile
- fi
- done
- sed -e 's/projects@drogon.net/(email removed, Gentoo unsupported)/g' \
- -i $(find . -type f -exec grep -l "projects@drogon.net" {} +)
- # deal with problem that RPi3 in 64-bit mode does not have
- # the 'Hardware' line in /proc/cpuinfo, which the wiringPi library
- # checks, by making it look in /etc/wiringpi/cpuinfo instead
- use arm64 && epatch "${FILESDIR}/${PV}-pseudo-cpuinfo.patch"
- default
-}
-
-src_compile() {
- # git archive contains object files
- cd wiringPi
- emake V=1 clean
- append-cflags "-fPIC" "-I${S}/wiringPi"
- # ensure the right compiler and flags get used
- emake V=1 CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
- LDCONFIG=/bin/true
- # set up symlink for library
- ln -s libwiringPi.so.* libwiringPi.so
-
- # now ditto for other directories
-
- cd ../devLib
- emake V=1 clean
- append-cflags "-I${S}/devLib"
- emake V=1 CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
- LDCONFIG=/bin/true
- ln -s libwiringPiDev.so.* libwiringPiDev.so
-
- cd ../gpio
- emake V=1 clean
- append-cflags "-I${S}/cpio"
- append-ldflags "-L${S}/wiringPi" "-L${S}/devLib"
- emake V=1 CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
- LDCONFIG=/bin/true
-}
-
-src_install() {
- local LIBDIR="${D%/}/usr/lib"
- if use arm64; then
- LIBDIR+="64"
- fi
- cd wiringPi
- emake DESTDIR="${D%/}" PREFIX="/usr" install
- cp --no-dereference libwiringPi.so "${LIBDIR}/"
- cd ../devLib
- emake DESTDIR="${D%/}" PREFIX="/usr" install
- cp --no-dereference libwiringPiDev.so "${LIBDIR}/"
- cd ../gpio
- mkdir -p "${D%/}/usr/sbin"
- emake DESTDIR="${D%/}" PREFIX="/usr" install
- cd ..
- DOCS=( README.TXT People )
- if use arm64; then
- # following is a snippet of cpuinfo, for use on Pi3s (which
- # don't contain all the expected fields when booted in 64-bit
- # mode)
- insinto "/etc/${PN}"
- newins "${FILESDIR}/cpuinfo-1" "cpuinfo"
- fi
- einstalldocs
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] && use arm64; then
- elog "The file /etc/${PN}/cpuinfo has been created."
- elog "The library will look there, instead of /proc/cpuinfo"
- elog "when determining system type; this is necessary because"
- elog "some /proc/cpuinfo data is not output in 64-bit mode."
- elog "It only contains the necessary stanzas."
- elog "You can modify this file as required."
- fi
-}