Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

18
math/capc-calc/DESCR Normal file
View File

@@ -0,0 +1,18 @@
Calc is an interactive calculator which provides for easy large
numeric caluclations, but which also can be easily programmed for
difficult or long calculations. It can accept a command line
argument, in which case it executes that single command and exits.
Otherwise it enters interactive mode. In this mode, it accepts
commands one at a time, processes them, and displays the answers.
In the simplest case, commands are simply expressions which are
evaluated. For example, he following line can be input:
> 3 * (4 + 1)
and the calculator will print 15.
Commands are statements in a C-like language, where each input line
is treated as the body of a procedure. Thus he copmmand line can
contain variable declarations, expressions, labels, conditional
tests, and loops. Assignments to any variable name will automatically
define that name as a global variable.
For more information on the program, run 'calc help help'.

27
math/capc-calc/Makefile Normal file
View File

@@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.42 2012/09/11 23:04:17 asau Exp $
#
DISTNAME= calc-2.12.4.1
PKGNAME= capc-${DISTNAME:S/t/./}
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calc/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.isthe.com/chongo/tech/comp/calc/
COMMENT= C arbitrary precision calculator
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake
BUILD_TARGET= calc-static-only
MAKE_ENV+= BLD_TYPE=calc-static-only target=pkgsrc
MAKE_ENV+= DEBUG=${CFLAGS:M*:Q}
INSTALL_MAKE_FLAGS+= T=${DESTDIR}
TEST_TARGET= check
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

483
math/capc-calc/PLIST Normal file
View File

@@ -0,0 +1,483 @@
@comment $NetBSD: PLIST,v 1.13 2011/04/05 17:18:14 drochner Exp $
bin/calc
bin/calc-static
bin/cscript/4dsphere
bin/cscript/fproduct
bin/cscript/mersenne
bin/cscript/piforever
bin/cscript/plus
bin/cscript/powerterm
bin/cscript/simple
bin/cscript/square
include/calc/align32.h
include/calc/alloc.h
include/calc/args.h
include/calc/blkcpy.h
include/calc/block.h
include/calc/byteswap.h
include/calc/calc.h
include/calc/calcerr.h
include/calc/cmath.h
include/calc/conf.h
include/calc/config.h
include/calc/custom.h
include/calc/decl.h
include/calc/endian_calc.h
include/calc/file.h
include/calc/fposval.h
include/calc/func.h
include/calc/hash.h
include/calc/have_const.h
include/calc/have_fpos.h
include/calc/have_fpos_pos.h
include/calc/have_getpgid.h
include/calc/have_getprid.h
include/calc/have_getsid.h
include/calc/have_gettime.h
include/calc/have_memmv.h
include/calc/have_newstr.h
include/calc/have_offscl.h
include/calc/have_posscl.h
include/calc/have_rusage.h
include/calc/have_stdlib.h
include/calc/have_strdup.h
include/calc/have_string.h
include/calc/have_times.h
include/calc/have_uid_t.h
include/calc/have_unistd.h
include/calc/have_unused.h
include/calc/have_urandom.h
include/calc/have_ustat.h
include/calc/hist.h
include/calc/jump.h
include/calc/label.h
include/calc/lib_calc.h
include/calc/lib_util.h
include/calc/longbits.h
include/calc/nametype.h
include/calc/opcodes.h
include/calc/prime.h
include/calc/qmath.h
include/calc/sha1.h
include/calc/str.h
include/calc/symbol.h
include/calc/terminal.h
include/calc/token.h
include/calc/value.h
include/calc/zmath.h
include/calc/zrand.h
include/calc/zrandom.h
lib/libcalc.a
lib/libcustcalc.a
man/man1/calc.1
share/calc/README
share/calc/alg_config.cal
share/calc/beer.cal
share/calc/bernoulli.cal
share/calc/bigprime.cal
share/calc/bindings
share/calc/chi.cal
share/calc/chrem.cal
share/calc/custhelp/argv
share/calc/custhelp/devnull
share/calc/custhelp/help
share/calc/custhelp/pmodm127
share/calc/custhelp/pzasusb8
share/calc/custhelp/register
share/calc/custhelp/sysinfo
share/calc/custom/argv.cal
share/calc/custom/halflen.cal
share/calc/custom/pmodm127.cal
share/calc/custom/pzasusb8.cal
share/calc/custom/register.cal
share/calc/deg.cal
share/calc/dms.cal
share/calc/dotest.cal
share/calc/ellip.cal
share/calc/hello.cal
share/calc/help/COPYING
share/calc/help/COPYING-LGPL
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/archive
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/assoc
share/calc/help/atan
share/calc/help/atan2
share/calc/help/atanh
share/calc/help/avg
share/calc/help/base
share/calc/help/base2
share/calc/help/bernoulli
share/calc/help/binding
share/calc/help/bindings
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/bug
share/calc/help/bugs
share/calc/help/builtin
share/calc/help/calc_tty
share/calc/help/calclevel
share/calc/help/calcpath
share/calc/help/catalan
share/calc/help/ceil
share/calc/help/cfappr
share/calc/help/cfsim
share/calc/help/change
share/calc/help/changes
share/calc/help/char
share/calc/help/cmdbuf
share/calc/help/cmp
share/calc/help/comb
share/calc/help/command
share/calc/help/config
share/calc/help/conj
share/calc/help/contrib
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/credit
share/calc/help/csc
share/calc/help/csch
share/calc/help/cscript
share/calc/help/ctime
share/calc/help/custom
share/calc/help/custom_cal
share/calc/help/define
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/display
share/calc/help/dp
share/calc/help/environment
share/calc/help/epsilon
share/calc/help/errcount
share/calc/help/errmax
share/calc/help/errno
share/calc/help/error
share/calc/help/errorcode
share/calc/help/errorcodes
share/calc/help/estr
share/calc/help/euler
share/calc/help/eval
share/calc/help/exp
share/calc/help/expression
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/fgetfile
share/calc/help/fgetline
share/calc/help/fgets
share/calc/help/fgetstr
share/calc/help/fib
share/calc/help/file
share/calc/help/files
share/calc/help/floor
share/calc/help/fopen
share/calc/help/forall
share/calc/help/fpathopen
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/full
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/help
share/calc/help/highbit
share/calc/help/history
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/interrupt
share/calc/help/intro
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/libcalc
share/calc/help/list
share/calc/help/ln
share/calc/help/log
share/calc/help/lowbit
share/calc/help/ltol
share/calc/help/makelist
share/calc/help/mat
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/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/new_custom
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/obj
share/calc/help/oldvalue
share/calc/help/operator
share/calc/help/ord
share/calc/help/overview
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/pound
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/resource
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/script
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/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/statement
share/calc/help/stoponerror
share/calc/help/str
share/calc/help/strcat
share/calc/help/strcmp
share/calc/help/strcpy
share/calc/help/strerror
share/calc/help/strlen
share/calc/help/strncmp
share/calc/help/strncpy
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/systime
share/calc/help/tail
share/calc/help/tan
share/calc/help/tanh
share/calc/help/test
share/calc/help/time
share/calc/help/todo
share/calc/help/trunc
share/calc/help/type
share/calc/help/types
share/calc/help/unexpected
share/calc/help/usage
share/calc/help/usertime
share/calc/help/variable
share/calc/help/version
share/calc/help/wishlist
share/calc/help/xor
share/calc/hms.cal
share/calc/intfile.cal
share/calc/linear.cal
share/calc/lucas.cal
share/calc/lucas_chk.cal
share/calc/lucas_tbl.cal
share/calc/mersenne.cal
share/calc/mfactor.cal
share/calc/mod.cal
share/calc/natnumset.cal
share/calc/pell.cal
share/calc/pi.cal
share/calc/pix.cal
share/calc/pollard.cal
share/calc/poly.cal
share/calc/prompt.cal
share/calc/psqrt.cal
share/calc/qtime.cal
share/calc/quat.cal
share/calc/randbitrun.cal
share/calc/randmprime.cal
share/calc/randombitrun.cal
share/calc/randomrun.cal
share/calc/randrun.cal
share/calc/regress.cal
share/calc/repeat.cal
share/calc/screen.cal
share/calc/seedrandom.cal
share/calc/set8700.cal
share/calc/set8700.line
share/calc/solve.cal
share/calc/sumsq.cal
share/calc/sumtimes.cal
share/calc/surd.cal
share/calc/test1700.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/test3500.cal
share/calc/test4000.cal
share/calc/test4100.cal
share/calc/test4600.cal
share/calc/test5100.cal
share/calc/test5200.cal
share/calc/test8400.cal
share/calc/test8500.cal
share/calc/test8600.cal
share/calc/unitfrac.cal
share/calc/varargs.cal
share/calc/xx_print.cal
@pkgdir include/calc/custom

7
math/capc-calc/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.24 2012/05/07 19:57:17 dholland Exp $
SHA1 (calc-2.12.4.1.tar.bz2) = b64eae89de2167f439f52b4005bbc4e5dfc0d6fb
RMD160 (calc-2.12.4.1.tar.bz2) = 68fe6352b6a1b58e53d7cb4b4f51c596aa8539f7
Size (calc-2.12.4.1.tar.bz2) = 865856 bytes
SHA1 (patch-aa) = 65da8569bb74647ef01bfc389690d631d161ab96
SHA1 (patch-fposval_c) = 8a8d08f8b566e583faa3bd9033c4a9ac90cb343c

View File

@@ -0,0 +1,143 @@
$NetBSD: patch-aa,v 1.8 2008/05/05 18:54:05 drochner Exp $
--- Makefile.orig 2008-02-24 08:58:36.000000000 +0100
+++ Makefile
@@ -585,7 +585,7 @@ HAVE_UNUSED=
#INCDIR= /usr/local/include
#INCDIR= /dev/env/DJDIR/include
-INCDIR= /usr/include
+INCDIR= ${PREFIX}/include
# Where to install calc realted things
#
@@ -612,15 +612,15 @@ INCDIR= /usr/include
#
#BINDIR= /usr/local/bin
#BINDIR= /dev/env/DJDIR/bin
-BINDIR= /usr/bin
+BINDIR= ${PREFIX}/bin
#LIBDIR= /usr/local/lib
#LIBDIR= /dev/env/DJDIR/lib
-LIBDIR= /usr/lib
+LIBDIR= ${PREFIX}/lib
#CALC_SHAREDIR= /usr/local/lib/calc
#CALC_SHAREDIR= /dev/env/DJDIR/share/calc
-CALC_SHAREDIR= /usr/share/calc
+CALC_SHAREDIR= ${PREFIX}/share/calc
# NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!!
# Always be sure that the CALC_INCDIR path ends in /calc to avoid
@@ -698,7 +698,7 @@ T=
#MANDIR=
#MANDIR= /usr/local/man/man1
#MANDIR= /usr/man/man1
-MANDIR= /usr/share/man/man1
+MANDIR= ${PREFIX}/man/man1
#MANDIR= /dev/env/DJDIR/man/man1
#MANDIR= /usr/man/u_man/man1
#MANDIR= /usr/contrib/man/man1
@@ -709,7 +709,7 @@ MANDIR= /usr/share/man/man1
#
# Use CATDIR= to disable installation of the calc cat (formatted) page.
#
-CATDIR=
+CATDIR= ${PREFIX}/man/cat1
#CATDIR= /usr/local/man/cat1
#CATDIR= /usr/local/catman/cat1
#CATDIR= /usr/man/cat1
@@ -730,9 +730,9 @@ MANEXT= 1
#
# This is ignored if CATDIR is empty.
#
-CATEXT= 1
+#CATEXT= 1
#CATEXT= 1.gz
-#CATEXT= 0
+CATEXT= 0
#CATEXT= l
# how to format a man page
@@ -758,8 +758,8 @@ CATEXT= 1
# and CATDIR to empty and ignore the NROFF, NROFF_ARG and MANMAKE
# lines below.
#
-#NROFF= nroff
-NROFF=
+NROFF= nroff
+#NROFF=
#NROFF= groff
NROFF_ARG= -man
#NROFF_ARG= -mandoc
@@ -825,13 +825,14 @@ CALCRC= ${CALC_SHAREDIR}/startup:~/.calc
#
# If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
#
-USE_READLINE=
-#USE_READLINE= -DUSE_READLINE
+#USE_READLINE=
+USE_READLINE= -DUSE_READLINE
#
READLINE_LIB=
READLINE_EXTRAS=
#
-#READLINE_LIB= -lreadline
+READLINE_LIB= -lreadline
+READLINE_EXTRAS= -lncurses
#READLINE_EXTRAS= -lhistory -lncurses
#
#READLINE_LIB= -L/usr/gnu/lib -lreadline
@@ -884,7 +885,7 @@ CALCPAGER= less
#
#DEBUG= -O3
#DEBUG= -O3 -g
-DEBUG= -O3 -g3
+#DEBUG= -O3 -g3
#DEBUG= -O3 -ipa
#DEBUG= -O3 -g3 -ipa
@@ -1360,10 +1361,10 @@ CC= ${PURIFY} ${LCC} ${CCWERR}
# LDFLAGS for ${CC} in linking calc progs other than intermediate progs
#
ICFLAGS= ${COMMON_CFLAGS} ${CC_STATIC}
-CFLAGS= ${ICFLAGS} ${CCOPT}
+CFLAGS+= ${ICFLAGS} ${CCOPT}
#
ILDFLAGS= ${COMMON_LDFLAGS} ${LD_STATIC}
-LDFLAGS= ${LD_DEBUG} ${ILDFLAGS} ${LIBCALC_STATIC} ${LIBCUSTCALC_STATIC}
+LDFLAGS+= ${LD_DEBUG} ${ILDFLAGS} ${LIBCALC_STATIC} ${LIBCUSTCALC_STATIC}
#
#if 0 /* start of skip for non-Gnu makefiles */
endif
@@ -1375,7 +1376,7 @@ endif
# NOTE: This is the default generic host target. Used when no other
# host target matches.
-ifeq ($(target),)
+ifeq ($(target),pkgsrc)
#
BLD_TYPE= calc-static-only
#
@@ -1421,7 +1422,7 @@ ICFLAGS= ${COMMON_CFLAGS} ${CC_STATIC}
else
ICFLAGS= ${COMMON_CFLAGS} ${CC_SHARE}
endif
-CFLAGS= ${ICFLAGS} ${CCOPT}
+CFLAGS= ${ICFLAGS} ${CCOPT} ${CPPFLAGS}
# Required flags to link files for calc
#
@@ -4394,9 +4395,9 @@ endif
${Q}# NOTE: The this makefile installs libcustcalc${LIB_EXT_VERSION}
${Q}# because we only want to perform one ${LDCONFIG} for both
${Q}# libcalc${LIB_EXT_VERSION} and libcustcalc${LIB_EXT_VERSION}.
- -${Q} if ${CMP} -s libcalc${LIB_EXT_VERSION} \
+ -${Q} if true ${CMP} -s libcalc${LIB_EXT_VERSION} \
${T}${LIBDIR}/libcalc${LIB_EXT_VERSION} && \
- ${CMP} -s custom/libcustcalc${LIB_EXT_VERSION} \
+ true ${CMP} -s custom/libcustcalc${LIB_EXT_VERSION} \
${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}; then \
${TRUE}; \
else \

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-fposval_c,v 1.1 2012/05/07 19:57:17 dholland Exp $
Avoid generating incorrect code that leads to a build failure on
NetBSD 6+.
--- fposval.c~ 2007-09-19 22:35:23.000000000 +0000
+++ fposval.c
@@ -129,7 +129,7 @@ main(int argc, char **argv)
* systems a FILEPOS is not a scalar hince we must memcpy.
*/
printf("#define SWAP_HALF_IN_FILEPOS(dest, src)\t%s\n",
- "memcpy((void *)(dest), (void *)(src), sizeof(FPOS_POS_LEN))");
+ "memcpy((void *)(dest), (void *)(src), FILEPOS_LEN)");
#endif /* HAVE_FILEPOS_SCALAR */
#endif /* CALC_BYTE_ORDER == BIG_ENDIAN */
putchar('\n');