Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2007 18:04:07 GMT
From:      Steven Kreuzer<skreuzer@f2o.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/111824: new port: math/moo
Message-ID:  <200704181804.l3II47vF071426@www.freebsd.org>
Resent-Message-ID: <200704181810.l3IIA3af003623@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111824
>Category:       ports
>Synopsis:       new port: math/moo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 18 18:10:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Steven Kreuzer
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD escobar.exit2shell.com 6.2-STABLE FreeBSD 6.2-STABLE #6: Mon Apr 16 19:06:28 EDT 2007     root@escobar.exit2shell.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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.

moo is released into the public domain.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	moo/
#	moo/Makefile
#	moo/distinfo
#	moo/files
#	moo/files/patch-Makefile
#	moo/files/patch-moo.y
#	moo/pkg-descr
#
echo c - moo/
mkdir -p moo/ > /dev/null 2>&1
echo x - moo/Makefile
sed 's/^X//' >moo/Makefile << 'END-of-moo/Makefile'
X# New ports collection makefile for:	moo
X# Date created:				05 Apr 2007
X# Whom:					Steven Kreuzer <skreuzer@f2o.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	moo
XPORTVERSION=	1.3
XCATEGORIES=	math
XMASTER_SITES=	http://cyth.net/~ray/moo/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	skreuzer@f2o.org
XCOMMENT=	Calculator that accepts C-like syntax as input
X
XPLIST_FILES=	bin/moo
XMAN1=		moo.1
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/moo ${PREFIX}/bin/
X	${INSTALL_MAN} ${WRKSRC}/moo.1 ${MANPREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-moo/Makefile
echo x - moo/distinfo
sed 's/^X//' >moo/distinfo << 'END-of-moo/distinfo'
XMD5 (moo-1.3.tgz) = ab3cc3d9877f372986f3c0f94a934944
XSHA256 (moo-1.3.tgz) = 32d567dc74ac0123034009d570d3809f35d12a13978fb409153520448b40d45f
XSIZE (moo-1.3.tgz) = 7380
END-of-moo/distinfo
echo c - moo/files
mkdir -p moo/files > /dev/null 2>&1
echo x - moo/files/patch-Makefile
sed 's/^X//' >moo/files/patch-Makefile << 'END-of-moo/files/patch-Makefile'
X--- Makefile.orig	Thu Apr  5 14:13:26 2007
X+++ Makefile	Thu Apr  5 14:14:06 2007
X@@ -3,14 +3,11 @@
X PROG=		moo
X SRCS=		moo.c scan.c
X CPPFLAGS+=	-I${.CURDIR}
X-COPTS+=		-Wall -W -Wno-unused -Wshadow -pedantic
X+COPTS+=		-Wall -W -Wno-unused -Wshadow
X CLEANFILES+=	moo.c y.tab.h scan.c lex.yy.c
X 
X LOCALBASE?=/usr/local
X BINDIR=${LOCALBASE}/bin
X MANDIR=${LOCALBASE}/man/cat
X-
X-regress::
X-	cd ${.CURDIR}/regress && ${MAKE} MOO=${.OBJDIR}/moo
X 
X .include <bsd.prog.mk>
END-of-moo/files/patch-Makefile
echo x - moo/files/patch-moo.y
sed 's/^X//' >moo/files/patch-moo.y << 'END-of-moo/files/patch-moo.y'
X--- moo.y.orig	Thu Apr  5 14:14:22 2007
X+++ moo.y	Thu Apr  5 14:14:29 2007
X@@ -37,7 +37,7 @@
X 
X static void		divbyzero(void);
X static void		printnum(int64_t);
X-__dead static void	usage(void);
X+__dead2 static void	usage(void);
X void			yyerror(char *);
X int			yylex(void);
X int			yyparse(void);
END-of-moo/files/patch-moo.y
echo x - moo/pkg-descr
sed 's/^X//' >moo/pkg-descr << 'END-of-moo/pkg-descr'
Xmoo is a simple calculator that accepts C-like syntax as input.
XCalculations are done on expr, if given. Otherwise, the standard input is used.
X
XNumbers can be entered in hexadecimal (0xbeef), decimal (1984), octal (007),
Xand binary (0b1001). All numerical operators (+, -, *, /, %), bit operators
X(|, ^, &, ~, <<, >>), and logical operators (==, !=, <, >, <=, >=, !, &&, ||) 
Xare supported.
X
Xmoo is released into the public domain. 
X
XWWW: http://cyth.net/~ray/moo/
END-of-moo/pkg-descr
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704181804.l3II47vF071426>