Ticket #38938: diff_cadabra

File diff_cadabra, 1.9 KB (added by kasper.peeters@…, 12 years ago)

Unified diff for Portfile for cadabra

Line 
1--- cadabra_Portfile.txt        2013-04-26 18:26:36.131747267 +0100
2+++ /cave/kasper/Portfile.cadabra       2013-02-24 20:07:16.326915068 +0000
3@@ -3,7 +3,7 @@
4 PortSystem 1.0
5 
6 name           cadabra
7-version                1.29
8+version                1.33
9 revision       1
10 categories     math
11 platforms      darwin
12@@ -20,12 +20,22 @@
13 homepage       http://cadabra.phi-sci.com/
14 master_sites   ${homepage}
15 
16-checksums      md5     ea6e64535e6a9abe8810e5baa6a579a8 \
17-               sha1    e11102d1bfc1a8b9527cb71f06b334b0d934b150 \
18-               rmd160  572924281546077b13327ba8958300b73f3ac092
19+checksums      md5     cee8ae23c169958aba09b64e4ea479ce \
20+                sha1    adc227ccacb9ceb0c8984c54b86711d5d6658fbf \
21+                rmd160  52686bdd7a635a6db30a91add951720f14c1ddc6
22 
23 # Invalid C++, ticket #33045
24-compiler.blacklist     clang
25+# Cannot use clang because xperm uses nested functions and
26+# variable sized arrays, both of which clang will never
27+# support.
28+# Silly llvm makes cadabra crash all over the place for
29+# no good reason, so that's out too.
30+compiler.blacklist     clang llvm
31+
32+# Furthermore, we cannot use anything except 4.2 because
33+# that will lead to cadabra being linked to two different
34+# libstdc++ libraries, with malloc failures as a result.
35+configure.compiler apple-gcc-4.2
36 
37 variant texmacs        description { install TeXmacs front end } {
38                  depends_run-append port:TeXmacs
39@@ -41,10 +51,10 @@
40                  configure.args-append --disable-gui
41                }
42 
43-patchfiles     patch-Makefile.in.diff          \
44-               patch-configure.diff
45+depends_build  port:pkgconfig \
46+                port:pcrexx \
47+               port:gcc47
48 
49-depends_build  port:pkgconfig
50 depends_lib    port:modglue    \
51                port:pcre       \
52                port:gmp        \
53@@ -53,10 +63,6 @@
54                port:texlive    \
55                port:texlive-bin-extra
56 
57-post-patch     {
58-                 reinplace "s|XXPATH_TO_GCCXX|${configure.cc}|" ${worksrcpath}/configure
59-               }
60-
61 build.env      CC=${configure.cc} CXX=${configure.cxx}
62 
63 post-build     {
64@@ -67,6 +73,6 @@
65                }
66 
67 post-activate  {
68-                 system "${prefix}/bin/texhash"
69+                 system "texhash"
70                }
71