diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
commit | bdea7e6c6a535e57a07d376a3139d0788efaaa41 (patch) | |
tree | 1a7334c99fa39b1ad1a7a35c113b18cb0d92413c /sc | |
download | opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.gz opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.xz |
create branch for 2.2
Diffstat (limited to 'sc')
-rw-r--r-- | sc/.footprint | 13 | ||||
-rw-r--r-- | sc/.md5sum | 2 | ||||
-rw-r--r-- | sc/Pkgfile | 20 | ||||
-rw-r--r-- | sc/sc-7.16.patch | 30 |
4 files changed, 65 insertions, 0 deletions
diff --git a/sc/.footprint b/sc/.footprint new file mode 100644 index 000000000..bc9264b7b --- /dev/null +++ b/sc/.footprint @@ -0,0 +1,13 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/psc +-rwxr-xr-x root/root usr/bin/sc +-rwxr-xr-x root/root usr/bin/scqref +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/sc/ +drwxr-xr-x root/root usr/lib/sc/plugins/ +-rw-r--r-- root/root usr/lib/sc/tutorial.sc +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/psc.1.gz +-rw-r--r-- root/root usr/man/man1/sc.1.gz diff --git a/sc/.md5sum b/sc/.md5sum new file mode 100644 index 000000000..22326f75e --- /dev/null +++ b/sc/.md5sum @@ -0,0 +1,2 @@ +26b011283b3fef961510b34a2ac1c334 sc-7.16.patch +1db636e9b2dc7cd73c40aeece6852d47 sc-7.16.tar.gz diff --git a/sc/Pkgfile b/sc/Pkgfile new file mode 100644 index 000000000..32aea4876 --- /dev/null +++ b/sc/Pkgfile @@ -0,0 +1,20 @@ +# Description: Curses based spreadsheet with vi key-bindings +# URL: http://www.ibiblio.org/pub/Linux/apps/financial/spreadsheet/ +# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de +# Depends on: ncurses + +name=sc +version=7.16 +release=2 +source=(http://www.ibiblio.org/pub/Linux/apps/financial/spreadsheet/$name-$version.tar.gz \ + $name-$version.patch) + +build () { + cd $name-$version + patch -p1 < $SRC/$name-$version.patch + sed -i "/^CFLAGS/s/-O2 -pipe/$CFLAGS/" Makefile + make + mkdir -p $PKG/usr/{bin,man/man1,lib/sc} + make prefix=$PKG/usr install + sed -i "s|$PKG||g" $PKG/usr/man/man1/sc.1 +} diff --git a/sc/sc-7.16.patch b/sc/sc-7.16.patch new file mode 100644 index 000000000..1d113abc7 --- /dev/null +++ b/sc/sc-7.16.patch @@ -0,0 +1,30 @@ +diff -Nru sc-7.16.orig/vi.c sc-7.16/vi.c +--- sc-7.16.orig/vi.c 2005-04-02 14:49:15.000000000 +0200 ++++ sc-7.16/vi.c 2005-04-02 14:55:05.000000000 +0200 +@@ -40,7 +40,7 @@ + + #define istext(a) (isalnum(a) || ((a) == '_')) + +-#define bool int ++/*#define bool int*/ + #define true 1 + #define false 0 + +diff -Nru sc-7.16.orig/xmalloc.c sc-7.16/xmalloc.c +--- sc-7.16.orig/xmalloc.c 2005-04-02 14:49:15.000000000 +0200 ++++ sc-7.16/xmalloc.c 2005-04-02 14:50:06.000000000 +0200 +@@ -4,11 +4,12 @@ + */ + + #include <curses.h> ++#include <stdlib.h> + #include "sc.h" + +-extern char *malloc(); ++/* extern char *malloc(); + extern char *realloc(); +-extern void free(); ++extern void free(); */ + void fatal(); + + #ifdef SYSV3 |