summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2008-01-17 21:02:38 +0000
committerRyan Hill <dirtyepic@gentoo.org>2008-01-17 21:02:38 +0000
commitab5026911e408bffb4f1a3781778f6aa96f9780c (patch)
tree6ab357671c2b243aaecb18e19674e02c45cb505f /app-office/sc
parentAdded cint7 local flag for sci-physics/root (diff)
downloadgentoo-2-ab5026911e408bffb4f1a3781778f6aa96f9780c.tar.gz
gentoo-2-ab5026911e408bffb4f1a3781778f6aa96f9780c.tar.bz2
gentoo-2-ab5026911e408bffb4f1a3781778f6aa96f9780c.zip
Revision bump.
- redid xmalloc patch - fix syntax error message (bug #143272) - fix multiple Makefile problems - cleanup and QA (Portage version: 2.1.4)
Diffstat (limited to 'app-office/sc')
-rw-r--r--app-office/sc/ChangeLog15
-rw-r--r--app-office/sc/files/digest-sc-7.16-r13
-rw-r--r--app-office/sc/files/sc-7.12-amd64.patch13
-rw-r--r--app-office/sc/files/sc-7.16-amd64.patch23
-rw-r--r--app-office/sc/files/sc-7.16-lex-syntax.patch12
-rw-r--r--app-office/sc/sc-7.16-r1.ebuild51
6 files changed, 96 insertions, 21 deletions
diff --git a/app-office/sc/ChangeLog b/app-office/sc/ChangeLog
index 2aa6d5daca6e..10e23dec7c7f 100644
--- a/app-office/sc/ChangeLog
+++ b/app-office/sc/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for app-office/sc
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/sc/ChangeLog,v 1.16 2007/05/15 09:45:54 bangert Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/sc/ChangeLog,v 1.17 2008/01/17 21:02:38 dirtyepic Exp $
+
+*sc-7.16-r1 (17 Jan 2008)
+
+ 17 Jan 2008; Ryan Hill <dirtyepic@gentoo.org> -files/sc-7.12-amd64.patch,
+ files/sc-7.16-amd64.patch, +files/sc-7.16-lex-syntax.patch,
+ +sc-7.16-r1.ebuild:
+ Revision bump.
+ - redid xmalloc patch
+ - fix syntax error message (bug #143272)
+ - fix multiple Makefile problems
+ - cleanup and QA
15 May 2007; Thilo Bangert <bangert@gentoo.org> metadata.xml:
add <herd>no-herd</herd>
diff --git a/app-office/sc/files/digest-sc-7.16-r1 b/app-office/sc/files/digest-sc-7.16-r1
new file mode 100644
index 000000000000..24d27d5c75f0
--- /dev/null
+++ b/app-office/sc/files/digest-sc-7.16-r1
@@ -0,0 +1,3 @@
+MD5 1db636e9b2dc7cd73c40aeece6852d47 sc-7.16.tar.gz 210809
+RMD160 bcaffd292bc3d0868e5be870fee743c6b3294377 sc-7.16.tar.gz 210809
+SHA256 1997a00b6d82d189b65f6fd2a856a34992abc99e50d9ec463bbf1afb750d1765 sc-7.16.tar.gz 210809
diff --git a/app-office/sc/files/sc-7.12-amd64.patch b/app-office/sc/files/sc-7.12-amd64.patch
deleted file mode 100644
index 2133ed42e325..000000000000
--- a/app-office/sc/files/sc-7.12-amd64.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- xmalloc.c.orig 2004-07-11 22:34:48.681076912 +0200
-+++ xmalloc.c 2004-07-11 22:34:57.150789320 +0200
-@@ -6,8 +6,8 @@
- #include <curses.h>
- #include "sc.h"
-
--extern char *malloc();
--extern char *realloc();
-+extern void *malloc(size_t size);
-+extern void *realloc();
- extern void free();
- void fatal();
-
diff --git a/app-office/sc/files/sc-7.16-amd64.patch b/app-office/sc/files/sc-7.16-amd64.patch
index 2133ed42e325..266eff0986df 100644
--- a/app-office/sc/files/sc-7.16-amd64.patch
+++ b/app-office/sc/files/sc-7.16-amd64.patch
@@ -1,13 +1,24 @@
---- xmalloc.c.orig 2004-07-11 22:34:48.681076912 +0200
-+++ xmalloc.c 2004-07-11 22:34:57.150789320 +0200
-@@ -6,8 +6,8 @@
+diff -Naur sc-7.16-orig/xmalloc.c sc-7.16/xmalloc.c
+--- sc-7.16-orig/xmalloc.c 2002-04-25 17:37:58.000000000 -0600
++++ sc-7.16/xmalloc.c 2008-01-17 14:41:31.000000000 -0600
+@@ -3,19 +3,12 @@
+ * $Revision: 7.16 $
+ */
+
++#include <stdlib.h>
#include <curses.h>
#include "sc.h"
-extern char *malloc();
-extern char *realloc();
-+extern void *malloc(size_t size);
-+extern void *realloc();
- extern void free();
+-extern void free();
void fatal();
+-#ifdef SYSV3
+-extern void free();
+-extern void exit();
+-#endif
+-
+ #define MAGIC (double)1234567890.12344
+
+ char *
diff --git a/app-office/sc/files/sc-7.16-lex-syntax.patch b/app-office/sc/files/sc-7.16-lex-syntax.patch
new file mode 100644
index 000000000000..1c72c13df2a3
--- /dev/null
+++ b/app-office/sc/files/sc-7.16-lex-syntax.patch
@@ -0,0 +1,12 @@
+diff -Naur sc-7.16-orig/lex.c sc-7.16/lex.c
+--- sc-7.16-orig/lex.c 2002-08-20 16:44:26.000000000 -0600
++++ sc-7.16/lex.c 2008-01-17 14:56:27.000000000 -0600
+@@ -107,7 +107,7 @@
+ yylex()
+ {
+ char *p = line + linelim;
+- int ret;
++ int ret = 0;
+ static int isfunc = 0;
+ static bool isgoto = 0;
+ static bool colstate = 0;
diff --git a/app-office/sc/sc-7.16-r1.ebuild b/app-office/sc/sc-7.16-r1.ebuild
new file mode 100644
index 000000000000..aac0dd7754e4
--- /dev/null
+++ b/app-office/sc/sc-7.16-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/sc/sc-7.16-r1.ebuild,v 1.1 2008/01/17 21:02:38 dirtyepic Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="sc is a free curses-based spreadsheet program that uses key bindings similar to vi and less."
+SRC_URI="ftp://ibiblio.org/pub/Linux/apps/financial/spreadsheet/${P}.tar.gz"
+HOMEPAGE="http://ibiblio.org/pub/Linux/apps/financial/spreadsheet/"
+
+SLOT="0"
+LICENSE="public-domain"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.2"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i -e "/^prefix=/ s:/usr:${D}/usr:" \
+ -e "/^MANDIR=/ s:${prefix}/man:${prefix}/share/man:" \
+ -e "/^LIBDIR=/ s:${prefix}/lib:${prefix}/$(get_libdir):" \
+ -e "/^CC=/ s:gcc:$(tc-getCC):" \
+ -e "/^CFLAGS/ s:=-DSYSV3 -O2 -pipe:+=-DSYSV3:" \
+ -e "/strip/ s:^:#:g" \
+ Makefile
+
+ epatch "${FILESDIR}"/${P}-amd64.patch
+ epatch "${FILESDIR}"/${P}-lex-syntax.patch
+}
+
+src_compile() {
+ # no autoconf
+ emake prefix="${D}"/usr || die "emake failed"
+}
+
+src_install () {
+ # yes the makefile is so dumb it can't even make it's own dirs
+ dodir /usr/bin
+ dodir /usr/$(get_libdir)/sc
+ dodir /usr/share/man/man1
+ emake install || die
+
+ sed -i "s:${D}::g" sc.1
+ doman sc.1 psc.1
+
+ dodoc CHANGES README sc.doc psc.doc tutorial.sc
+ dodoc VMS_NOTES ${P}.lsm TODO SC.MACROS
+}