x11-plugins/allin1: new EAPI=6 revision.
authorMichael Orlitzky <mjo@gentoo.org>
Thu, 27 Apr 2017 18:49:30 +0000 (14:49 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Thu, 27 Apr 2017 18:49:46 +0000 (14:49 -0400)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

x11-plugins/allin1/allin1-0.5.0-r2.ebuild [moved from x11-plugins/allin1/allin1-0.5.0-r1.ebuild with 82% similarity]
x11-plugins/allin1/files/makefile-r2.patch [new file with mode: 0644]

similarity index 82%
rename from x11-plugins/allin1/allin1-0.5.0-r1.ebuild
rename to x11-plugins/allin1/allin1-0.5.0-r2.ebuild
index 2afa15eba169aa3ec08dfcf49644fc90f119363a..0721c811d6b31058e9ad6f91f98f2843623e1c0e 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=6
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="All in one monitoring dockapp: RAM, CPU, Net, Power, df, seti"
 HOMEPAGE="http://ilpettegolo.altervista.org/linux_allin1.en.shtml"
@@ -20,9 +20,7 @@ RDEPEND="x11-libs/libX11
 DEPEND="${RDEPEND}
        x11-proto/xproto"
 
-src_prepare() {
-       epatch "${FILESDIR}/makefile.patch"
-}
+PATCHES=( "${FILESDIR}/makefile-r2.patch" )
 
 src_compile() {
        emake \
diff --git a/x11-plugins/allin1/files/makefile-r2.patch b/x11-plugins/allin1/files/makefile-r2.patch
new file mode 100644 (file)
index 0000000..9d0b2ab
--- /dev/null
@@ -0,0 +1,23 @@
+--- a/src/Makefile.old 2012-10-24 13:12:48.128285694 +0200
++++ b/src/Makefile     2012-10-24 13:19:56.135247071 +0200
+@@ -11,8 +11,9 @@
+ CC = gcc
+ FLEX = flex
+-LIBFLAGS = -ggdb -Wall -O2 -fPIC
+-CFLAGS = -ggdb -Wall -O2
++LIBFLAGS = -fPIC
++CFLAGS =
++LDFLAGS =
+ GENERATED = allin1 confparse.c
+ LIBRARIES = -L/usr/X11R6/lib -lXext -lX11 -lXpm -lm
+ MODULES = allin1.o dockhelper.o memory.o battery.o cpu.o \
+@@ -58,7 +59,7 @@
+ allin1: $(MODULES)
+-      $(CC) $(CFLAGS) -o $@ $(MODULES) -DDEBUG $(LIBRARIES)
++      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MODULES) -DDEBUG $(LIBRARIES)
+ install: allin1