summaryrefslogtreecommitdiff
path: root/bc
diff options
context:
space:
mode:
authorJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
committerJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
commite3afe2298e821d7f5860128720e665d8fb3bd641 (patch)
treebfb499432688352b1140b13ad8252c8e4e739006 /bc
downloadcore-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.gz
core-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.xz
create branch for 2.2
Diffstat (limited to 'bc')
-rw-r--r--bc/.footprint8
-rw-r--r--bc/.md5sum2
-rw-r--r--bc/Pkgfile19
-rw-r--r--bc/bc-1.06-compile_fixes.patch46
4 files changed, 75 insertions, 0 deletions
diff --git a/bc/.footprint b/bc/.footprint
new file mode 100644
index 00000000..23a41d16
--- /dev/null
+++ b/bc/.footprint
@@ -0,0 +1,8 @@
+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/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/bc.1.gz
+-rw-r--r-- root/root usr/man/man1/dc.1.gz
diff --git a/bc/.md5sum b/bc/.md5sum
new file mode 100644
index 00000000..ded45dfe
--- /dev/null
+++ b/bc/.md5sum
@@ -0,0 +1,2 @@
+b19042e2bbfaa17cd45f20ebdf6706f0 bc-1.06-compile_fixes.patch
+d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz
diff --git a/bc/Pkgfile b/bc/Pkgfile
new file mode 100644
index 00000000..6f376e6b
--- /dev/null
+++ b/bc/Pkgfile
@@ -0,0 +1,19 @@
+# Description: An arbitrary precision calculator language
+# URL: http://www.gnu.org/software/bc/bc.html
+# Maintainer: Per Lidén <per@fukt.bth.se>
+# Depends on: ncurses, readline
+
+name=bc
+version=1.06
+release=2
+source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.gz \
+ $name-$version-compile_fixes.patch)
+
+build() {
+ cd $name-$version
+ patch -p1 < ../$name-$version-compile_fixes.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 00000000..88cf7384
--- /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>

Generated by cgit