summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2000-11-26 23:35:17 +0000
committerjtb <jtb@pkgsrc.org>2000-11-26 23:35:17 +0000
commit3c104a023e8f791658c2dcea64f0844360d457a8 (patch)
tree36f8916f6d7067053d406ebd461067c6ba34ea9d /math
parent9617b9de5edeffe143444588eaded5f7c53f9f74 (diff)
downloadpkgsrc-3c104a023e8f791658c2dcea64f0844360d457a8.tar.gz
Initial import of new "calc" package:
Advanced Calculator for GNU Emacs
Diffstat (limited to 'math')
-rw-r--r--math/calc/Makefile23
-rw-r--r--math/calc/files/md53
-rw-r--r--math/calc/files/patch-sum4
-rw-r--r--math/calc/patches/patch-aa40
-rw-r--r--math/calc/patches/patch-ab28
-rw-r--r--math/calc/pkg/COMMENT1
-rw-r--r--math/calc/pkg/DESCR24
-rw-r--r--math/calc/pkg/MESSAGE21
-rw-r--r--math/calc/pkg/PLIST125
9 files changed, 269 insertions, 0 deletions
diff --git a/math/calc/Makefile b/math/calc/Makefile
new file mode 100644
index 00000000000..0b9fffd5b0e
--- /dev/null
+++ b/math/calc/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/11/26 23:35:17 jtb Exp $
+
+DISTNAME= calc-2.02f
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GNU:=calc/}
+
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= http://www.gnu.org/software/calc/calc.html
+
+DEPENDS+= emacs>=20.0:../../editors/emacs
+
+EVAL_PREFIX+= PREFIX=emacs
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp/calc
+ @(cd ${WRKSRC}; for i in *.el *.elc calccard.tex; do \
+ ${INSTALL_DATA} $$i ${PREFIX}/share/emacs/site-lisp/calc ; \
+ done)
+ ${INSTALL_DATA} ${WRKSRC}/calc.info* ${PREFIX}/info
+ @install-info --dir-file=${PREFIX}/info/dir \
+ --info-file=${PREFIX}/info/calc.info
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/calc/files/md5 b/math/calc/files/md5
new file mode 100644
index 00000000000..52104b7eda8
--- /dev/null
+++ b/math/calc/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/11/26 23:35:18 jtb Exp $
+
+MD5 (calc-2.02f.tar.gz) = fbeb5535bdc35a8dbca3a8482ea2984a
diff --git a/math/calc/files/patch-sum b/math/calc/files/patch-sum
new file mode 100644
index 00000000000..1aaf1c2a81b
--- /dev/null
+++ b/math/calc/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/11/26 23:35:18 jtb Exp $
+
+MD5 (patch-aa) = 231f0f1125d297d751b3ae286c7c86fb
+MD5 (patch-ab) = 681cc7458f9d632487e139d191c1d3cb
diff --git a/math/calc/patches/patch-aa b/math/calc/patches/patch-aa
new file mode 100644
index 00000000000..e9b7380d393
--- /dev/null
+++ b/math/calc/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/11/26 23:35:19 jtb Exp $
+
+--- Makefile.orig Mon Dec 16 04:50:45 1996
++++ Makefile
+@@ -32,7 +32,7 @@
+ EMACS = emacs
+ TEX = tex
+ TEXINDEX = texindex
+-MAKEINFO = makeinfo
++MAKEINFO = makeinfo --no-validate
+ MAKE = make
+ ECHO = @echo
+ REMOVE = -rm -f
+@@ -54,13 +54,10 @@
+ # to make the steps more explicit while the `make' is in progress.
+ all:
+ $(MAKE) compile
+- $(MAKE) private
+ $(MAKE) info
+- $(ECHO) "Calc is now installed."
+
+ install:
+ $(MAKE) compile
+- $(MAKE) public
+ $(MAKE) info
+ $(ECHO) "Calc is now installed."
+
+@@ -83,9 +80,9 @@
+ # Format the Calc manual for the Info system using makeinfo.
+ info: calc.info
+ calc.info: calc.texinfo
+- -$(MAKEINFO) calc.texinfo
+- $(ECHO) "Please ignore warnings for Copying, Getting Started, and Interactive Tutorial."
+- $(MAKE) texinfo
++ $(MAKEINFO) calc.texinfo
++# $(ECHO) "Please ignore warnings for Copying, Getting Started, and Interactive Tutorial."
++# $(MAKE) texinfo
+
+
+ # Format the Calc manual for the Info system using texinfo.el.
diff --git a/math/calc/patches/patch-ab b/math/calc/patches/patch-ab
new file mode 100644
index 00000000000..0481a830caf
--- /dev/null
+++ b/math/calc/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/11/26 23:35:19 jtb Exp $
+
+--- calc.texinfo.orig Sun Dec 15 20:50:57 1996
++++ calc.texinfo
+@@ -7,6 +7,14 @@
+ @setchapternewpage odd
+ @comment %**end of header (This is for running Texinfo on a region.)
+
++@ifinfo
++@format
++START-INFO-DIR-ENTRY
++* Calc: (calc). GNU Emacs Calculator.
++END-INFO-DIR-ENTRY
++@end format
++@end ifinfo
++
+ @tex
+ % Some special kludges to make TeX formatting prettier.
+ % Because makeinfo.c exists, we can't just define new commands.
+@@ -242,7 +250,7 @@
+ @c [begin]
+ @ifinfo
+ @node Top, Getting Started,, (dir)
+-@ichapter The GNU Emacs Calculator
++@chapter The GNU Emacs Calculator
+
+ @noindent
+ @dfn{Calc 2.02} is an advanced desk calculator and mathematical tool
diff --git a/math/calc/pkg/COMMENT b/math/calc/pkg/COMMENT
new file mode 100644
index 00000000000..9f95b9b05bc
--- /dev/null
+++ b/math/calc/pkg/COMMENT
@@ -0,0 +1 @@
+Advanced Calculator for GNU Emacs
diff --git a/math/calc/pkg/DESCR b/math/calc/pkg/DESCR
new file mode 100644
index 00000000000..8999877cd23
--- /dev/null
+++ b/math/calc/pkg/DESCR
@@ -0,0 +1,24 @@
+"Calc" is an advanced calculator and mathematical tool that runs as
+part of the GNU Emacs environment. Very roughly based on the HP-28/48
+series of calculators, its many features include:
+
+ * Choice of algebraic or RPN (stack-based) entry of calculations.
+ * Arbitrary precision integers and floating-point numbers.
+ * Arithmetic on rational numbers, complex numbers (rectangular and
+ polar), error forms with standard deviations, open and closed
+ intervals, vectors and matrices, dates and times, infinities,
+ sets, quantities with units, and algebraic formulas.
+ * Mathematical operations such as logarithms and trigonometric
+ functions.
+ * Programmer's features (bitwise operations, non-decimal numbers).
+ * Financial functions such as future value and internal rate of
+ return.
+ * Number theoretical features such as prime factorization and
+ arithmetic modulo M for any M.
+ * Algebraic manipulation features, including symbolic calculus.
+ * Moving data to and from regular editing buffers.
+ * "Embedded mode" for manipulating Calc formulas and data directly
+ inside any editing buffer.
+ * Graphics using GNUPLOT, a versatile (and free) plotting program.
+ * Easy programming using keyboard macros, algebraic formulas,
+ algebraic rewrite rules, or extended Emacs Lisp.
diff --git a/math/calc/pkg/MESSAGE b/math/calc/pkg/MESSAGE
new file mode 100644
index 00000000000..efb2f7cffe7
--- /dev/null
+++ b/math/calc/pkg/MESSAGE
@@ -0,0 +1,21 @@
+============================================================================
+
+To use calc add the following lines to your .emacs.el file.
+
+(autoload 'calc-dispatch "calc" "Calculator Options" t)
+(autoload 'full-calc "calc" "Full-screen Calculator" t)
+(autoload 'full-calc-keypad "calc" "Full-screen X Calculator" t)
+(autoload 'calc-eval "calc" "Use Calculator from Lisp")
+(autoload 'defmath "calc" nil t t)
+(autoload 'calc "calc" "Calculator Mode" t)
+(autoload 'quick-calc "calc" "Quick Calculator" t)
+(autoload 'calc-keypad "calc" "X windows Calculator" t)
+(autoload 'calc-embedded "calc" "Use Calc inside any buffer" t)
+(autoload 'calc-embedded-activate "calc" "Activate =>'s in buffer" t)
+(autoload 'calc-grab-region "calc" "Grab region of Calc data" t)
+(autoload 'calc-grab-rectangle "calc" "Grab rectangle of data" t)
+(global-set-key "\e#" 'calc-dispatch)
+
+You could also put this in the site initialization file 'default.el'.
+
+============================================================================
diff --git a/math/calc/pkg/PLIST b/math/calc/pkg/PLIST
new file mode 100644
index 00000000000..03776847f04
--- /dev/null
+++ b/math/calc/pkg/PLIST
@@ -0,0 +1,125 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/11/26 23:35:18 jtb Exp $
+@unexec install-info --delete --info-dir=%D/info %D/info/calc.info
+info/calc.info
+info/calc.info-1
+info/calc.info-10
+info/calc.info-11
+info/calc.info-12
+info/calc.info-13
+info/calc.info-14
+info/calc.info-15
+info/calc.info-16
+info/calc.info-17
+info/calc.info-18
+info/calc.info-19
+info/calc.info-2
+info/calc.info-20
+info/calc.info-21
+info/calc.info-22
+info/calc.info-23
+info/calc.info-24
+info/calc.info-25
+info/calc.info-26
+info/calc.info-27
+info/calc.info-28
+info/calc.info-29
+info/calc.info-3
+info/calc.info-30
+info/calc.info-31
+info/calc.info-32
+info/calc.info-33
+info/calc.info-34
+info/calc.info-4
+info/calc.info-5
+info/calc.info-6
+info/calc.info-7
+info/calc.info-8
+info/calc.info-9
+@exec install-info --info-dir=%D/info %D/info/calc.info
+share/emacs/site-lisp/calc/calc-aent.el
+share/emacs/site-lisp/calc/calc-aent.elc
+share/emacs/site-lisp/calc/calc-alg-2.el
+share/emacs/site-lisp/calc/calc-alg-2.elc
+share/emacs/site-lisp/calc/calc-alg-3.el
+share/emacs/site-lisp/calc/calc-alg-3.elc
+share/emacs/site-lisp/calc/calc-alg.el
+share/emacs/site-lisp/calc/calc-alg.elc
+share/emacs/site-lisp/calc/calc-arith.el
+share/emacs/site-lisp/calc/calc-arith.elc
+share/emacs/site-lisp/calc/calc-bin.el
+share/emacs/site-lisp/calc/calc-bin.elc
+share/emacs/site-lisp/calc/calc-comb.el
+share/emacs/site-lisp/calc/calc-comb.elc
+share/emacs/site-lisp/calc/calc-comp.el
+share/emacs/site-lisp/calc/calc-comp.elc
+share/emacs/site-lisp/calc/calc-cplx.el
+share/emacs/site-lisp/calc/calc-cplx.elc
+share/emacs/site-lisp/calc/calc-embed.el
+share/emacs/site-lisp/calc/calc-embed.elc
+share/emacs/site-lisp/calc/calc-ext.el
+share/emacs/site-lisp/calc/calc-ext.elc
+share/emacs/site-lisp/calc/calc-fin.el
+share/emacs/site-lisp/calc/calc-fin.elc
+share/emacs/site-lisp/calc/calc-forms.el
+share/emacs/site-lisp/calc/calc-forms.elc
+share/emacs/site-lisp/calc/calc-frac.el
+share/emacs/site-lisp/calc/calc-frac.elc
+share/emacs/site-lisp/calc/calc-funcs.el
+share/emacs/site-lisp/calc/calc-funcs.elc
+share/emacs/site-lisp/calc/calc-graph.el
+share/emacs/site-lisp/calc/calc-graph.elc
+share/emacs/site-lisp/calc/calc-help.el
+share/emacs/site-lisp/calc/calc-help.elc
+share/emacs/site-lisp/calc/calc-incom.el
+share/emacs/site-lisp/calc/calc-incom.elc
+share/emacs/site-lisp/calc/calc-keypd.el
+share/emacs/site-lisp/calc/calc-keypd.elc
+share/emacs/site-lisp/calc/calc-lang.el
+share/emacs/site-lisp/calc/calc-lang.elc
+share/emacs/site-lisp/calc/calc-macs.el
+share/emacs/site-lisp/calc/calc-macs.elc
+share/emacs/site-lisp/calc/calc-maint.el
+share/emacs/site-lisp/calc/calc-maint.elc
+share/emacs/site-lisp/calc/calc-map.el
+share/emacs/site-lisp/calc/calc-map.elc
+share/emacs/site-lisp/calc/calc-mat.el
+share/emacs/site-lisp/calc/calc-mat.elc
+share/emacs/site-lisp/calc/calc-math.el
+share/emacs/site-lisp/calc/calc-math.elc
+share/emacs/site-lisp/calc/calc-misc.el
+share/emacs/site-lisp/calc/calc-misc.elc
+share/emacs/site-lisp/calc/calc-mode.el
+share/emacs/site-lisp/calc/calc-mode.elc
+share/emacs/site-lisp/calc/calc-poly.el
+share/emacs/site-lisp/calc/calc-poly.elc
+share/emacs/site-lisp/calc/calc-prog.el
+share/emacs/site-lisp/calc/calc-prog.elc
+share/emacs/site-lisp/calc/calc-rewr.el
+share/emacs/site-lisp/calc/calc-rewr.elc
+share/emacs/site-lisp/calc/calc-rules.el
+share/emacs/site-lisp/calc/calc-rules.elc
+share/emacs/site-lisp/calc/calc-sel-2.el
+share/emacs/site-lisp/calc/calc-sel-2.elc
+share/emacs/site-lisp/calc/calc-sel.el
+share/emacs/site-lisp/calc/calc-sel.elc
+share/emacs/site-lisp/calc/calc-stat.el
+share/emacs/site-lisp/calc/calc-stat.elc
+share/emacs/site-lisp/calc/calc-store.el
+share/emacs/site-lisp/calc/calc-store.elc
+share/emacs/site-lisp/calc/calc-stuff.el
+share/emacs/site-lisp/calc/calc-stuff.elc
+share/emacs/site-lisp/calc/calc-trail.el
+share/emacs/site-lisp/calc/calc-trail.elc
+share/emacs/site-lisp/calc/calc-undo.el
+share/emacs/site-lisp/calc/calc-undo.elc
+share/emacs/site-lisp/calc/calc-units.el
+share/emacs/site-lisp/calc/calc-units.elc
+share/emacs/site-lisp/calc/calc-vec.el
+share/emacs/site-lisp/calc/calc-vec.elc
+share/emacs/site-lisp/calc/calc-yank.el
+share/emacs/site-lisp/calc/calc-yank.elc
+share/emacs/site-lisp/calc/calc.el
+share/emacs/site-lisp/calc/calc.elc
+share/emacs/site-lisp/calc/calccard.tex
+share/emacs/site-lisp/calc/macedit.el
+@dirrm share/emacs/site-lisp/calc