summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/verynice/ChangeLog8
-rw-r--r--app-admin/verynice/files/verynice-1.1-build.patch73
-rw-r--r--app-admin/verynice/verynice-1.1-r1.ebuild32
3 files changed, 112 insertions, 1 deletions
diff --git a/app-admin/verynice/ChangeLog b/app-admin/verynice/ChangeLog
index fdff08d90340..ff05069e302b 100644
--- a/app-admin/verynice/ChangeLog
+++ b/app-admin/verynice/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/verynice
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/verynice/ChangeLog,v 1.18 2012/12/26 19:40:58 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/verynice/ChangeLog,v 1.19 2012/12/26 20:38:24 hasufell Exp $
+
+*verynice-1.1-r1 (26 Dec 2012)
+
+ 26 Dec 2012; Julian Ospald <hasufell@gentoo.org> +verynice-1.1-r1.ebuild,
+ +files/verynice-1.1-build.patch:
+ fix stuff!
26 Dec 2012; Julian Ospald <hasufell@gentoo.org> metadata.xml:
GRAB IT! GRAB IT!
diff --git a/app-admin/verynice/files/verynice-1.1-build.patch b/app-admin/verynice/files/verynice-1.1-build.patch
new file mode 100644
index 000000000000..a70202b99300
--- /dev/null
+++ b/app-admin/verynice/files/verynice-1.1-build.patch
@@ -0,0 +1,73 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Dec 26 19:46:44 UTC 2012
+Subject: build system
+
+respect flags, add LDFLAGS to linker line
+fix install rules
+
+--- Makefile
++++ Makefile
+@@ -15,13 +15,15 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+-CC = gcc
++CC ?= gcc
+
+
+ RPM_BUILD_ROOT=
+
+ # PREFIX is usually either /usr or /usr/local
+ PREFIX=/usr/local
++BINDIR=$(PREFIX)/sbin
++ETCDIR=/etc
+ TARGET=linux
+
+
+@@ -32,8 +34,8 @@
+ VERSION=1.1
+
+ #CFLAGS= -I../include/ -O3 -Wimplicit
+-CFLAGS= -I../include/ -g -Wimplicit -DPREFIX=\"$(PREFIX)\" -DTARGET_$(TARGET) -DVERSION=\"$(VERSION)\"
+-LINK = gcc
++CFLAGS += -Wimplicit
++CPPFLAGS = -I../include/ -DPREFIX=\"$(PREFIX)\" -DTARGET_$(TARGET) -DVERSION=\"$(VERSION)\"
+ AG = /home3/sdh4/anagram/ag_unix_dev/ag
+
+
+@@ -55,20 +57,15 @@
+ (cd .. ; tar cvzf verynice-$(VERSION).tar.gz verynice/ )
+
+ install:
+- $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/sbin
+- $(INSTALL) verynice $(RPM_BUILD_ROOT)$(PREFIX)/sbin
+- if [ $(PREFIX) = "/usr" ]; then \
+- mv -f $(RPM_BUILD_ROOT)/etc/verynice.conf $(RPM_BUILD_ROOT)/etc/verynice.conf~ ; \
+- $(INSTALL) verynice.conf $(RPM_BUILD_ROOT)/etc ; \
+- else \
+- $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/etc ; \
+- mv -f $(RPM_BUILD_ROOT)$(PREFIX)/etc/verynice.conf $(RPM_BUILD_ROOT)$(PREFIX)/etc/verynice.conf~ ; \
+- $(INSTALL) -m 644 verynice.conf $(RPM_BUILD_ROOT)$(PREFIX)/etc ; \
+- fi
++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(BINDIR)
++ $(INSTALL) verynice $(RPM_BUILD_ROOT)$(BINDIR)
++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(ETCDIR)
++ $(INSTALL) -m 644 verynice.conf $(RPM_BUILD_ROOT)$(ETCDIR)
+ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share
+ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc
+ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+- $(INSTALL) -m 644 verynice.html $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)/html
++ $(INSTALL) -m 644 verynice.html $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)/html
+ $(INSTALL) -m 644 README $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+ $(INSTALL) -m 644 README.SYN $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+ $(INSTALL) -m 644 COPYING $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+@@ -95,7 +92,7 @@
+ $(AG) $*
+
+ verynice: verynice.o config.o linklist.o stringstack.o
+- $(LINK) -g -o $@ $^ -lm
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lm
+
+
+
diff --git a/app-admin/verynice/verynice-1.1-r1.ebuild b/app-admin/verynice/verynice-1.1-r1.ebuild
new file mode 100644
index 000000000000..43a5204dcc45
--- /dev/null
+++ b/app-admin/verynice/verynice-1.1-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/verynice/verynice-1.1-r1.ebuild,v 1.1 2012/12/26 20:38:24 hasufell Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A tool for dynamically adjusting the nice-level of processes"
+HOMEPAGE="http://thermal.cnde.iastate.edu/~sdh4/verynice/"
+SRC_URI="http://thermal.cnde.iastate.edu/~sdh4/verynice/down/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake RPM_BUILD_ROOT="${D}" PREFIX=/usr
+}
+
+src_install(){
+ emake RPM_BUILD_ROOT="${D}" PREFIX=/usr VERSION=${PVR} install
+ doinitd "${FILESDIR}"/verynice
+}