1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

moo is a simple calculator that accepts C-like syntax as input.

Calculations are done on expr, if given. Otherwise, the standard input is used.

Numbers can be entered in hexadecimal (0xbeef), decimal (1984), octal (007),
and binary (0b1001). All numerical operators (+, -, *, /, %), bit operators
(|, ^, &, ~, <<, >>), and logical operators (==, !=, <, >, <=, >=, !, &&, ||)
are supported.

WWW: http://cyth.net/~ray/moo/

PR:		ports/111824
Submitted by:	Steven Kreuzer <skreuzer at f2o.org>
This commit is contained in:
Martin Wilke 2007-04-19 10:48:07 +00:00
parent e9c921a099
commit 9509460611
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=190340
6 changed files with 66 additions and 0 deletions

View File

@ -145,6 +145,7 @@
SUBDIR += metis
SUBDIR += metis-edf
SUBDIR += miracl
SUBDIR += moo
SUBDIR += mpexpr
SUBDIR += mpfr
SUBDIR += mprime

24
math/moo/Makefile Normal file
View File

@ -0,0 +1,24 @@
# New ports collection makefile for: moo
# Date created: 05 Apr 2007
# Whom: Steven Kreuzer <skreuzer@f2o.org>
#
# $FreeBSD$
#
PORTNAME= moo
PORTVERSION= 1.3
CATEGORIES= math
MASTER_SITES= http://cyth.net/~ray/moo/
EXTRACT_SUFX= .tgz
MAINTAINER= skreuzer@f2o.org
COMMENT= Calculator that accepts C-like syntax as input
PLIST_FILES= bin/moo
MAN1= moo.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/moo ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/moo.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>

3
math/moo/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (moo-1.3.tgz) = ab3cc3d9877f372986f3c0f94a934944
SHA256 (moo-1.3.tgz) = 32d567dc74ac0123034009d570d3809f35d12a13978fb409153520448b40d45f
SIZE (moo-1.3.tgz) = 7380

View File

@ -0,0 +1,18 @@
--- Makefile.orig Thu Apr 5 14:13:26 2007
+++ Makefile Thu Apr 5 14:14:06 2007
@@ -3,14 +3,11 @@
PROG= moo
SRCS= moo.c scan.c
CPPFLAGS+= -I${.CURDIR}
-COPTS+= -Wall -W -Wno-unused -Wshadow -pedantic
+COPTS+= -Wall -W -Wno-unused -Wshadow
CLEANFILES+= moo.c y.tab.h scan.c lex.yy.c
LOCALBASE?=/usr/local
BINDIR=${LOCALBASE}/bin
MANDIR=${LOCALBASE}/man/cat
-
-regress::
- cd ${.CURDIR}/regress && ${MAKE} MOO=${.OBJDIR}/moo
.include <bsd.prog.mk>

View File

@ -0,0 +1,11 @@
--- moo.y.orig Thu Apr 5 14:14:22 2007
+++ moo.y Thu Apr 5 14:14:29 2007
@@ -37,7 +37,7 @@
static void divbyzero(void);
static void printnum(int64_t);
-__dead static void usage(void);
+__dead2 static void usage(void);
void yyerror(char *);
int yylex(void);
int yyparse(void);

9
math/moo/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
moo is a simple calculator that accepts C-like syntax as input.
Calculations are done on expr, if given. Otherwise, the standard input is used.
Numbers can be entered in hexadecimal (0xbeef), decimal (1984), octal (007),
and binary (0b1001). All numerical operators (+, -, *, /, %), bit operators
(|, ^, &, ~, <<, >>), and logical operators (==, !=, <, >, <=, >=, !, &&, ||)
are supported.
WWW: http://cyth.net/~ray/moo/