source: trunk/dports/math/calc/Portfile

Last change on this file was 139558, checked in by khindenburg@…, 2 years ago

calc: implement UsingTheRightCompiler

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 139558 2015-08-20 14:04:27Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                calc
6version             2.12.5.0
7revision            1
8categories          math
9license             LGPL-2.1
10maintainers         nomaintainer
11description         Arbitrary precision calculator
12long_description \
13   Calc is an interactive calculator which provides for easy large numeric \
14   calculations, but which also can be easily programmed for difficult or \
15   long calculations. It can accept a command line argument, in which case \
16   it executes that single command and exits. Otherwise, it enters \
17   interactive mode. There are a great number of pre-defined functions. The \
18   calculator can calculate transcendental functions, and accept and display \
19   numbers in real or exponential format. The calculator also knows about \
20   complex numbers.
21
22platforms           darwin
23
24homepage            http://www.isthe.com/chongo/tech/comp/calc/
25master_sites        sourceforge:project/calc/calc/${version}
26use_bzip2           yes
27
28checksums           rmd160  d291d3a0bb9c91b92016c41b4abcdf3cfeccac07 \
29                    sha256  a0e7b47af38330f188970998c8e5039134dadf6f2e3f2c00d7efdae272a4338d
30
31depends_lib         port:readline port:ncurses
32
33patchfiles          patch-Makefile.diff
34post-patch {
35   reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile
36   reinplace "s|___DESTROOT___|${destroot}|" ${worksrcpath}/Makefile
37   reinplace "s|___CC___|${configure.cc}|" ${worksrcpath}/Makefile
38}
39
40use_configure       no
41use_parallel_build  no
42
43variant universal {}
44
45build.args-append   CC=${configure.cc}
46
47test.run            yes
48test.target         check
49
50destroot.destdir
Note: See TracBrowser for help on using the repository browser.