Portfile

# $Id: Portfile 23201 2007-03-27 04:55:52Z markd@macports.org $

PortSystem 1.0
name calc
version 2.12.1.8
categories math
maintainers nomaintainer@macports.org
description Arbitrary precision calculator
long_description \
Calc is an interactive calculator which provides for easy \
large numeric calculations, but which also can be easily \
programmed for difficult or long calculations. It can \
accept a command line argument, in which case it executes \
that single command and exits. Otherwise, it enters \
interactive mode. There are a great number of pre-defined \
functions. The calculator can calculate transcendental \
functions, and accept and display numbers in real or \
exponential format. The calculator also knows about \
complex numbers.
homepage http://www.isthe.com/chongo/tech/comp/calc/
platforms darwin
master_sites sourceforge
checksums sha1 4ff5f8adb638565814319513e8acdf98191cb580

depends_lib port:readline \
port:ncurses

patchfiles patch-Makefile
post-patch {
reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile
reinplace "s|___DESTROOT___|${destroot}|" ${worksrcpath}/Makefile
}

use_configure no

test.run yes
test.target check

destroot.destdir

files