summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2003-09-29 23:57:38 +0000
committerreed <reed@pkgsrc.org>2003-09-29 23:57:38 +0000
commit10e0c982c94f7c4eb1f068158e0f994a4fc2def4 (patch)
tree21f026e1740e08e8f69025ecc049a6586254c64e /math
parenteef23d6867fe4decd2c1141d7d104f85464726bc (diff)
downloadpkgsrc-10e0c982c94f7c4eb1f068158e0f994a4fc2def4.tar.gz
bc 1.06 - Arbitrary precision calculator language
Diffstat (limited to 'math')
-rw-r--r--math/bc/DESCR12
-rw-r--r--math/bc/Makefile24
-rw-r--r--math/bc/PLIST7
-rw-r--r--math/bc/distinfo6
-rw-r--r--math/bc/patches/patch-aa69
-rw-r--r--math/bc/patches/patch-ab45
6 files changed, 163 insertions, 0 deletions
diff --git a/math/bc/DESCR b/math/bc/DESCR
new file mode 100644
index 00000000000..64c9b7bc97a
--- /dev/null
+++ b/math/bc/DESCR
@@ -0,0 +1,12 @@
+Bc is an arbitrary precision calculator language. Syntax is similar
+to C, but differs in many substantial areas. It supports interactive
+execution of statements
+
+It can also be used as a simple console-based calculator.
+
+This GNU version of bc contains several extensions beyond traditional
+bc implementations and the POSIX draft standard.
+
+This package also includes dc, another arbitrary precision calculator.
+Dc is a reverse-polish desk calculator which supports unlimited
+precision arithmetic. It also allows you to define and call macros.
diff --git a/math/bc/Makefile b/math/bc/Makefile
new file mode 100644
index 00000000000..d16dcf599ce
--- /dev/null
+++ b/math/bc/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/09/29 23:57:38 reed Exp $
+
+DISTNAME= bc-1.06
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GNU:=bc/}
+
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://www.gnu.org/software/bc/bc.html
+COMMENT= Arbitrary precision calculator language
+# this provides dc(1) which is essential for pkgsrc installations
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+INFO_FILES= bc.info dc.info
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !exists(/usr/bin/flex)
+BUILD_DEPENDS+= flex-[0-9]*:../../devel/flex
+.endif
+
+.include "../../devel/ncurses/buildlink2.mk"
+.include "../../devel/readline/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/bc/PLIST b/math/bc/PLIST
new file mode 100644
index 00000000000..777b3143e94
--- /dev/null
+++ b/math/bc/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/29 23:57:38 reed Exp $
+bin/bc
+bin/dc
+man/man1/bc.1
+man/man1/dc.1
+info/bc.info
+info/dc.info
diff --git a/math/bc/distinfo b/math/bc/distinfo
new file mode 100644
index 00000000000..4d285c96906
--- /dev/null
+++ b/math/bc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/09/29 23:57:38 reed Exp $
+
+SHA1 (bc-1.06.tar.gz) = c8f258a7355b40a485007c40865480349c157292
+Size (bc-1.06.tar.gz) = 278926 bytes
+SHA1 (patch-aa) = 338b4e1232f4d10dee35183dec16b8da62f0cabf
+SHA1 (patch-ab) = 7f51824877c1573c737c6fa5695d1f2443e3b335
diff --git a/math/bc/patches/patch-aa b/math/bc/patches/patch-aa
new file mode 100644
index 00000000000..ee677e6260c
--- /dev/null
+++ b/math/bc/patches/patch-aa
@@ -0,0 +1,69 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/09/29 23:57:38 reed Exp $
+
+--- doc/bc.info.orig Fri Nov 15 18:09:27 2002
++++ doc/bc.info Fri Nov 15 18:16:06 2002
+@@ -1,4 +1,9 @@
+-This is bc.info, produced by makeinfo version 4.0 from bc.texi.
++This is bc.info, produced by makeinfo version 4.2 from bc.texi.
++
++INFO-DIR-SECTION Mathematics
++START-INFO-DIR-ENTRY
++* bc: (bc). An arbitrary precision calculator language.
++END-INFO-DIR-ENTRY
+
+ 
+ File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
+@@ -971,29 +976,29 @@
+
+ 
+ Tag Table:
+-Node: Top65
+-Node: Introduction354
+-Node: Description515
+-Node: Command Line Options1969
+-Node: Basic Elements2533
+-Node: Numbers2704
+-Node: Variables3467
+-Node: Comments4576
+-Node: Expressions5317
+-Node: About Expressions and Special Variables5597
+-Node: Basic Expressions7333
+-Node: Relational Expressions10274
+-Node: Boolean Expressions11279
+-Node: Precedence11834
+-Node: Special Expressions12994
+-Node: Statements14376
+-Node: Pseudo Statements21001
+-Node: Functions21649
+-Node: Math Library Functions25703
+-Node: Examples26413
+-Node: Readline and Libedit Options28431
+-Node: GNU `bc' and Other Implementations29458
+-Node: Limits34700
+-Node: Environment Variables35953
++Node: Top203
++Node: Introduction492
++Node: Description653
++Node: Command Line Options2107
++Node: Basic Elements2671
++Node: Numbers2842
++Node: Variables3605
++Node: Comments4714
++Node: Expressions5455
++Node: About Expressions and Special Variables5735
++Node: Basic Expressions7471
++Node: Relational Expressions10412
++Node: Boolean Expressions11417
++Node: Precedence11972
++Node: Special Expressions13132
++Node: Statements14514
++Node: Pseudo Statements21139
++Node: Functions21787
++Node: Math Library Functions25841
++Node: Examples26551
++Node: Readline and Libedit Options28569
++Node: GNU `bc' and Other Implementations29596
++Node: Limits34838
++Node: Environment Variables36091
+ 
+ End Tag Table
diff --git a/math/bc/patches/patch-ab b/math/bc/patches/patch-ab
new file mode 100644
index 00000000000..26e77477f3f
--- /dev/null
+++ b/math/bc/patches/patch-ab
@@ -0,0 +1,45 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/09/29 23:57:39 reed Exp $
+
+--- doc/dc.info.orig Fri Nov 15 18:09:53 2002
++++ doc/dc.info Fri Nov 15 18:16:01 2002
+@@ -1,4 +1,9 @@
+-This is dc.info, produced by makeinfo version 4.0 from dc.texi.
++This is dc.info, produced by makeinfo version 4.2 from dc.texi.
++
++INFO-DIR-SECTION Mathematics
++START-INFO-DIR-ENTRY
++* dc: (dc). A reverse-polish arbitrary precision calculator.
++END-INFO-DIR-ENTRY
+
+ START-INFO-DIR-ENTRY
+ * dc: (dc). Arbritrary precision RPN "Desktop Calculator".
+@@ -425,17 +430,17 @@
+
+ 
+ Tag Table:
+-Node: Top1084
+-Node: Introduction1663
+-Node: Invocation2880
+-Node: Printing Commands3724
+-Node: Arithmetic4902
+-Node: Stack Control7815
+-Node: Registers8228
+-Node: Parameters9154
+-Node: Strings10415
+-Node: Status Inquiry13385
+-Node: Miscellaneous13942
+-Node: Reporting bugs14909
++Node: Top1227
++Node: Introduction1806
++Node: Invocation3023
++Node: Printing Commands3867
++Node: Arithmetic5045
++Node: Stack Control7958
++Node: Registers8371
++Node: Parameters9297
++Node: Strings10558
++Node: Status Inquiry13528
++Node: Miscellaneous14085
++Node: Reporting bugs15052
+ 
+ End Tag Table