summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-06-23 20:18:19 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2018-06-26 23:53:06 +0200
commit674ebd1de24827a4a8afd1dc52c462c74d210076 (patch)
tree2e14580b0ad125854ab0a2e14349fe134b37dc97 /x11-plugins/wmDownload
parentx11-plugins/docker: EAPI7, improve ebuild (diff)
downloadgentoo-674ebd1de24827a4a8afd1dc52c462c74d210076.tar.gz
gentoo-674ebd1de24827a4a8afd1dc52c462c74d210076.tar.bz2
gentoo-674ebd1de24827a4a8afd1dc52c462c74d210076.zip
x11-plugins/wmDownload: EAPI7, improve ebuild
Diffstat (limited to 'x11-plugins/wmDownload')
-rw-r--r--x11-plugins/wmDownload/files/wmDownload-0.1.2a-makefile.patch4
-rw-r--r--x11-plugins/wmDownload/wmDownload-0.1.2a-r3.ebuild34
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 7dfdabc9cd76..67fe981d0c4d 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 000000000000..ca74298aa724
--- /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)"
+}