commit:     674ebd1de24827a4a8afd1dc52c462c74d210076
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Jun 23 18:18:19 2018 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Tue Jun 26 21:53:06 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=674ebd1d

x11-plugins/wmDownload: EAPI7, improve ebuild

 .../files/wmDownload-0.1.2a-makefile.patch         |  4 +--
 x11-plugins/wmDownload/wmDownload-0.1.2a-r3.ebuild | 34 ++++++++++++++++++++++
 2 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/wmDownload/files/wmDownload-0.1.2a-makefile.patch 
b/x11-plugins/wmDownload/files/wmDownload-0.1.2a-makefile.patch
index 7dfdabc9cd7..67fe981d0c4 100644
--- a/x11-plugins/wmDownload/files/wmDownload-0.1.2a-makefile.patch
+++ b/x11-plugins/wmDownload/files/wmDownload-0.1.2a-makefile.patch
@@ -1,5 +1,5 @@
---- Makefile.orig      2000-04-14 15:39:52.000000000 +0200
-+++ Makefile   2008-01-27 23:07:51.000000000 +0100
+--- a/Makefile 2000-04-14 15:39:52.000000000 +0200
++++ b/Makefile 2008-01-27 23:07:51.000000000 +0100
 @@ -1,17 +1,17 @@
 -CC     = gcc
 -CFLAGS = -O2 -Wall -fomit-frame-pointer -s

diff --git a/x11-plugins/wmDownload/wmDownload-0.1.2a-r3.ebuild 
b/x11-plugins/wmDownload/wmDownload-0.1.2a-r3.ebuild
new file mode 100644
index 00000000000..ca74298aa72
--- /dev/null
+++ b/x11-plugins/wmDownload/wmDownload-0.1.2a-r3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="dockapp that displays how much data you've received on each eth 
and ppp device"
+SRC_URI="mirror://sourceforge/wmdownload/${P}.tar.gz"
+HOMEPAGE="http://wmdownload.sourceforge.net/";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/libdockapp-0.7:=
+       x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXpm"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+DOCS=( CHANGELOG CREDITS HINTS README TODO )
+
+src_prepare() {
+       sed -e 's#<dockapp.h>#<libdockapp/dockapp.h>#' -i *.c || die
+       default
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)"
+}

Reply via email to