summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bc/.footprint13
-rw-r--r--bc/.md5sum3
-rw-r--r--bc/.sha256sum3
-rw-r--r--bc/Pkgfile22
-rw-r--r--bc/Pkgfile.old21
-rw-r--r--bc/bc-1.06-compile_fixes.patch46
-rw-r--r--bc/bc-1.06-fixes-1.patch27
7 files changed, 135 insertions, 0 deletions
diff --git a/bc/.footprint b/bc/.footprint
new file mode 100644
index 0000000..ad8dd8f
--- /dev/null
+++ b/bc/.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/bc
+-rwxr-xr-x root/root usr/bin/dc
+drwxr-xr-x root/root usr/info/
+-rw-r--r-- root/root usr/info/bc.info
+-rw-r--r-- root/root usr/info/dc.info
+-rw-r--r-- root/root usr/info/dir
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/bc.1.bz2
+-rw-r--r-- root/root usr/share/man/man1/dc.1.bz2
diff --git a/bc/.md5sum b/bc/.md5sum
new file mode 100644
index 0000000..e17476d
--- /dev/null
+++ b/bc/.md5sum
@@ -0,0 +1,3 @@
+b19042e2bbfaa17cd45f20ebdf6706f0 bc-1.06-compile_fixes.patch
+4df5b02cb0696403ef847b35aab498ba bc-1.06-fixes-1.patch
+d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz
diff --git a/bc/.sha256sum b/bc/.sha256sum
new file mode 100644
index 0000000..dc9de56
--- /dev/null
+++ b/bc/.sha256sum
@@ -0,0 +1,3 @@
+c453aedc451ad823f3fcfc09364e232d10945daf85abc2c23a2c5bed0de49541 bc-1.06-compile_fixes.patch
+ec69b952a2c93c840f6d58661741686134993c31cac4033e3a3a8b3574c78cda bc-1.06-fixes-1.patch
+4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33 bc-1.06.tar.gz
diff --git a/bc/Pkgfile b/bc/Pkgfile
new file mode 100644
index 0000000..375a39c
--- /dev/null
+++ b/bc/Pkgfile
@@ -0,0 +1,22 @@
+description="An arbitrary precision calculator language"
+packager="CRUX System Team <core-ports AT crux DOT nu>"
+maintainer="Lukc <lukc AT upyum DOT com>"
+url="http://www.gnu.org/software/bc/bc.html"
+depends=(ncurses readline)
+
+name=bc
+version=1.06
+release=3
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz $name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
+build ()
+{
+ cd $name-$version;
+ patch -p1 < ../$name-$version-compile_fixes.patch;
+ patch -p1 < ../$name-$version-fixes-1.patch;
+ ./configure --prefix=$prefix --mandir=$mandir --with-readline;
+ make;
+ make DESTDIR=$PKG install;
+ #if ! use info; then
+ # rm -rf $PKG/usr/info
+ #fi
+}
diff --git a/bc/Pkgfile.old b/bc/Pkgfile.old
new file mode 100644
index 0000000..eb21ba4
--- /dev/null
+++ b/bc/Pkgfile.old
@@ -0,0 +1,21 @@
+# Description: An arbitrary precision calculator language
+# URL: http://www.gnu.org/software/bc/bc.html
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+# Depends on: ncurses, readline
+
+name=bc
+version=1.06
+release=3
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
+ $name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
+
+build() {
+ cd $name-$version
+ patch -p1 < ../$name-$version-compile_fixes.patch
+ patch -p1 < ../$name-$version-fixes-1.patch
+
+ ./configure --prefix=/usr --with-readline
+ make
+ make DESTDIR=$PKG install
+ rm -rf $PKG/usr/info
+}
diff --git a/bc/bc-1.06-compile_fixes.patch b/bc/bc-1.06-compile_fixes.patch
new file mode 100644
index 0000000..88cf738
--- /dev/null
+++ b/bc/bc-1.06-compile_fixes.patch
@@ -0,0 +1,46 @@
+diff -ru bc-1.06/bc/load.c bc-1.06-new/bc/load.c
+--- bc-1.06/bc/load.c 2000-09-13 20:22:38.000000000 +0200
++++ bc-1.06-new/bc/load.c 2004-05-01 14:25:08.164146592 +0200
+@@ -34,7 +34,7 @@
+
+ /* Load variables. */
+
+-program_counter load_adr;
++static program_counter load_adr;
+ char load_str;
+ char load_const;
+
+diff -ru bc-1.06/bc/scan.l bc-1.06-new/bc/scan.l
+--- bc-1.06/bc/scan.l 2000-09-13 20:25:47.000000000 +0200
++++ bc-1.06-new/bc/scan.l 2004-05-01 14:21:02.765452864 +0200
+@@ -143,7 +143,6 @@
+
+ /* Definitions for readline access. */
+ extern FILE *rl_instream;
+-_PROTOTYPE(char *readline, (char *));
+
+ /* rl_input puts upto MAX characters into BUF with the number put in
+ BUF placed in *RESULT. If the yy input file is the same as
+diff -ru bc-1.06/configure bc-1.06-new/configure
+--- bc-1.06/configure 2000-10-03 20:34:24.000000000 +0200
++++ bc-1.06-new/configure 2004-05-01 14:21:27.159744368 +0200
+@@ -2245,7 +2245,7 @@
+
+
+ if test "$LEX" = "flex" ; then
+- LEX="flex -I8"
++ LEX="flex -I"
+ else
+ if test "$bcrl" = "y" ; then
+ echo "configure: warning: readline works only with flex." 1>&2
+diff -ru bc-1.06/lib/number.c bc-1.06-new/lib/number.c
+--- bc-1.06/lib/number.c 2000-10-03 20:34:25.000000000 +0200
++++ bc-1.06-new/lib/number.c 2004-05-01 14:24:41.028271872 +0200
+@@ -30,6 +30,7 @@
+ *************************************************************************/
+
+ #include <stdio.h>
++#include <string.h>
+ #include <config.h>
+ #include <number.h>
+ #include <assert.h>
diff --git a/bc/bc-1.06-fixes-1.patch b/bc/bc-1.06-fixes-1.patch
new file mode 100644
index 0000000..afcdba2
--- /dev/null
+++ b/bc/bc-1.06-fixes-1.patch
@@ -0,0 +1,27 @@
+Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
+Date: 2003-09-26
+Initial Package Version: 1.06
+Origin: Mandrake CVS
+Description: Fixes a few typos
+
+--- bc-1.06/lib/number.c.orig 2003-09-26 21:14:02.000000000 +0000
++++ bc-1.06/lib/number.c 2003-09-26 21:14:26.000000000 +0000
+@@ -34,6 +34,7 @@
+ #include <number.h>
+ #include <assert.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <ctype.h>/* Prototypes needed for external utility routines. */
+
+ #define bc_rt_warn rt_warn
+--- bc-1.06/bc/load.c.orig 2003-09-26 21:14:14.000000000 +0000
++++ bc-1.06/bc/load.c 2003-09-26 21:14:26.000000000 +0000
+@@ -156,7 +156,7 @@
+ long label_no;
+ long vaf_name; /* variable, array or function number. */
+ long func;
+- program_counter save_adr;
++ static program_counter save_adr;
+
+ /* Initialize. */
+ str = code;