aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/Makefile1
-rw-r--r--math/gdcalc/Makefile21
-rw-r--r--math/gdcalc/distinfo1
-rw-r--r--math/gdcalc/files/patch-src::dcalc.c20
-rw-r--r--math/gdcalc/pkg-comment1
-rw-r--r--math/gdcalc/pkg-descr13
-rw-r--r--math/gdcalc/pkg-plist14
7 files changed, 71 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 38e325bbb9ae..f3fe7df8a55c 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -34,6 +34,7 @@
SUBDIR += fxt
SUBDIR += gap
SUBDIR += gcalctool
+ SUBDIR += gdcalc
SUBDIR += geg
SUBDIR += gexpr
SUBDIR += glove
diff --git a/math/gdcalc/Makefile b/math/gdcalc/Makefile
new file mode 100644
index 000000000000..f1bd602384fc
--- /dev/null
+++ b/math/gdcalc/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: gdcalc
+# Date created: 2002-06-29
+# Whom: Jan Srocker <Jan.Stocker@t-online.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gdcalc
+PORTVERSION= 2.12
+CATEGORIES= math
+MASTER_SITES= http://sedumi.freeshell.org/unix/
+
+MAINTAINER= Jan.Stocker@t-online.de
+
+RUN_DEPENDS= ${LOCALBASE}/bin/gunits:${PORTSDIR}/math/units
+
+USE_GNOMENG= yes
+USE_GNOME= gnomelibs
+GNU_CONFIGURE= yes
+
+.include <bsd.port.mk>
diff --git a/math/gdcalc/distinfo b/math/gdcalc/distinfo
new file mode 100644
index 000000000000..44e4b8b5f312
--- /dev/null
+++ b/math/gdcalc/distinfo
@@ -0,0 +1 @@
+MD5 (gdcalc-2.12.tar.gz) = 8ae54421f6d45336119228e8c8309e56
diff --git a/math/gdcalc/files/patch-src::dcalc.c b/math/gdcalc/files/patch-src::dcalc.c
new file mode 100644
index 000000000000..1d6a2c591136
--- /dev/null
+++ b/math/gdcalc/files/patch-src::dcalc.c
@@ -0,0 +1,20 @@
+--- src/dcalc.c.orig Fri Jul 12 15:26:18 2002
++++ src/dcalc.c Fri Jul 12 15:26:06 2002
+@@ -3247,7 +3247,7 @@
+ oldX = 1.0;
+
+ sprintf(fromarg, "%f %s", oldX, from);
+- argv[0] = "units";
++ argv[0] = "gunits";
+ argv[1] = "-o %.20g";
+ argv[2] = fromarg;
+ argv[3] = to;
+@@ -3296,7 +3296,7 @@
+ does not use stderr! */
+ msg("Bad units");
+ else
+- msg("Can't find the units program - please install it!");
++ msg("Can't find the gunits program - please install it!");
+
+ fclose(p); /* no need to close fd[1] too */
+ }
diff --git a/math/gdcalc/pkg-comment b/math/gdcalc/pkg-comment
new file mode 100644
index 000000000000..ffdf8e826907
--- /dev/null
+++ b/math/gdcalc/pkg-comment
@@ -0,0 +1 @@
+Gnome-based scientific calculator
diff --git a/math/gdcalc/pkg-descr b/math/gdcalc/pkg-descr
new file mode 100644
index 000000000000..0c6bdea0e5d4
--- /dev/null
+++ b/math/gdcalc/pkg-descr
@@ -0,0 +1,13 @@
+gdcalc is a financial, statistics, scientific and programmers
+calculator for Unix. The GUI was written with glade(1) and uses the
+Gnome/Gtk+ toolkit - so it may well be compatible with themes and
+other whiz-bang features of those systems.
+
+gdcalc has both Algebraic notation (ie. conventional, TI or Casio
+style) and Reverse Polish Notation (RPN or Hewlett-Packard style).
+If you've not heard of RPN before, you are probably familiar with
+algebraic calculators. Very briefly, while simpler and more natural
+to use, RPN calculators need some study eg. they have an Enter key
+instead of the equals key.
+
+WWW: http://sedumi.freeshell.org/unix/
diff --git a/math/gdcalc/pkg-plist b/math/gdcalc/pkg-plist
new file mode 100644
index 000000000000..215d3350631f
--- /dev/null
+++ b/math/gdcalc/pkg-plist
@@ -0,0 +1,14 @@
+bin/gdcalc
+share/applnk/Applications/gdcalc.kdelnk
+share/gnome/apps/Utilities/gdcalc.desktop
+share/icons/HP-16C-48.xpm
+share/icons/mini-HP-16C-48.xpm
+share/pixmaps/HP-16C-48.xpm
+share/pixmaps/mini-HP-16C-48.xpm
+@unexec rmdir %D/share/pixmaps 2>/dev/null || true
+@unexec rmdir %D/share/icons 2>/dev/null || true
+@unexec rmdir %D/share/gnome/apps/Utilities 2>/dev/null || true
+@unexec rmdir %D/share/gnome/apps 2>/dev/null || true
+@unexec rmdir %D/share/gnome/ 2>/dev/null || true
+@unexec rmdir %D/share/applnk/Applications 2>/dev/null || true
+@unexec rmdir %D/share/applnk 2>/dev/null || true