hc (the Hacker's calculator) is a simple yacc-based integer arithmetic

calculator designed for doing quick-and-dirty bitwise calculations. It
supports most common integer arithmetic operations, and operates in hex,
octal, or decimal modes.

This program most resembles a multi-radix version of hoc(1)
(ports/math/hoc).
This commit is contained in:
obecian 2001-12-17 07:06:43 +00:00
parent 41f6254d3a
commit 622840ff23
6 changed files with 72 additions and 0 deletions

28
math/hc/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/12/17 07:06:43 obecian Exp $
COMMENT= "multi-radix integer desk calculator"
DISTNAME= hc
PKGNAME= hc-1.1
CATEGORIES= math
NEED_VERSION= 1.500
MAINTAINER= Mark Grimes <obecian@openbsd.org>
HOMEPAGE= http://www.geocities.com/connorbd/software/hc.html
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/hcdist
MASTER_SITES= http://www.geocities.com/connorbd/software/
MAKE_FILE= makefile
EXTRACT_SUFX= .tgz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hc ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/hc.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

3
math/hc/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (hc.tgz) = e3617acf144c711cbacf847d4a1016c5
RMD160 (hc.tgz) = 4413ca9e6c25417ca8c4ebaf9f91a73c5bfc2b07
SHA1 (hc.tgz) = 4361bfebe36a33e9ce3459d69070837b16650445

View File

@ -0,0 +1,21 @@
--- hc.1~ Sun Dec 16 22:39:09 2001
+++ hc.1 Sun Dec 16 22:39:35 2001
@@ -5,7 +5,7 @@
.Os
.Sh NAME
.Nm hc
-.Nd multiradix integer desk calculator
+.Nd multi-radix integer desk calculator
.Sh SYNOPSIS
.Nm hc
.Oo
@@ -69,9 +69,5 @@ not yet incorporated) for their contribu
None at this time. Binary input has been implemented but not added.
-.Sh FILES
-.Bl -tag -width Pa -compact
-.It Pa /usr/bin/hc
-.El
.Sh SEE ALSO
bc(1); Kernighan & Pike

View File

@ -0,0 +1,8 @@
--- makefile~ Sun Dec 16 22:23:47 2001
+++ makefile Sun Dec 16 22:23:56 2001
@@ -1,3 +1,5 @@
+all: hc
+
hc: hc.o
cc hc.o -o hc
rm hc.o

9
math/hc/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
hc (the Hacker's calculator) is a simple yacc-based integer arithmetic
calculator designed for doing quick-and-dirty bitwise calculations. It
supports most common integer arithmetic operations, and operates in hex,
octal, or decimal modes.
This program most resembles a multi-radix version of hoc(1)
(ports/math/hoc).
WWW: ${HOMEPAGE}

3
math/hc/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/12/17 07:06:43 obecian Exp $
bin/hc
man/man1/hc.1