diff options
author | agc <agc> | 2002-01-28 11:27:06 +0000 |
---|---|---|
committer | agc <agc> | 2002-01-28 11:27:06 +0000 |
commit | 17776dd3321c4848caf9a110103829843dfdbbed (patch) | |
tree | 1755f27e352697e08701f7d15d370a4076c7ccf7 /math | |
parent | b8c19016bf4324eac53adc2c80f1181613cdb2d0 (diff) | |
download | pkgsrc-17776dd3321c4848caf9a110103829843dfdbbed.tar.gz |
Initial import of David Bell's calc into the NetBSD Packages Collection, due
to popular demand.
Calc is an arbitrary precision C-like programmable calculator with many
builtin functions. The basic data types are integers, fractions,
complex numbers, strings, matrices, associations, lists, files, and
user-definable "objects". You can use it interactively to evaluate
expressions line by line, or else you can write complicated programs in
its C-like language. There are many features which I will not bother
to describe here.
Calc is written entirely in C, and runs on many different platforms and
variants of UNIX.
The low-level arbitrary precision math routines have been organized into
three libraries for handling integers, fractions, and complex numbers.
You can call the routines in these libraries from your own C programs.
Diffstat (limited to 'math')
-rw-r--r-- | math/dbell-calc/DESCR | 14 | ||||
-rw-r--r-- | math/dbell-calc/Makefile | 15 | ||||
-rw-r--r-- | math/dbell-calc/PLIST | 464 | ||||
-rw-r--r-- | math/dbell-calc/distinfo | 5 | ||||
-rw-r--r-- | math/dbell-calc/patches/patch-aa | 43 |
5 files changed, 541 insertions, 0 deletions
diff --git a/math/dbell-calc/DESCR b/math/dbell-calc/DESCR new file mode 100644 index 00000000000..bd50894c48e --- /dev/null +++ b/math/dbell-calc/DESCR @@ -0,0 +1,14 @@ +Calc is an arbitrary precision C-like programmable calculator with many +builtin functions. The basic data types are integers, fractions, +complex numbers, strings, matrices, associations, lists, files, and +user-definable "objects". You can use it interactively to evaluate +expressions line by line, or else you can write complicated programs in +its C-like language. There are many features which I will not bother +to describe here. + +Calc is written entirely in C, and runs on many different platforms and +variants of UNIX. + +The low-level arbitrary precision math routines have been organized into +three libraries for handling integers, fractions, and complex numbers. +You can call the routines in these libraries from your own C programs. diff --git a/math/dbell-calc/Makefile b/math/dbell-calc/Makefile new file mode 100644 index 00000000000..ab696da890c --- /dev/null +++ b/math/dbell-calc/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/01/28 11:27:06 agc Exp $ +# + +DISTNAME= calc-2.11.5t4.4 +PKGNAME= dbell-calc-2.11.5.4.4 +CATEGORIES= math +MASTER_SITES= ftp://ftp.uu.net/pub/calc/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://sources.isc.org/apps/calculator/calc-2.9.0.txt +COMMENT= arbitrary precision C-like programmable calculator + +.include "../../devel/readline/buildlink.mk" +.include "../../devel/ncurses/buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/dbell-calc/PLIST b/math/dbell-calc/PLIST new file mode 100644 index 00000000000..f05a1219426 --- /dev/null +++ b/math/dbell-calc/PLIST @@ -0,0 +1,464 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/28 11:27:06 agc Exp $ +bin/calc +share/calc/help/intro +share/calc/help/overview +share/calc/help/help +share/calc/help/assoc +share/calc/help/command +share/calc/help/config +share/calc/help/custom +share/calc/help/define +share/calc/help/environment +share/calc/help/expression +share/calc/help/file +share/calc/help/history +share/calc/help/interrupt +share/calc/help/list +share/calc/help/mat +share/calc/help/operator +share/calc/help/statement +share/calc/help/types +share/calc/help/usage +share/calc/help/script +share/calc/help/unexpected +share/calc/help/variable +share/calc/help/archive +share/calc/help/contrib +share/calc/help/credit +share/calc/help/wishlist +share/calc/help/todo +share/calc/help/builtin +share/calc/help/errorcodes +share/calc/help/resource +share/calc/help/cscript +share/calc/help/bindings +share/calc/help/custom_cal +share/calc/help/libcalc +share/calc/help/new_custom +share/calc/help/bugs +share/calc/help/changes +share/calc/help/COPYING +share/calc/help/COPYING-LGPL +share/calc/help/full +share/calc/help/abs +share/calc/help/access +share/calc/help/acos +share/calc/help/acosh +share/calc/help/acot +share/calc/help/acoth +share/calc/help/acsc +share/calc/help/acsch +share/calc/help/address +share/calc/help/agd +share/calc/help/append +share/calc/help/appr +share/calc/help/arg +share/calc/help/argv +share/calc/help/arrow +share/calc/help/asec +share/calc/help/asech +share/calc/help/asin +share/calc/help/asinh +share/calc/help/assign +share/calc/help/atan +share/calc/help/atan2 +share/calc/help/atanh +share/calc/help/avg +share/calc/help/base +share/calc/help/bernoulli +share/calc/help/bit +share/calc/help/blk +share/calc/help/blkcpy +share/calc/help/blkfree +share/calc/help/blocks +share/calc/help/bround +share/calc/help/btrunc +share/calc/help/calc_tty +share/calc/help/calclevel +share/calc/help/catalan +share/calc/help/ceil +share/calc/help/cfappr +share/calc/help/cfsim +share/calc/help/char +share/calc/help/cmdbuf +share/calc/help/cmp +share/calc/help/comb +share/calc/help/conj +share/calc/help/cos +share/calc/help/cosh +share/calc/help/cot +share/calc/help/coth +share/calc/help/count +share/calc/help/cp +share/calc/help/csc +share/calc/help/csch +share/calc/help/ctime +share/calc/help/delete +share/calc/help/den +share/calc/help/dereference +share/calc/help/det +share/calc/help/digit +share/calc/help/digits +share/calc/help/dp +share/calc/help/epsilon +share/calc/help/errcount +share/calc/help/errmax +share/calc/help/errno +share/calc/help/error +share/calc/help/euler +share/calc/help/eval +share/calc/help/exp +share/calc/help/fact +share/calc/help/factor +share/calc/help/fclose +share/calc/help/fcnt +share/calc/help/feof +share/calc/help/ferror +share/calc/help/fflush +share/calc/help/fgetc +share/calc/help/fgetfield +share/calc/help/fgetline +share/calc/help/fgets +share/calc/help/fgetstr +share/calc/help/fib +share/calc/help/files +share/calc/help/floor +share/calc/help/fopen +share/calc/help/forall +share/calc/help/fprintf +share/calc/help/fputc +share/calc/help/fputs +share/calc/help/fputstr +share/calc/help/frac +share/calc/help/free +share/calc/help/freebernoulli +share/calc/help/freeeuler +share/calc/help/freeglobals +share/calc/help/freeredc +share/calc/help/freestatics +share/calc/help/frem +share/calc/help/freopen +share/calc/help/fscan +share/calc/help/fscanf +share/calc/help/fseek +share/calc/help/fsize +share/calc/help/ftell +share/calc/help/gcd +share/calc/help/gcdrem +share/calc/help/gd +share/calc/help/getenv +share/calc/help/hash +share/calc/help/head +share/calc/help/highbit +share/calc/help/hmean +share/calc/help/hnrmod +share/calc/help/hypot +share/calc/help/ilog +share/calc/help/ilog10 +share/calc/help/ilog2 +share/calc/help/im +share/calc/help/indices +share/calc/help/inputlevel +share/calc/help/insert +share/calc/help/int +share/calc/help/inverse +share/calc/help/iroot +share/calc/help/isassoc +share/calc/help/isatty +share/calc/help/isblk +share/calc/help/isconfig +share/calc/help/isdefined +share/calc/help/iserror +share/calc/help/iseven +share/calc/help/isfile +share/calc/help/ishash +share/calc/help/isident +share/calc/help/isint +share/calc/help/islist +share/calc/help/ismat +share/calc/help/ismult +share/calc/help/isnull +share/calc/help/isnum +share/calc/help/isobj +share/calc/help/isobjtype +share/calc/help/isodd +share/calc/help/isprime +share/calc/help/isptr +share/calc/help/isqrt +share/calc/help/isrand +share/calc/help/israndom +share/calc/help/isreal +share/calc/help/isrel +share/calc/help/issimple +share/calc/help/issq +share/calc/help/isstr +share/calc/help/istype +share/calc/help/jacobi +share/calc/help/join +share/calc/help/lcm +share/calc/help/lcmfact +share/calc/help/lfactor +share/calc/help/ln +share/calc/help/lowbit +share/calc/help/ltol +share/calc/help/makelist +share/calc/help/matdim +share/calc/help/matfill +share/calc/help/matmax +share/calc/help/matmin +share/calc/help/matsum +share/calc/help/mattrace +share/calc/help/mattrans +share/calc/help/max +share/calc/help/md5 +share/calc/help/memsize +share/calc/help/meq +share/calc/help/min +share/calc/help/minv +share/calc/help/mmin +share/calc/help/mne +share/calc/help/mod +share/calc/help/modify +share/calc/help/name +share/calc/help/near +share/calc/help/newerror +share/calc/help/nextcand +share/calc/help/nextprime +share/calc/help/norm +share/calc/help/null +share/calc/help/num +share/calc/help/oldvalue +share/calc/help/ord +share/calc/help/param +share/calc/help/perm +share/calc/help/pfact +share/calc/help/pi +share/calc/help/pix +share/calc/help/places +share/calc/help/pmod +share/calc/help/polar +share/calc/help/poly +share/calc/help/pop +share/calc/help/popcnt +share/calc/help/power +share/calc/help/prevcand +share/calc/help/prevprime +share/calc/help/printf +share/calc/help/prompt +share/calc/help/protect +share/calc/help/ptest +share/calc/help/push +share/calc/help/putenv +share/calc/help/quo +share/calc/help/quomod +share/calc/help/rand +share/calc/help/randbit +share/calc/help/random +share/calc/help/randombit +share/calc/help/randperm +share/calc/help/rcin +share/calc/help/rcmul +share/calc/help/rcout +share/calc/help/rcpow +share/calc/help/rcsq +share/calc/help/re +share/calc/help/remove +share/calc/help/reverse +share/calc/help/rewind +share/calc/help/rm +share/calc/help/root +share/calc/help/round +share/calc/help/rsearch +share/calc/help/runtime +share/calc/help/saveval +share/calc/help/scale +share/calc/help/scan +share/calc/help/scanf +share/calc/help/search +share/calc/help/sec +share/calc/help/sech +share/calc/help/seed +share/calc/help/segment +share/calc/help/select +share/calc/help/sgn +share/calc/help/sha +share/calc/help/sha1 +share/calc/help/sin +share/calc/help/sinh +share/calc/help/size +share/calc/help/sizeof +share/calc/help/sleep +share/calc/help/sort +share/calc/help/sqrt +share/calc/help/srand +share/calc/help/srandom +share/calc/help/ssq +share/calc/help/str +share/calc/help/strcat +share/calc/help/strerror +share/calc/help/strlen +share/calc/help/strpos +share/calc/help/strprintf +share/calc/help/strscan +share/calc/help/strscanf +share/calc/help/substr +share/calc/help/sum +share/calc/help/swap +share/calc/help/system +share/calc/help/tail +share/calc/help/tan +share/calc/help/tanh +share/calc/help/test +share/calc/help/time +share/calc/help/trunc +share/calc/help/version +share/calc/help/xor +share/calc/help/binding +share/calc/help/bug +share/calc/help/change +share/calc/help/errorcode +share/calc/help/type +share/calc/help/obj +share/calc/README +share/calc/bigprime.cal +share/calc/deg.cal +share/calc/ellip.cal +share/calc/lucas.cal +share/calc/lucas_chk.cal +share/calc/lucas_tbl.cal +share/calc/mersenne.cal +share/calc/mod.cal +share/calc/pell.cal +share/calc/pi.cal +share/calc/pix.cal +share/calc/pollard.cal +share/calc/poly.cal +share/calc/psqrt.cal +share/calc/quat.cal +share/calc/regress.cal +share/calc/solve.cal +share/calc/sumsq.cal +share/calc/surd.cal +share/calc/unitfrac.cal +share/calc/varargs.cal +share/calc/chrem.cal +share/calc/mfactor.cal +share/calc/bindings +share/calc/randmprime.cal +share/calc/test1700.cal +share/calc/randrun.cal +share/calc/randbitrun.cal +share/calc/bernoulli.cal +share/calc/test2300.cal +share/calc/test2600.cal +share/calc/test2700.cal +share/calc/test3100.cal +share/calc/test3300.cal +share/calc/test3400.cal +share/calc/prompt.cal +share/calc/test3500.cal +share/calc/seedrandom.cal +share/calc/test4000.cal +share/calc/test4100.cal +share/calc/test4600.cal +share/calc/beer.cal +share/calc/hello.cal +share/calc/test5100.cal +share/calc/test5200.cal +share/calc/randombitrun.cal +share/calc/randomrun.cal +share/calc/xx_print.cal +share/calc/natnumset.cal +share/calc/qtime.cal +share/calc/test8400.cal +share/calc/test8500.cal +share/calc/test8600.cal +share/calc/chi.cal +share/calc/intfile.cal +share/calc/custom/argv.cal +share/calc/custom/halflen.cal +share/calc/custom/pzasusb8.cal +share/calc/custhelp/argv +share/calc/custhelp/devnull +share/calc/custhelp/help +share/calc/custhelp/sysinfo +share/calc/custhelp/pzasusb8 +share/calc/custom/libcustcalc.a +bin/cscript/4dsphere +bin/cscript/fproduct +bin/cscript/mersenne +bin/cscript/piforever +bin/cscript/plus +bin/cscript/powerterm +bin/cscript/simple +bin/cscript/square +lib/libcalc.a +include/calc/alloc.h +include/calc/blkcpy.h +include/calc/block.h +include/calc/byteswap.h +include/calc/calc.h +include/calc/cmath.h +include/calc/config.h +include/calc/custom.h +include/calc/file.h +include/calc/func.h +include/calc/hash.h +include/calc/hist.h +include/calc/jump.h +include/calc/label.h +include/calc/lib_util.h +include/calc/math_error.h +include/calc/md5.h +include/calc/nametype.h +include/calc/opcodes.h +include/calc/prime.h +include/calc/qmath.h +include/calc/shs.h +include/calc/shs1.h +include/calc/string.h +include/calc/symbol.h +include/calc/token.h +include/calc/value.h +include/calc/win32dll.h +include/calc/zmath.h +include/calc/zrand.h +include/calc/zrandom.h +include/calc/align32.h +include/calc/args.h +include/calc/calcerr.h +include/calc/conf.h +include/calc/endian_calc.h +include/calc/fposval.h +include/calc/have_const.h +include/calc/have_fpos.h +include/calc/have_fpos_pos.h +include/calc/have_malloc.h +include/calc/have_memmv.h +include/calc/have_newstr.h +include/calc/have_offscl.h +include/calc/have_posscl.h +include/calc/have_stdlib.h +include/calc/have_string.h +include/calc/have_times.h +include/calc/have_uid_t.h +include/calc/have_unistd.h +include/calc/longbits.h +include/calc/longlong.h +include/calc/terminal.h +include/calc/have_ustat.h +include/calc/have_getsid.h +include/calc/have_getpgid.h +include/calc/have_gettime.h +include/calc/have_getprid.h +include/calc/have_urandom.h +include/calc/have_rusage.h +include/calc/have_strdup.h +man/man1/calc.1 +@dirrm share/calc/help +@dirrm share/calc/custom +@dirrm share/calc/custhelp +@dirrm share/calc +@dirrm include/calc/custom +@dirrm include/calc +@dirrm bin/cscript diff --git a/math/dbell-calc/distinfo b/math/dbell-calc/distinfo new file mode 100644 index 00000000000..3e595ca7dd3 --- /dev/null +++ b/math/dbell-calc/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/01/28 11:27:06 agc Exp $ + +SHA1 (calc-2.11.5t4.4.tar.gz) = f543f5fe806e722f8f09f7f2e454fcd1a50cb89f +Size (calc-2.11.5t4.4.tar.gz) = 939102 bytes +SHA1 (patch-aa) = c8ee74fc08ee41ce5d0921a8ce9b4615d759435f diff --git a/math/dbell-calc/patches/patch-aa b/math/dbell-calc/patches/patch-aa new file mode 100644 index 00000000000..39a6ff587db --- /dev/null +++ b/math/dbell-calc/patches/patch-aa @@ -0,0 +1,43 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/01/28 11:27:06 agc Exp $ + +--- Makefile 2002/01/28 11:06:09 1.1 ++++ Makefile 2002/01/28 11:10:15 +@@ -504,16 +504,16 @@ + # ${LIBDIR} where *.a files are installed + # + #BINDIR= /usr/local/bin +-BINDIR= /usr/bin ++BINDIR= ${PREFIX}/bin + + #SHAREDIR= /usr/local/lib +-SHAREDIR= /usr/share ++SHAREDIR= ${PREFIX}/share + + #INCDIR= /usr/local/include +-INCDIR= /usr/include ++INCDIR= ${PREFIX}/include + + #LIBDIR= /usr/local/lib +-LIBDIR= /usr/lib ++LIBDIR= ${PREFIX}/lib + + # By default, these values are based on the above 4 values + # -------------------------------------------------------- +@@ -540,7 +540,7 @@ + #MANDIR= + #MANDIR= /usr/local/man/man1 + #MANDIR= /usr/man/man1 +-MANDIR= /usr/share/man/man1 ++MANDIR= ${PREFIX}/man/man1 + #MANDIR= /usr/man/u_man/man1 + #MANDIR= /usr/contrib/man/man1 + +@@ -637,7 +637,7 @@ + #USE_READLINE= -DUSE_READLINE + # + #READLINE_LIB= +-READLINE_LIB= -lreadline -lhistory -lncurses ++READLINE_LIB= -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lreadline -lhistory -lncurses + #READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses + #READLINE_LIB= -L/usr/local/lib -lreadline -lhistory -lncurses + # |