summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-07-18 11:32:54 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-07-18 11:32:54 -0700
commit5f1a98eab8bd869b0c95e7a0d4e7094906a2d88c (patch)
treeb78b1ff6ca84f2d5f8f2095478eff89b73cfe187
parentUpdate mhng to 0.2.4 (diff)
downloadpalmer-5f1a98eab8bd869b0c95e7a0d4e7094906a2d88c.tar.gz
palmer-5f1a98eab8bd869b0c95e7a0d4e7094906a2d88c.tar.bz2
palmer-5f1a98eab8bd869b0c95e7a0d4e7094906a2d88c.zip
Copy the wiringPi ebuild from the hacking-gentoo overlay
-rw-r--r--dev-libs/wiringPi/Manifest6
-rw-r--r--dev-libs/wiringPi/files/2.44-devLib_Makefile.patch21
-rw-r--r--dev-libs/wiringPi/files/2.44-wiringPi_Makefile.patch12
-rw-r--r--dev-libs/wiringPi/files/devLib_Makefile.patch29
-rw-r--r--dev-libs/wiringPi/files/wiringPi_Makefile.patch20
-rw-r--r--dev-libs/wiringPi/wiringPi-2.44.ebuild40
6 files changed, 128 insertions, 0 deletions
diff --git a/dev-libs/wiringPi/Manifest b/dev-libs/wiringPi/Manifest
new file mode 100644
index 0000000..0c105aa
--- /dev/null
+++ b/dev-libs/wiringPi/Manifest
@@ -0,0 +1,6 @@
+AUX 2.44-devLib_Makefile.patch 801 SHA256 baba50e9776602ea03780d6faaf4820a9083b19dd60637116d531b7fefa24ecb SHA512 4e11b29040a31d91d107aebbcded416b02ea5ff8e60cdfba68e9e1a36e6d87d21b97947ff3ccb2a48f4edbf7c645d171f45a531a4e93e1db30f860d16881ac32 WHIRLPOOL 57f6c052132e82b56297296b90b834cd6ddb67bca48bca69163f9545e75fc1527ae80fa362bccc991197f6075fb2abbca57e806b4a8c15ba074a412d27ffda21
+AUX 2.44-wiringPi_Makefile.patch 587 SHA256 2d51793065269ec3eebc85ffd43399bafe00b4ae0ce3a319fe513538dd8b2cb9 SHA512 fd7f369fce120facd89a4346278552a6bfc30b69868a9e4a1223067fa44a82fcc7d8189c86431b14b155c424d85aa703de1472c10cd75661a058be22290f1539 WHIRLPOOL c674c849ec80ffc8b2314a8f56630488af80a1a9fc1370674f277e0b72ac97edbd838c0e6667baed3c1876ced719fa320da5e6f08ed3e84618117889fbdee081
+AUX devLib_Makefile.patch 976 SHA256 058b8341ed58cdd6a879edcb2c86e8e3c4bfbbad4f3bf3cfce4f66c7a5d38f09 SHA512 ad88b569d24b8c25832f5c4d60aeb895c5f4abac305737419a0644c581cd12d113e9620c58a70f67bdea3506f839eba788561b6e61dc0090c6df837bfdc82e3c WHIRLPOOL ab96f407e0201ea80a8dbc9a31006178feeaeb4d694e6db1ac288cc380f73ecda6035c2b14937618c480cf1ccbc86e153beb54933e273bb0d317bd1407175b37
+AUX wiringPi_Makefile.patch 782 SHA256 3943ce41bb617ed79e96aaeeade12d7ee56e9253994527376e200b95f51c5a6c SHA512 9f4758df45c1ebde15bf42f14ec608c7d62ba2e624a6a971a5d2812024386f0c621de2dc539035884bcfce16314c07975ed019023492dd5d6e9dc9f042f4e888 WHIRLPOOL 85b3b9e78c8de6fc90447df32a9b8ae4130400d838b68ab28eda23427a04331c22c1825441aeb244191e9264a46b8aa592636f7d313510c44eac2ee8157d097c
+DIST wiringPi-2.44.tar.gz 159030 SHA256 548ffb87bdf147758503a3aa5a725ef90525134c2ec9d04d3e0ed452c2c5f7ce SHA512 b21bb602ee27232562ae0ce603b5d0537dc5cce5bc803adeba9bdb2b5eaec8df8205fb122c72624d12ead2f64176139c3e7fc17c8429297391911535bd8f159b WHIRLPOOL df5bebf2a743af0328abb7ac0a61efa1767ca0dddacdeeb36512eb0d362b504bf36fb07f3fc7c91f5e1b25647b14afe3a148f5340a246ce5335dec0dac60bb7f
+EBUILD wiringPi-2.44.ebuild 853 SHA256 0d08185b3a42e84577e0dcdbadcd9e3e54fd4221d0bbf18f291e8efd6eaf078c SHA512 7337619d08faf7af85fa4f46fbc5ce5627b0d968f2d06a63b617baef816f3445c09e2965df1b61cc20e39bda8ac4c8b48354212a967159b2d69a93a94fa5216f WHIRLPOOL aacf44e3bc6689a3273a05ed890f7bf4244e6f4ff51e0712ecb2fd52eadbe49130c7120e048d4e72ec21f1a0d952cfceb71037e09c4780d8e6e1360b5439b7d7
diff --git a/dev-libs/wiringPi/files/2.44-devLib_Makefile.patch b/dev-libs/wiringPi/files/2.44-devLib_Makefile.patch
new file mode 100644
index 0000000..0bf9d91
--- /dev/null
+++ b/dev-libs/wiringPi/files/2.44-devLib_Makefile.patch
@@ -0,0 +1,21 @@
+--- devLib/Makefile 2017-04-18 22:47:02.066600061 +0100
++++ devLib/Makefile 2017-04-18 22:49:34.305024481 +0100
+@@ -37,7 +37,7 @@
+ #DEBUG = -g -O0
+ DEBUG = -O2
+ CC = gcc
+-INCLUDE = -I.
++INCLUDE = -I. -I../wiringPi
+ DEFS = -D_GNU_SOURCE
+ CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC
+
+@@ -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)/lib/libwiringPiDev.so
+
+ .PHONY: install-static
+ install-static: $(STATIC)
diff --git a/dev-libs/wiringPi/files/2.44-wiringPi_Makefile.patch b/dev-libs/wiringPi/files/2.44-wiringPi_Makefile.patch
new file mode 100644
index 0000000..c41d17e
--- /dev/null
+++ b/dev-libs/wiringPi/files/2.44-wiringPi_Makefile.patch
@@ -0,0 +1,12 @@
+--- wiringPi/Makefile 2017-04-18 22:50:38.951022128 +0100
++++ wiringPi/Makefile 2017-04-18 22:51:19.747265645 +0100
+@@ -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)/lib/libwiringPi.so
+
+ .PHONY: install-static
+ install-static: $(STATIC)
diff --git a/dev-libs/wiringPi/files/devLib_Makefile.patch b/dev-libs/wiringPi/files/devLib_Makefile.patch
new file mode 100644
index 0000000..27b5dd5
--- /dev/null
+++ b/dev-libs/wiringPi/files/devLib_Makefile.patch
@@ -0,0 +1,29 @@
+--- devLib/Makefile 2013-08-04 00:53:35.000000000 +0200
++++ devLib/Makefile 2014-05-13 00:53:20.364314712 +0200
+@@ -33,7 +33,7 @@
+ #DEBUG = -g -O0
+ DEBUG = -O2
+ CC = gcc
+-INCLUDE = -I.
++INCLUDE = -I. -I../wiringPi
+ CFLAGS = $(DEBUG) -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC
+
+ LIBS =
+@@ -94,8 +94,7 @@
+ @echo "[Install Dynamic Lib]"
+ @install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
+ @install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION)
+- @ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so
+- @ldconfig
++ @ln -sf --relative $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so
+
+ .PHONEY: install-static
+ install-static: $(STATIC) install-headers
+@@ -115,7 +114,6 @@
+ @rm -f $(DESTDIR)$(PREFIX)/include/lcd.h
+ @rm -f $(DESTDIR)$(PREFIX)/include/piGlow.h
+ @rm -f $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.*
+- @ldconfig
+
+
+ .PHONEY: depend
diff --git a/dev-libs/wiringPi/files/wiringPi_Makefile.patch b/dev-libs/wiringPi/files/wiringPi_Makefile.patch
new file mode 100644
index 0000000..38901ab
--- /dev/null
+++ b/dev-libs/wiringPi/files/wiringPi_Makefile.patch
@@ -0,0 +1,20 @@
+--- wiringPi/Makefile 2013-08-04 00:53:35.000000000 +0200
++++ wiringPi/Makefile 2014-05-13 00:31:35.303253358 +0200
+@@ -121,8 +121,7 @@
+ @echo "[Install Dynamic Lib]"
+ @install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
+ @install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION)
+- @ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so
+- @ldconfig
++ @ln -sf --relative $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so
+
+ .PHONEY: install-static
+ install-static: $(STATIC) install-headers
+@@ -157,7 +156,6 @@
+ @rm -f $(DESTDIR)$(PREFIX)/include/pcf8591.h
+ @rm -f $(DESTDIR)$(PREFIX)/include/sn3218.h
+ @rm -f $(DESTDIR)$(PREFIX)/lib/libwiringPi.*
+- @ldconfig
+
+
+ .PHONEY: depend
diff --git a/dev-libs/wiringPi/wiringPi-2.44.ebuild b/dev-libs/wiringPi/wiringPi-2.44.ebuild
new file mode 100644
index 0000000..c7f6d5a
--- /dev/null
+++ b/dev-libs/wiringPi/wiringPi-2.44.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2013 Hacking Networked Solutions
+# Distributed under the terms of the GNU General Public License v3
+# $Header: $
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="A 'wiring' like library for the Raspberry Pi"
+HOMEPAGE="http://wiringpi.com/"
+SRC_URI="http://downloads.mad-hacking.net/software/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+MAKEDIRS="wiringPi devLib"
+
+src_prepare() {
+ epatch "${FILESDIR}/2.44-wiringPi_Makefile.patch"
+ epatch "${FILESDIR}/2.44-devLib_Makefile.patch"
+}
+
+src_compile() {
+ for d in ${MAKEDIRS}; do
+ cd "${WORKDIR}/${P}/${d}"
+ emake
+ done
+}
+
+src_install() {
+ for d in ${MAKEDIRS}; do
+ cd "${WORKDIR}/${P}/${d}"
+ emake DESTDIR="${D}/usr/" PREFIX="" install
+ done
+}