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

10
math/grpn/DESCR Normal file
View File

@@ -0,0 +1,10 @@
GRPN is a RPN calculator for the X Window system built using
the GIMP Toolkit (GTK).
GRPN works with real numbers, complex numbers, matrices, and
complex matrices. Numbers can be displayed in 4 different
radix modes, and complex numbers can be displayed in either
Cartesian or polar form.
GRPN is copyrighted under the terms of the GNU General Public
License. See the file LICENSE for more details.

22
math/grpn/Makefile Normal file
View File

@@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.40 2013/06/06 12:54:43 wiz Exp $
#
DISTNAME= grpn_1.3.3-1
PKGNAME= grpn-1.3.3
PKGREVISION= 11
CATEGORIES= math
#MASTER_SITES= http://lashwhip.com/grpn/
MASTER_SITES= http://www.getreu.net/public/downloads/software/grpn/grpn-1.3.3/
MAINTAINER= dmcmahill@NetBSD.org
# the original gtk1 version
#HOMEPAGE= http://lashwhip.com/grpn.html
HOMEPAGE= http://www.getreu.net/
COMMENT= Graphical reverse polish notation (RPN) calculator
BUILD_TARGET= grpn
USE_TOOLS+= mkdirhier pkg-config
WRKSRC= ${WRKDIR}/grpn-1.3.3
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
math/grpn/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.2 2002/05/12 23:21:53 dmcmahill Exp $
bin/grpn
man/man1/grpn.1

14
math/grpn/distinfo Normal file
View File

@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.10 2011/12/14 02:57:37 sbd Exp $
SHA1 (grpn_1.3.3-1.tar.gz) = 3efee25264aa524a34464a1b2fa0946605de3259
RMD160 (grpn_1.3.3-1.tar.gz) = 4af8964e9e1d67d89706cc617f72e7e01f0c49d6
Size (grpn_1.3.3-1.tar.gz) = 58832 bytes
SHA1 (patch-aa) = 80465d620e61c43553f6ab79e04a3d736fbfec19
SHA1 (patch-al) = 2a3b3012644d5b5504c1d8801f00bc3f6dd7ef28
SHA1 (patch-am) = dd32bc6dfe5560e6fb65cacd65455ab52093b49a
SHA1 (patch-an) = d752dc3232a08542d6e40a908c476b22096e56dd
SHA1 (patch-ao) = f0d609dd12b040e4b49042309b75ee3aeff291ab
SHA1 (patch-ap) = 121f85c9e25832f2309f490c056e6fde9d4e7a43
SHA1 (patch-aq) = bf9c53ebe64adb54a2d59da403de31c9275812ce
SHA1 (patch-ar) = c912f002db495588e2bd9292a00009f2dc4324a0
SHA1 (patch-as) = 4ce5e5ac5fe5900771cfd7206b91f4a941d2d5f2

View File

@@ -0,0 +1,47 @@
$NetBSD: patch-aa,v 1.5 2011/06/09 17:01:39 drochner Exp $
--- Makefile.orig 2011-05-10 16:58:46.000000000 +0000
+++ Makefile
@@ -3,10 +3,10 @@
# Please read the next few lines and enter the correct values.
# where to install GRPN
-PREFIX = /usr/local/
+#PREFIX = /usr/local/
# What compiler should be used
-CC = gcc
+#CC = gcc
# NOTE:
#
@@ -15,9 +15,10 @@ CC = gcc
# add -DUSE_GNOME if you want to make grpn GNOME compliant.
-CFLAGS = -g -O2 -I/usr/X11/include `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
+#CFLAGS = -g -O2 -I/usr/X11/include `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
+CFLAGS+= `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
-DFLAGS = -L/usr/X11/lib
+#DFLAGS = -L/usr/X11/lib
# end of user configurable section
@@ -39,12 +40,10 @@ pure: $(OBJS)
$(PURIFY) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
install: grpn
- mkdirhier $(PREFIX)/bin
- cp grpn $(PREFIX)/bin
- chmod 755 $(PREFIX)/bin/grpn
- mkdirhier $(PREFIX)/man/man1
- cp grpn.1 $(PREFIX)/man/man1
- chmod 644 $(PREFIX)/man/man1/grpn.1
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/bin
+ $(BSD_INSTALL_PROGRAM) grpn $(DESTDIR)$(PREFIX)/bin
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/man/man1
+ $(BSD_INSTALL_DATA) grpn.1 $(DESTDIR)$(PREFIX)/man/man1
.c.o:
$(CC) -c -o $@ $(CFLAGS) $*.c

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-al,v 1.3 2011/06/09 17:01:39 drochner Exp $
--- button_def.c.orig 2011-05-10 16:58:46.000000000 +0000
+++ button_def.c
@@ -36,6 +36,16 @@ extern void cmodeCmdCB(GtkWidget *, gpoi
extern void radixCmdCB(GtkWidget *, gpointer);
FuncInfo invisible1[] = {
+ { "k", "k", "Boltzmann's constant (Joules/Kelvin).",
+ genericButtonCB, (void *)BoltzmannStack },
+ { "q", "q", "Electron Charge (coulomb).",
+ genericButtonCB, (void *)ChargeStack },
+ { "e0", "e0", "Free space permitivitty (Farads/meter).",
+ genericButtonCB, (void *)E0Stack },
+ { "mu0", "mu0", "Free space permeability (Henries/meter).",
+ genericButtonCB, (void *)Mu0Stack },
+ { "c", "c", "Free space speed of light (meters/second).",
+ genericButtonCB, (void *)LightSpeedStack },
{ "Modulo", "mod", "Remainder of division.",
genericButtonCB, (void *)ModStack },
{ "Hex", "hex", "Hexidecimal display mode.",
@@ -155,7 +165,7 @@ struct RowInfo rowinf[] = {
{ 8, 8, num456 },
{ 8, 8, num123 },
{ 8, 8, num0 },
- { 20, 0, invisible1 }
+ { 25, 0, invisible1 }
};

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-am,v 1.1 2005/10/07 12:31:25 rillig Exp $
The patches patch-al upto patch-aq add the physical constants k, q, e0,
mu0, and c.
--- constant.c.orig Thu Apr 4 05:46:11 2002
+++ constant.c Fri Oct 7 14:24:25 2005
@@ -24,6 +24,11 @@ Foundation, Inc., 59 Temple Place - Suit
#include "real.h"
#include "complex.h"
+Real *realBoltzmann;
+Real *realCharge;
+Real *realE0;
+Real *realMu0;
+Real *realLightSpeed;
Real *realPi;
Real *realPi2;
Real *realZero;
@@ -35,9 +40,17 @@ Real *realMOne;
Real *real180Pi;
Cmplx *cmplxI;
+#define LIGHTSPEED 2.997923e8
+#define MU0 (4*M_PI*1.0e-7)
+
void setup_constant(){
Real *tmp;
+ realBoltzmann = setRealDouble(newReal(), 1.380622e-23);
+ realCharge = setRealDouble(newReal(), 1.6021917e-19);
+ realE0 = setRealDouble(newReal(), 1.0/(LIGHTSPEED*LIGHTSPEED*MU0));
+ realMu0 = setRealDouble(newReal(), MU0);
+ realLightSpeed = setRealDouble(newReal(), LIGHTSPEED);
realPi = setRealDouble(newReal(), M_PI);
realPi2 = setRealDouble(newReal(), M_PI/2.0);
realZero = setRealDouble(newReal(), 0.0);

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-an,v 1.1 2005/10/07 12:31:25 rillig Exp $
The patches patch-al upto patch-aq add the physical constants k, q, e0,
mu0, and c.
--- constant.h.orig Thu Apr 4 05:46:11 2002
+++ constant.h Fri Oct 7 14:24:25 2005
@@ -22,6 +22,11 @@ Foundation, Inc., 59 Temple Place - Suit
#ifndef __CONSTANT_H
#define __CONSTANT_H
+extern Real *realBoltzmann;
+extern Real *realCharge;
+extern Real *realE0;
+extern Real *realMu0;
+extern Real *realLightSpeed;
extern Real *realPi;
extern Real *realPi2;
extern Real *realZero;

View File

@@ -0,0 +1,79 @@
$NetBSD: patch-ao,v 1.1 2005/10/07 12:31:25 rillig Exp $
The patches patch-al upto patch-aq add the physical constants k, q, e0,
mu0, and c.
--- funcs.c.orig Thu Apr 4 05:46:11 2002
+++ funcs.c Fri Oct 7 14:24:25 2005
@@ -95,6 +95,71 @@ void PushStack(){
}
+void BoltzmannStack(){
+ Number *n1;
+
+ finishEditor();
+
+ SaveStackState(0);
+
+ n1 = setNumberReal(newNumber(), realBoltzmann);
+ Push(n1);
+
+ UndoStackState(1);
+}
+
+void ChargeStack(){
+ Number *n1;
+
+ finishEditor();
+
+ SaveStackState(0);
+
+ n1 = setNumberReal(newNumber(), realCharge);
+ Push(n1);
+
+ UndoStackState(1);
+}
+
+void E0Stack(){
+ Number *n1;
+
+ finishEditor();
+
+ SaveStackState(0);
+
+ n1 = setNumberReal(newNumber(), realE0);
+ Push(n1);
+
+ UndoStackState(1);
+}
+
+void Mu0Stack(){
+ Number *n1;
+
+ finishEditor();
+
+ SaveStackState(0);
+
+ n1 = setNumberReal(newNumber(), realMu0);
+ Push(n1);
+
+ UndoStackState(1);
+}
+
+void LightSpeedStack(){
+ Number *n1;
+
+ finishEditor();
+
+ SaveStackState(0);
+
+ n1 = setNumberReal(newNumber(), realLightSpeed);
+ Push(n1);
+
+ UndoStackState(1);
+}
+
void PiStack(){
Number *n1;

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-ap,v 1.1 2005/10/07 12:31:25 rillig Exp $
The patches patch-al upto patch-aq add the physical constants k, q, e0,
mu0, and c.
--- funcs.h.orig Thu Apr 4 05:46:11 2002
+++ funcs.h Fri Oct 7 14:24:25 2005
@@ -41,6 +41,11 @@ void DupStack();
void PopStack();
void PushStack();
+void BoltzmannStack();
+void ChargeStack();
+void E0Stack();
+void Mu0Stack();
+void LightSpeedStack();
void PiStack();
void NegStack();

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-aq,v 1.2 2011/12/14 02:57:37 sbd Exp $
The patches patch-al upto patch-aq add the physical constants k, q, e0,
mu0, and c.
--- CHANGES.orig 2011-05-10 16:59:30.000000000 +0000
+++ CHANGES
@@ -30,6 +30,13 @@ v1.1.1
v1.1.2
Add db10 and db20 commands.
+v1.1.2nb1
+ Add k,q,e0,mu0, and c commands for Boltzmann's constant
+ (Joules/Kelvin), electron charge (coulomb), free space
+ permitivitty (Farads/meter), free space permeability
+ (Henries/meter), and the speed of light in a vacuum
+ (meters/second).
+
v1.1.3
Added deg, rad, pol and rect commands.

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ar,v 1.1 2009/11/15 13:32:17 drochner Exp $
--- real.h.orig 2009-11-14 01:25:54.000000000 +0100
+++ real.h
@@ -90,6 +90,7 @@ Real * mulReal(Real *, Real *);
Real * mulEqReal(Real *, Real *);
Real * divReal(Real *, Real *);
Real * divEqReal(Real *, Real *);
+Real * modReal(Real *, Real *);
Real * addReal(Real *, Real *);
Real * addEqReal(Real *, Real *);
Real * subReal(Real *, Real *);

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-as,v 1.1 2009/11/15 13:32:17 drochner Exp $
--- number.h.orig 2009-11-14 01:25:54.000000000 +0100
+++ number.h
@@ -77,6 +77,7 @@ Number * atanNumber(Number *);
Number * mulNumber(Number *, Number *);
Number * divNumber(Number *, Number *);
+Number * modNumber(Number *, Number *);
Number * addNumber(Number *, Number *);
Number * subNumber(Number *, Number *);