source: trunk/dports/math/yacas/Portfile

Last change on this file was 135071, checked in by mf2k@…, 2 years ago

yacas: Add and conform to modeline.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 135071 2015-04-14 21:21:17Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                yacas
7version             1.3.2
8revision            1
9categories          math
10platforms           darwin
11license             GPL-2
12homepage            http://yacas.sourceforge.net/
13maintainers         nomaintainer
14description         Yet Another Computer Algebra System
15long_description    YACAS is an easy to use, general purpose Computer Algebra\
16    System, a program for symbolic manipulation of mathematical\
17    expressions. It uses its own programming language designed for\
18    symbolic as well as arbitrary-precision numerical computations.  The\
19    system has a library of scripts that implement many of the symbolic\
20    algebra operations - new algorithms can be easily added to the library.
21
22master_sites        http://yacas.sourceforge.net/backups/
23
24checksums           md5 a07347b9276a2b2180a5a4855323ea8e \
25                    sha1 1e2395a835eab64ad519abb2b816bd94d2a27a09 \
26                    rmd160 0f01763d029d078f0a156b0d8549c1de14b16341
27
28# perl is used to build documentation
29# ${prefix}/share/yacas/manmake/txt2yacasdoc.pl requires perl after build
30depends_lib         path:bin/perl:perl5
31
32post-patch {
33    #Ensure that the correct perl is used
34    foreach f {ytxt2tex Makefile.in book2ys.sh book2xml.sh book2txt.sh book2TeX.sh} {
35        reinplace -E "s|(\[^a-zA-Z_\])perl |\\1${prefix}/bin/perl |g" ${worksrcpath}/manmake/${f}
36    }
37    foreach f [glob -directory ${worksrcpath}/manmake *.pl] {
38         reinplace  "s|/usr/bin/perl|${prefix}/bin/perl|g" ${f}
39    }
40}
41
42configure.args-append   --with-html-dir=${prefix}/share/doc/${name}
43
44default_variants    +server
45
46variant server description {Add the ability to run as server} {
47    configure.args-append   --enable-server
48}
49
50test.run            yes
51
52livecheck.url       http://yacas.sourceforge.net/downloads.html
53livecheck.regex     "version (\\d(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.