From 45ed8098d138a6c1c9439cb0d7fa3138cb48954f Mon Sep 17 00:00:00 2001 From: Danny van Dyk Date: Sun, 11 Jul 2004 21:00:15 +0000 Subject: Fixed BUG #52737. --- app-office/sc/files/sc-7.12-amd64.patch | 13 +++++++++++++ app-office/sc/sc-7.12.ebuild | 10 +++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 app-office/sc/files/sc-7.12-amd64.patch (limited to 'app-office/sc') 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 + #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 } -- cgit v1.2.3-65-gdbad