x11-plugins/wmmisc: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Sun, 22 Jul 2018 17:34:41 +0000 (19:34 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 2 Aug 2018 20:15:41 +0000 (22:15 +0200)
x11-plugins/wmmisc/files/wmmisc-1.1-build.patch
x11-plugins/wmmisc/wmmisc-1.1-r1.ebuild [new file with mode: 0644]

index d42400ab0132a1b121712a194854db91f8cfa08e..28979642dcbbe0de4442ed42dfdf635844f435cb 100644 (file)
@@ -1,6 +1,6 @@
 diff -ur wmmisc-1.1.orig/src/general.mk wmmisc-1.1/src/general.mk
---- wmmisc-1.1.orig/src/general.mk     2006-01-07 19:50:31.000000000 +0200
-+++ wmmisc-1.1/src/general.mk  2008-01-16 20:44:59.000000000 +0200
+--- a/general.mk       2006-01-07 19:50:31.000000000 +0200
++++ b/general.mk       2008-01-16 20:44:59.000000000 +0200
 @@ -16,7 +16,7 @@
  MANDIR      = $(PREFIX)/share/man
  # Set some destination locations.
@@ -35,8 +35,8 @@ diff -ur wmmisc-1.1.orig/src/general.mk wmmisc-1.1/src/general.mk
  INCLUDES   += -I.
  # Set the include locations.
 diff -ur wmmisc-1.1.orig/src/Makefile wmmisc-1.1/src/Makefile
---- wmmisc-1.1.orig/src/Makefile       2006-01-07 20:45:59.000000000 +0200
-+++ wmmisc-1.1/src/Makefile    2008-01-16 20:43:31.000000000 +0200
+--- a/Makefile 2006-01-07 20:45:59.000000000 +0200
++++ b/Makefile 2008-01-16 20:43:31.000000000 +0200
 @@ -23,7 +23,7 @@
  
  $(package): $(objects)
diff --git a/x11-plugins/wmmisc/wmmisc-1.1-r1.ebuild b/x11-plugins/wmmisc/wmmisc-1.1-r1.ebuild
new file mode 100644 (file)
index 0000000..dfcf13a
--- /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="a monitoring dockapp for system load, user amount, fork amount and processes"
+HOMEPAGE="https://packages.qa.debian.org/w/wmmisc.html"
+SRC_URI="mirror://debian/pool/main/w/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+S="${WORKDIR}/${P}/src"
+
+RDEPEND="x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXpm"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+
+PATCHES=( "${FILESDIR}"/${P}-build.patch )
+
+src_compile() {
+       tc-export CC
+       emake
+}
+
+src_install() {
+       dobin ${PN}
+       dodoc ../{ChangeLog,README}
+}