aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-06-14 05:45:12 +0800
committerijliao <ijliao@FreeBSD.org>2001-06-14 05:45:12 +0800
commit1d168eb80694665b2bc5bffb2a33b35181297e92 (patch)
tree4aed4981d3f86d83a61c7c1eda640e1edb589e89 /math
parent7c639f50c92059d5552bf2a542a776a5434a3304 (diff)
downloadfreebsd-ports-gnome-1d168eb80694665b2bc5bffb2a33b35181297e92.tar.gz
freebsd-ports-gnome-1d168eb80694665b2bc5bffb2a33b35181297e92.tar.zst
freebsd-ports-gnome-1d168eb80694665b2bc5bffb2a33b35181297e92.zip
add gexpr
A shell calculator
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/gexpr/Makefile24
-rw-r--r--math/gexpr/distinfo1
-rw-r--r--math/gexpr/files/patch-Makefile16
-rw-r--r--math/gexpr/pkg-comment1
-rw-r--r--math/gexpr/pkg-descr3
-rw-r--r--math/gexpr/pkg-plist1
7 files changed, 47 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 42f1e2389904..3dfd033e978c 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -24,6 +24,7 @@
SUBDIR += freefem
SUBDIR += fudgit
SUBDIR += geg
+ SUBDIR += gexpr
SUBDIR += glove
SUBDIR += glpk
SUBDIR += gnumeric
diff --git a/math/gexpr/Makefile b/math/gexpr/Makefile
new file mode 100644
index 000000000000..ab0520086f63
--- /dev/null
+++ b/math/gexpr/Makefile
@@ -0,0 +1,24 @@
+# ex:ts=8
+# New ports collection makefile for: gexpr
+# Date created: Jun 14, 2001
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= gexpr
+PORTVERSION= 2.0.2
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= apps/math/calc
+
+MAINTAINER= ijliao@FreeBSD.org
+
+LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+
+MAN1= gexpr.1
+
+post-patch:
+ @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/math/gexpr/distinfo b/math/gexpr/distinfo
new file mode 100644
index 000000000000..8ca9c57bba1d
--- /dev/null
+++ b/math/gexpr/distinfo
@@ -0,0 +1 @@
+MD5 (gexpr-2.0.2.tar.gz) = e4cb9b62b1f363bbf788f455ef144885
diff --git a/math/gexpr/files/patch-Makefile b/math/gexpr/files/patch-Makefile
new file mode 100644
index 000000000000..54f3d5c71b87
--- /dev/null
+++ b/math/gexpr/files/patch-Makefile
@@ -0,0 +1,16 @@
+--- Makefile.orig Thu Jun 14 05:36:02 2001
++++ Makefile Thu Jun 14 05:39:22 2001
+@@ -1,11 +1,10 @@
+ # Makefile for gexpr
+ # Last updated: 10 February 1999
+
+-CC = gcc
+-OPTS = -s -O2 -Wall
++OPTS = ${CFLAGS} -I%%LOCALBASE%%/include
+ OBJS = eval.o read_token.o commands.o output.o errors.o gexpr.o
+ GEXPR = gexpr
+-LIBS = -lm
++LIBS = -lm -L%%LOCALBASE%%/lib -lgnugetopt
+
+ all: $(GEXPR)
+
diff --git a/math/gexpr/pkg-comment b/math/gexpr/pkg-comment
new file mode 100644
index 000000000000..23a6028cafeb
--- /dev/null
+++ b/math/gexpr/pkg-comment
@@ -0,0 +1 @@
+A shell calculator
diff --git a/math/gexpr/pkg-descr b/math/gexpr/pkg-descr
new file mode 100644
index 000000000000..3c1816295523
--- /dev/null
+++ b/math/gexpr/pkg-descr
@@ -0,0 +1,3 @@
+Gexpr is a shell calculator with floating point, standard C functions,
+relational operators, and output in base 2/8/10/16. It is a light alternative
+to bc(1). It can also be used to add floating point math to shell scripts.
diff --git a/math/gexpr/pkg-plist b/math/gexpr/pkg-plist
new file mode 100644
index 000000000000..619efe0185b5
--- /dev/null
+++ b/math/gexpr/pkg-plist
@@ -0,0 +1 @@
+bin/gexpr