summaryrefslogtreecommitdiff
path: root/math/statist
diff options
context:
space:
mode:
authorrh <rh>2002-11-09 09:23:24 +0000
committerrh <rh>2002-11-09 09:23:24 +0000
commit9230cf3cb115c06bdca1e891a4af64d34f7df5a5 (patch)
tree688493d3fac87e16502d456fb11475d13060f3f8 /math/statist
parentb9f957df362d950091acec3f0d671523d267663e (diff)
downloadpkgsrc-9230cf3cb115c06bdca1e891a4af64d34f7df5a5.tar.gz
Initial import of statist-1.0.1, a small and portable statistics program.
Diffstat (limited to 'math/statist')
-rw-r--r--math/statist/DESCR7
-rw-r--r--math/statist/Makefile27
-rw-r--r--math/statist/PLIST11
-rw-r--r--math/statist/distinfo5
-rw-r--r--math/statist/patches/patch-aa97
5 files changed, 147 insertions, 0 deletions
diff --git a/math/statist/DESCR b/math/statist/DESCR
new file mode 100644
index 00000000000..c49600140cf
--- /dev/null
+++ b/math/statist/DESCR
@@ -0,0 +1,7 @@
+ Statist is a small and portable statistics program written in C. It is
+terminal-based, but can utilise GNUplot for plotting purposes. It is
+simple to use and can be run in scripts. Big datasets are handled
+reasonably well on small machines.
+
+ In spite of its low overhead, statist can do quite a bunch of regression
+functions and tests in a comprehensible way. It is quite powerful.
diff --git a/math/statist/Makefile b/math/statist/Makefile
new file mode 100644
index 00000000000..ca7536c0c5d
--- /dev/null
+++ b/math/statist/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/11/09 09:23:24 rh Exp $
+#
+
+DISTNAME= statist-1.0.1
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+CATEGORIES= math
+MASTER_SITES= http://www.usf.uni-osnabrueck.de/~breiter/tools/statist/v${PKGVERSION}/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.usf.uni-osnabrueck.de/~breiter/tools/statist/index.en.html
+COMMENT= small and portable statistics program
+
+DEPENDS+= gnuplot-[0-9]*:../../graphics/gnuplot
+
+USE_BUILDLINK2= YES
+USE_LIBTOOL= YES
+
+do-install:
+ cd ${WRKSRC} && \
+ ${LIBTOOL} --mode=install \
+ ${INSTALL_DATA} libstatist.la ${PREFIX}/lib && \
+ ${LIBTOOL} --mode=install \
+ ${INSTALL_PROGRAM} statist ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/statist
+ ${INSTALL_DATA} ${WRKSRC}/../doc/*.ps ${PREFIX}/share/doc/statist
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/statist/PLIST b/math/statist/PLIST
new file mode 100644
index 00000000000..563bf93f99e
--- /dev/null
+++ b/math/statist/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/11/09 09:23:24 rh Exp $
+bin/statist
+lib/libstatist.a
+lib/libstatist.la
+lib/libstatist.so
+lib/libstatist.so.1
+lib/libstatist.so.1.0
+share/doc/statist/box.ps
+share/doc/statist/programm.ps
+share/doc/statist/stat_man.ps
+@dirrm share/doc/statist
diff --git a/math/statist/distinfo b/math/statist/distinfo
new file mode 100644
index 00000000000..0e1dd32b5fd
--- /dev/null
+++ b/math/statist/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/11/09 09:23:24 rh Exp $
+
+SHA1 (statist-1.0.1.tar.gz) = 2900c58e730ecf93dfa3e15a881a1afca0cfdf20
+Size (statist-1.0.1.tar.gz) = 214635 bytes
+SHA1 (patch-aa) = 6cfe11d15d888d042b97ad1470db1405aa7bc489
diff --git a/math/statist/patches/patch-aa b/math/statist/patches/patch-aa
new file mode 100644
index 00000000000..5d4d04ae024
--- /dev/null
+++ b/math/statist/patches/patch-aa
@@ -0,0 +1,97 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/11/09 09:23:24 rh Exp $
+
+--- Makefile.orig Fri Nov 16 06:22:33 2001
++++ Makefile
+@@ -16,11 +16,11 @@
+ # and now for the language setting,
+ # you can add LANG=LANG_EN or LANG=LANG_DE to the make arguments
+ # Command line arguments to make override the default (which is in here)
+-LANG=LANG_DE
++LANG=LANG_EN
+ LANGUAGE=-DLANG=$(LANG)
+
+ #decide between "main", "shlib" and "lib"
+-all: main
++all: lib main
+
+ #all: lib
+ #all: shlib
+@@ -29,10 +29,9 @@ all: main
+
+ # für systeme mit gcc oder egcs als compiler
+ # choose your compiler, the example flags are for the gcc
+-CC = gcc
+-LIBTOOL = ar crus
++#CC = gcc
+
+-COMPILERCFLAGS = -c -Wall
++COMPILERCFLAGS = -c -Wall ${CFLAGS} ${CPPFLAGS}
+ #COMPILERCFLAGS = -c -Wall -g
+ #COMPILERCFLAGS = -c -Wall -g -DDEBUG
+
+@@ -41,14 +40,14 @@ COMPILERCFLAGS = -c -Wall
+ #COMPILERCFLAGS= -c
+ ##COMPILERCFLAGS= -g -c
+
+-LIBS = -lm
++LIBS = ${LDFLAGS} -lm
+ LFLAGS = -o
+ #LFLAGS = -g -o
+
+ #we have to define NO_GETTEXT, because the simple statist uses its own macro
+ EXTRACFLAGS=-DNO_GETTEXT
+
+-CFLAGS= $(COMPILERCFLAGS) $(EXTRACFLAGS) $(LANGUAGE) $(STATISTX)
++GCFLAGS= $(COMPILERCFLAGS) $(EXTRACFLAGS) $(LANGUAGE) $(STATISTX)
+
+ #MAIN = $(HOME)/tools/statist
+ MAIN=statist
+@@ -56,9 +55,12 @@ SH_LIB = libstatist.so.1.0.1
+ STAT_LIB = libstatist.a
+
+
+-OBJECTS = statist.o menue.o procs.o funcs.o data.o plot.o memory_handling.o
++OBJECTS = statist.o ${STAT_LIB:.a=.la}
+ LIB_OBJECTS = menue.o procs.o funcs.o data.o plot.o memory_handling.o
+
++.c.o:
++ ${LIBTOOL} --mode=compile ${CC} ${GCFLAGS} -o ${.TARGET:.o=.lo} ${.IMPSRC}
++
+ main: $(MAIN)
+
+ check: main
+@@ -73,32 +75,26 @@ lib: $(STAT_LIB)
+
+
+ $(MAIN) : $(OBJECTS) Makefile
+- $(CC) $(LFLAGS) $(MAIN) $(OBJECTS) $(LIBS)
++ ${LIBTOOL} --mode=link ${CC} ${LFLAGS} ${MAIN} ${OBJECTS:.o=.lo} ${LIBS}
+
+ # change AB:
+ $(SH_LIB): $(LIB_OBJECTS) Makefile
+ $(CC) -shared $(LIB_OBJECTS) -o $(SH_LIB)
+
+ $(STAT_LIB): $(LIB_OBJECTS) Makefile
+- $(LIBTOOL) $(STAT_LIB) $(LIB_OBJECTS)
++ ${LIBTOOL} --mode=link ${CC} -o ${STAT_LIB:.a=.la} ${LIB_OBJECTS:.o=.lo} -rpath ${PREFIX}/lib -version-info 1:0
+
+ statist.o : statist.c statist.h menue.h data.h funcs.h
+- $(CC) $(CFLAGS) statist.c
+
+ menue.o : menue.c menue.h procs.h data.h statist.h
+- $(CC) $(CFLAGS) menue.c
+
+ procs.o : procs.c procs.h funcs.h statist.h
+- $(CC) $(CFLAGS) procs.c
+
+ funcs.o : funcs.c funcs.h statist.h
+- $(CC) $(CFLAGS) funcs.c
+
+ data.o : data.c data.h statist.h
+- $(CC) $(CFLAGS) data.c
+
+ plot.o : plot.c plot.h statist.h funcs.h
+- $(CC) $(CFLAGS) plot.c
+
+
+ clean: