summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/wmSMPmon')
-rw-r--r--x11-plugins/wmSMPmon/Manifest1
-rw-r--r--x11-plugins/wmSMPmon/files/wmSMPmon-3.1-makefile.patch45
-rw-r--r--x11-plugins/wmSMPmon/metadata.xml9
-rw-r--r--x11-plugins/wmSMPmon/wmSMPmon-3.1-r1.ebuild37
4 files changed, 92 insertions, 0 deletions
diff --git a/x11-plugins/wmSMPmon/Manifest b/x11-plugins/wmSMPmon/Manifest
new file mode 100644
index 000000000000..43e2221117ff
--- /dev/null
+++ b/x11-plugins/wmSMPmon/Manifest
@@ -0,0 +1 @@
+DIST wmSMPmon-3.1.tar.gz 24834 RMD160 2fc70ab4b12008e67bc35d36c4ad62f6d11a8f43 SHA1 18b2811382e61c694d749cc28473e6db0109da3f SHA256 13ca4cfe325c35215e7b3357dc61985159015bd3a870a548ec70edc0914011e7
diff --git a/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-makefile.patch b/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-makefile.patch
new file mode 100644
index 000000000000..1bd27f47c0f1
--- /dev/null
+++ b/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-makefile.patch
@@ -0,0 +1,45 @@
+--- Makefile.orig 2005-02-22 23:24:23.000000000 +0100
++++ Makefile 2008-01-28 00:12:33.000000000 +0100
+@@ -2,22 +2,24 @@
+ # Adapted for wmSMPmon 2.9.x and higher: Thomas Ribbrock
+
+ # Change the following two to determine installation location
+-BINDIR=/usr/local/bin/
+-MANDIR=/usr/local/share/man/
++PREFIX=/usr
++BINDIR=$(PREFIX)/bin
++MANDIR=$(PREFIX)/share/man
+
+ SRC = general.c sysinfo-linux.c ../wmgeneral/wmgeneral.c wmSMPmon.c
+ EXE = wmSMPmon
+ MAN = wmSMPmon.1
+ OBJ = $(SRC:.c=.o)
+ INSTALL = /usr/bin/install
+-INSTALLEXEFLAGS = -m 755 -s
++INSTALLEXEFLAGS = -m 755
+ INSTALLMANFLAGS = -m 644
+-CC = gcc
+-CFLAGS = -Wall -O2 -g
+-LIB = -L/usr/X11R6/lib -lXpm -lXext -lX11
++CC ?= gcc
++CFLAGS += -Wall
++LIBDIR ?= /usr/lib
++LIBS= -lXpm -lXext -lX11
+
+ all: $(OBJ)
+- $(CC) -o $(EXE) $(OBJ) $(LIB)
++ $(CC) $(CFLAGS) -o $(EXE) $(OBJ) -L$(LIBDIR) $(LDFLAGS) $(LIBS)
+
+ $(OBJ): %.o : %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+@@ -28,6 +31,7 @@
+ rm -rf ../wmgeneral/*.o
+
+ install:
+- $(INSTALL) $(INSTALLEXEFLAGS) $(EXE) $(BINDIR)
+- $(INSTALL) -d $(MANDIR)/man1
+- $(INSTALL) $(INSTALLMANFLAGS) $(MAN) $(MANDIR)/man1
++ $(INSTALL) -d $(DESTDIR)$(BINDIR)
++ $(INSTALL) $(INSTALLEXEFLAGS) $(EXE) $(DESTDIR)$(BINDIR)
++ $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
++ $(INSTALL) $(INSTALLMANFLAGS) $(MAN) $(DESTDIR)$(MANDIR)/man1
diff --git a/x11-plugins/wmSMPmon/metadata.xml b/x11-plugins/wmSMPmon/metadata.xml
new file mode 100644
index 000000000000..09a0b0457a0d
--- /dev/null
+++ b/x11-plugins/wmSMPmon/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>desktop-dock</herd>
+<longdescription>
+wmSMPmon is a Window Maker applet for monitoring
+the CPUs, memory, and swap of SMP systems.
+</longdescription>
+</pkgmetadata>
diff --git a/x11-plugins/wmSMPmon/wmSMPmon-3.1-r1.ebuild b/x11-plugins/wmSMPmon/wmSMPmon-3.1-r1.ebuild
new file mode 100644
index 000000000000..d4cd369f33d3
--- /dev/null
+++ b/x11-plugins/wmSMPmon/wmSMPmon-3.1-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="SMP system monitor dockapp"
+HOMEPAGE="http://lancre.ribbrock.org/binabit/wmSMPmon/"
+SRC_URI="http://lancre.ribbrock.org/binabit/wmSMPmon/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto"
+
+S="${WORKDIR}/${P}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)" || die "compile failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc ../Changelog
+}