From fb578d0c5e59addda5efc8af984b54ac9aaa71f6 Mon Sep 17 00:00:00 2001 From: Toby Peterson Date: Tue, 16 Mar 2004 10:00:39 +0000 Subject: [PATCH] New port: calc 2.11.9.3, featurific arbitrary precision calculator git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@5834 d073be05-634f-4543-b044-5fe20cf6d1d6 --- math/calc/Portfile | 36 +++++++++++++++++++++++++ math/calc/files/patch-Makefile | 48 ++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 math/calc/Portfile create mode 100644 math/calc/files/patch-Makefile diff --git a/math/calc/Portfile b/math/calc/Portfile new file mode 100644 index 0000000000000..5240790cc995c --- /dev/null +++ b/math/calc/Portfile @@ -0,0 +1,36 @@ +# $Id: Portfile,v 1.1 2004/03/16 10:00:39 toby Exp $ + +PortSystem 1.0 +name calc +version 2.11.9.3 +categories math +maintainers toby@opendarwin.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 md5 3c431b681b572bf156a57d21f53eb7c0 + +patchfiles patch-Makefile +post-patch { + reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile + reinplace "s|___DESTROOT___|${destroot}|" ${worksrcpath}/Makefile +} + +configure {} + +test.run yes +test.target check + +destroot.destdir diff --git a/math/calc/files/patch-Makefile b/math/calc/files/patch-Makefile new file mode 100644 index 0000000000000..5333db04bfcea --- /dev/null +++ b/math/calc/files/patch-Makefile @@ -0,0 +1,48 @@ +--- Makefile.old Tue Mar 16 04:24:10 2004 ++++ Makefile Tue Mar 16 04:26:51 2004 +@@ -594,7 +594,7 @@ + + #INCDIR= /usr/local/include + #INCDIR= /dev/env/DJDIR/include +-INCDIR= /usr/include ++INCDIR= ___PREFIX___/include + + # Where to install calc realted things + # +@@ -621,15 +621,15 @@ + # + #BINDIR= /usr/local/bin + #BINDIR= /dev/env/DJDIR/bin +-BINDIR= /usr/bin ++BINDIR= ___PREFIX___/bin + + #LIBDIR= /usr/local/lib + #LIBDIR= /dev/env/DJDIR/lib +-LIBDIR= /usr/lib ++LIBDIR= ___PREFIX___/lib + + #CALC_SHAREDIR= /usr/local/lib/calc + #CALC_SHAREDIR= /dev/env/DJDIR/share/calc +-CALC_SHAREDIR= /usr/share/calc ++CALC_SHAREDIR= ___PREFIX___/share/calc + + #CALC_INCDIR= /usr/local/include/calc + #CALC_INCDIR= /dev/env/DJDIR/include/calc +@@ -692,7 +692,7 @@ + # + # If in doubt, use T= + # +-T= ++T=___DESTROOT___ + + # where man pages are installed + # +@@ -703,7 +703,7 @@ + #MANDIR= + #MANDIR= /usr/local/man/man1 + #MANDIR= /usr/man/man1 +-MANDIR= /usr/share/man/man1 ++MANDIR= ___PREFIX___/share/man/man1 + #MANDIR= /dev/env/DJDIR/man/man1 + #MANDIR= /usr/man/u_man/man1 + #MANDIR= /usr/contrib/man/man1