[108122] trunk/dports/math/cadabra
larryv at macports.org
larryv at macports.org
Sat Jul 13 08:10:14 PDT 2013
Revision: 108122
https://trac.macports.org/changeset/108122
Author: larryv at macports.org
Date: 2013-07-13 08:10:14 -0700 (Sat, 13 Jul 2013)
Log Message:
-----------
cadabra: Update to 1.33 (maintainer timeout, #38938).
Also:
* Add license.
* Restrict to apple-gcc-4.2.
* Replace maintainer_tests variant with test phase.
* Add default gui variant and obselete no_gui.
Modified Paths:
--------------
trunk/dports/math/cadabra/Portfile
Removed Paths:
-------------
trunk/dports/math/cadabra/files/
Modified: trunk/dports/math/cadabra/Portfile
===================================================================
--- trunk/dports/math/cadabra/Portfile 2013-07-13 14:37:25 UTC (rev 108121)
+++ trunk/dports/math/cadabra/Portfile 2013-07-13 15:10:14 UTC (rev 108122)
@@ -3,10 +3,10 @@
PortSystem 1.0
name cadabra
-version 1.29
-revision 1
+version 1.33
categories math
platforms darwin
+license GPL-3+
maintainers gwright
description A field theory approach to symbolic computer algebra
long_description \
@@ -20,53 +20,55 @@
homepage http://cadabra.phi-sci.com/
master_sites ${homepage}
-checksums md5 ea6e64535e6a9abe8810e5baa6a579a8 \
- sha1 e11102d1bfc1a8b9527cb71f06b334b0d934b150 \
- rmd160 572924281546077b13327ba8958300b73f3ac092
+checksums rmd160 52686bdd7a635a6db30a91add951720f14c1ddc6 \
+ sha256 075dad3a1a9fd8774473f6d28f036f65629a286304c02f0ac1e10be3cb2ebd12
# Invalid C++, ticket #33045
-compiler.blacklist clang
+#
+# Cannot use clang because xperm uses nested functions and variable
+# sized arrays, both of which clang will never support. Silly llvm makes
+# cadabra crash all over the place for no good reason, so that's out
+# too. Furthermore, we cannot use anything except 4.2 because that will
+# lead to cadabra being linked to two different libstdc++ libraries,
+# with malloc failures as a result.
+configure.compiler apple-gcc-4.2
variant texmacs description { install TeXmacs front end } {
depends_run-append port:TeXmacs
}
-variant maintainer_tests description { debug tests used by the maintainer } {
- # This variant is only used for the value
- # of maintainer_tests.
- }
+# Legacy no_gui variant to be removed after July 2014
+variant no_gui conflicts gui description {Legacy compatibility variant} {}
+variant gui description {build with GUI} {
+ depends_lib-append port:gtkmm
+ depends_run-append port:dvipng \
+ port:texlive-latex \
+ port:texlive-latex-recommended
+ configure.args-delete --disable-gui
+}
+if {[variant_isset no_gui]} {
+ default_variants -gui
+} else {
+ default_variants +gui
+}
-variant no_gui description { do not build GUI } {
- depends_lib-delete port:gtkmm
- configure.args-append --disable-gui
- }
+depends_build port:pkgconfig \
+ port:pcrexx
-patchfiles patch-Makefile.in.diff \
- patch-configure.diff
-
-depends_build port:pkgconfig
depends_lib port:modglue \
port:pcre \
port:gmp \
- port:LiE \
- port:gtkmm \
- port:texlive \
- port:texlive-bin-extra
+ port:LiE
-post-patch {
- reinplace "s|XXPATH_TO_GCCXX|${configure.cc}|" ${worksrcpath}/configure
- }
+configure.args --disable-gui \
+ --disable-runtime-dependency-check
build.env CC=${configure.cc} CXX=${configure.cxx}
-post-build {
- if {[variant_isset maintainer_tests]} {
- system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} test"
- system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} advtest"
- }
- }
+test.run yes
+test.env CDB_LOG=1
+test.target test advtest
post-activate {
- system "${prefix}/bin/texhash"
+ system "texhash"
}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130713/76ed7da4/attachment.html>
More information about the macports-changes
mailing list