x11-plugins/wmDownload: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Sat, 23 Jun 2018 18:18:19 +0000 (20:18 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Tue, 26 Jun 2018 21:53:06 +0000 (23:53 +0200)
x11-plugins/wmDownload/files/wmDownload-0.1.2a-makefile.patch
x11-plugins/wmDownload/wmDownload-0.1.2a-r3.ebuild [new file with mode: 0644]

index 7dfdabc9cd768a311146903a957d4fcdc8507617..67fe981d0c4ddf321043121864f595b075cc09ec 100644 (file)
@@ -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 (file)
index 0000000..ca74298
--- /dev/null
@@ -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)"
+}