summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny van Dyk <kugelfang@gentoo.org>2004-07-11 21:00:15 +0000
committerDanny van Dyk <kugelfang@gentoo.org>2004-07-11 21:00:15 +0000
commit45ed8098d138a6c1c9439cb0d7fa3138cb48954f (patch)
treec9f3621fe92d4a261ddf56947ae5a44bc5b405dd /app-office/sc
parentversion bump (Manifest recommit) (diff)
downloadgentoo-2-45ed8098d138a6c1c9439cb0d7fa3138cb48954f.tar.gz
gentoo-2-45ed8098d138a6c1c9439cb0d7fa3138cb48954f.tar.bz2
gentoo-2-45ed8098d138a6c1c9439cb0d7fa3138cb48954f.zip
Fixed BUG #52737.
Diffstat (limited to 'app-office/sc')
-rw-r--r--app-office/sc/files/sc-7.12-amd64.patch13
-rw-r--r--app-office/sc/sc-7.12.ebuild10
2 files changed, 22 insertions, 1 deletions
diff --git a/app-office/sc/files/sc-7.12-amd64.patch b/app-office/sc/files/sc-7.12-amd64.patch
new file mode 100644
index 000000000000..2133ed42e325
--- /dev/null
+++ b/app-office/sc/files/sc-7.12-amd64.patch
@@ -0,0 +1,13 @@
+--- 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/sc-7.12.ebuild b/app-office/sc/sc-7.12.ebuild
index a3bcb981fae9..13aba428bbaa 100644
--- a/app-office/sc/sc-7.12.ebuild
+++ b/app-office/sc/sc-7.12.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/sc/sc-7.12.ebuild,v 1.17 2004/07/02 16:39:08 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/sc/sc-7.12.ebuild,v 1.18 2004/07/11 21:00:15 kugelfang Exp $
+
+inherit eutils
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"
@@ -14,6 +16,12 @@ IUSE=""
DEPEND=">=sys-apps/sed-4.0.5
>=sys-libs/ncurses-5.2"
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-amd64.patch
+}
+
src_compile() {
make CFLAGS="-DSYSV3 $CFLAGS" prefix=/usr || die
}