summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2007-08-18 16:21:50 +0000
committerSamuli Suominen <drac@gentoo.org>2007-08-18 16:21:50 +0000
commit7b7f0737b3d26e0b68315c44e3a6915a10d93b93 (patch)
tree90e497ccd1ed6f11d952c6cee6bc363822cc223f /x11-misc/grpn
parentStable on ppc wrt bug 189031 (diff)
downloadgentoo-2-7b7f0737b3d26e0b68315c44e3a6915a10d93b93.tar.gz
gentoo-2-7b7f0737b3d26e0b68315c44e3a6915a10d93b93.tar.bz2
gentoo-2-7b7f0737b3d26e0b68315c44e3a6915a10d93b93.zip
rewrite grpn ebuild, fix QA warnings.
(Portage version: 2.1.3.6)
Diffstat (limited to 'x11-misc/grpn')
-rw-r--r--x11-misc/grpn/ChangeLog8
-rw-r--r--x11-misc/grpn/files/digest-grpn-1.1.2-r13
-rw-r--r--x11-misc/grpn/files/grpn-1.1.2-implicit-declarations.patch89
-rw-r--r--x11-misc/grpn/grpn-1.1.2-r1.ebuild35
4 files changed, 134 insertions, 1 deletions
diff --git a/x11-misc/grpn/ChangeLog b/x11-misc/grpn/ChangeLog
index 492fbb4ad440..529f70277c92 100644
--- a/x11-misc/grpn/ChangeLog
+++ b/x11-misc/grpn/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for x11-misc/grpn
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/grpn/ChangeLog,v 1.9 2007/02/21 23:39:34 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/grpn/ChangeLog,v 1.10 2007/08/18 16:21:49 drac Exp $
+
+*grpn-1.1.2-r1 (18 Aug 2007)
+
+ 18 Aug 2007; Samuli Suominen <drac@gentoo.org>
+ +files/grpn-1.1.2-implicit-declarations.patch, +grpn-1.1.2-r1.ebuild:
+ rewrite grpn ebuild, fix QA warnings.
21 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
diff --git a/x11-misc/grpn/files/digest-grpn-1.1.2-r1 b/x11-misc/grpn/files/digest-grpn-1.1.2-r1
new file mode 100644
index 000000000000..50a105e8ebd3
--- /dev/null
+++ b/x11-misc/grpn/files/digest-grpn-1.1.2-r1
@@ -0,0 +1,3 @@
+MD5 a602f1e4dd3138ba2fe745e14b217039 grpn-1.1.2.tar.gz 46153
+RMD160 28a432ec8e4d2095a59440c4e401f12f85d75249 grpn-1.1.2.tar.gz 46153
+SHA256 396274b31588e9df26f28704e95456bd2c3b859e5aa1740e47143fc27884e560 grpn-1.1.2.tar.gz 46153
diff --git a/x11-misc/grpn/files/grpn-1.1.2-implicit-declarations.patch b/x11-misc/grpn/files/grpn-1.1.2-implicit-declarations.patch
new file mode 100644
index 000000000000..750d5b180301
--- /dev/null
+++ b/x11-misc/grpn/files/grpn-1.1.2-implicit-declarations.patch
@@ -0,0 +1,89 @@
+diff -ur grpn-1.1.2.orig/callback_menu.c grpn-1.1.2/callback_menu.c
+--- grpn-1.1.2.orig/callback_menu.c 2002-04-04 06:46:10.000000000 +0300
++++ grpn-1.1.2/callback_menu.c 2007-08-18 19:07:41.000000000 +0300
+@@ -20,6 +20,7 @@
+ /* callback_menu.h by Paul Wilkins 3/15/97 */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <gtk/gtk.h>
+
+ #include "menu.h"
+diff -ur grpn-1.1.2.orig/complex.c grpn-1.1.2/complex.c
+--- grpn-1.1.2.orig/complex.c 2002-04-04 06:46:10.000000000 +0300
++++ grpn-1.1.2/complex.c 2007-08-18 19:14:56.000000000 +0300
+@@ -22,6 +22,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <math.h>
++#include <string.h>
+
+ #include "complex.h"
+ #include "real.h"
+diff -ur grpn-1.1.2.orig/help.c grpn-1.1.2/help.c
+--- grpn-1.1.2.orig/help.c 2002-04-04 06:46:11.000000000 +0300
++++ grpn-1.1.2/help.c 2007-08-18 19:08:02.000000000 +0300
+@@ -19,6 +19,7 @@
+ */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+
+ #include "help.h"
+diff -ur grpn-1.1.2.orig/lcd.c grpn-1.1.2/lcd.c
+--- grpn-1.1.2.orig/lcd.c 2002-04-04 06:46:11.000000000 +0300
++++ grpn-1.1.2/lcd.c 2007-08-18 19:06:54.000000000 +0300
+@@ -20,6 +20,8 @@
+ /* lcd.c by Paul Wilkins 3/22/97 */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+
+diff -ur grpn-1.1.2.orig/main.c grpn-1.1.2/main.c
+--- grpn-1.1.2.orig/main.c 2002-04-04 06:46:11.000000000 +0300
++++ grpn-1.1.2/main.c 2007-08-18 19:06:20.000000000 +0300
+@@ -23,6 +23,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #ifdef USE_GNOME
+ #include <gnome.h>
+ #endif
+diff -ur grpn-1.1.2.orig/mode.c grpn-1.1.2/mode.c
+--- grpn-1.1.2.orig/mode.c 2002-04-04 06:46:11.000000000 +0300
++++ grpn-1.1.2/mode.c 2007-08-18 19:08:16.000000000 +0300
+@@ -20,6 +20,7 @@
+ /* setup mode.c by Paul Wilkins 2/8/98 */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+
+ #include "mode.h"
+diff -ur grpn-1.1.2.orig/process_input.c grpn-1.1.2/process_input.c
+--- grpn-1.1.2.orig/process_input.c 2002-04-04 06:46:11.000000000 +0300
++++ grpn-1.1.2/process_input.c 2007-08-18 19:07:31.000000000 +0300
+@@ -20,6 +20,7 @@
+ /* process_input.c by Paul Wilkins 3/21/97 */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+
+diff -ur grpn-1.1.2.orig/run_cmd.c grpn-1.1.2/run_cmd.c
+--- grpn-1.1.2.orig/run_cmd.c 2002-04-04 06:46:11.000000000 +0300
++++ grpn-1.1.2/run_cmd.c 2007-08-18 19:15:11.000000000 +0300
+@@ -20,6 +20,7 @@
+ /* run_cmd.c by Paul Wilkins */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+
+ #include "buttons.h"
diff --git a/x11-misc/grpn/grpn-1.1.2-r1.ebuild b/x11-misc/grpn/grpn-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..302fc19931ec
--- /dev/null
+++ b/x11-misc/grpn/grpn-1.1.2-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/grpn/grpn-1.1.2-r1.ebuild,v 1.1 2007/08/18 16:21:49 drac Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="GRPN is a Reverse Polish Notation calculator for X"
+HOMEPAGE="http://lashwhip.com/grpn.html"
+SRC_URI="http://lashwhip.com/grpn/${P}.tar.gz"
+
+RDEPEND="=x11-libs/gtk+-1.2*"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~hppa ~ppc ~sparc ~x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-implicit-declarations.patch
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS} $(pkg-config --cflags gtk+) -DGTK_VER_1_1" \
+ CC="$(tc-getCC)" || die "emake failed."
+}
+
+src_install () {
+ dobin grpn
+ doman grpn.1
+ dodoc CHANGES README
+}