source: trunk/dports/math/cadabra/Portfile @ 63516

Last change on this file since 63516 was 63516, checked in by gwright@…, 7 years ago

Run texhash after installation in all cases, not just when the
+texmacs variant is specified. Bump revision. Thanks to Kasper
Peeters for pointing this out.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 63516 2010-02-06 23:05:43Z gwright@macports.org $
2
3PortSystem 1.0
4
5name            cadabra
6version         1.20
7revision        1
8categories      math
9platforms       darwin
10maintainers     gwright
11description     A field theory approach to symbolic computer algebra
12long_description \
13        Cadabra is a computer algebra system for the manipulation       \
14        of what could loosely be called tensorial expressions. It is    \
15        aimed at, though not necessarily restricted to, theoretical     \
16        high energy physicists. Because of its target audience, the     \
17        program's interface, storage system and underlying philosophy   \
18        differ substantially from other computer algebra systems.
19
20homepage        http://cadabra.phi-sci.com/
21master_sites    ${homepage}
22
23checksums       md5     20b8cda9404a03d307191a7e32195253 \
24                sha1    6096c85ad1e8e2aabc5392624adc690cd1426c9d \
25                rmd160  acbd04693b67201891412e7e1d4accb57e8e45df
26
27variant texmacs description { install TeXmacs front end } {
28                  depends_run-append port:TeXmacs
29                }
30
31variant maintainer_tests description { debug tests used by the maintainer } {
32                  # 1.16 requires maxima to run the maintainer tests.
33                  # This should go away in 1.18 according to the author.
34                  depends_run-append port:maxima
35                }
36
37variant no_gui  description { do not build GUI } {
38                  depends_lib-delete port:gtkmm
39                  configure.args-append --disable-gui
40                }
41
42patchfiles      patch-Makefile.in.diff          \
43                patch-configure.diff
44
45depends_lib     port:modglue    \
46                port:pcre       \
47                port:gmp        \
48                port:LiE        \
49                port:gtkmm      \
50                port:texlive
51
52post-patch      {
53                  reinplace "s|XXPATH_TO_GCCXX|${configure.cc}|" ${worksrcpath}/configure
54                }
55
56build.env       CC=${configure.cc} CXX=${configure.cxx}
57
58post-build      {
59                  if {[variant_isset maintainer_tests]} {
60                        system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} test"
61                        system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} advtest"
62                  }
63                }
64
65post-activate   {
66                  system "${prefix}/bin/texhash"
67                }
68
Note: See TracBrowser for help on using the repository browser.