[121910] trunk/dports/science/root5/Portfile
mojca at macports.org
mojca at macports.org
Fri Jul 11 06:24:22 PDT 2014
Revision: 121910
https://trac.macports.org/changeset/121910
Author: mojca at macports.org
Date: 2014-07-11 06:24:22 -0700 (Fri, 11 Jul 2014)
Log Message:
-----------
root5: upgrade to 5.34.19, add proper dependencies on clang, add variants +http and +vc (#44296)
Modified Paths:
--------------
trunk/dports/science/root5/Portfile
Modified: trunk/dports/science/root5/Portfile
===================================================================
--- trunk/dports/science/root5/Portfile 2014-07-11 13:21:20 UTC (rev 121909)
+++ trunk/dports/science/root5/Portfile 2014-07-11 13:24:22 UTC (rev 121910)
@@ -8,7 +8,7 @@
PortGroup compiler_blacklist_versions 1.0
name root5
-version 5.34.18
+version 5.34.19
set version_major [lindex [split ${version} .] 0]
categories science
@@ -24,8 +24,8 @@
master_sites http://root.cern.ch/download/ \
ftp://root.cern.ch/root/
-checksums rmd160 2fbaff8f831611779b42480fcb86cbde34ef72bd \
- sha256 9196dce7d76b31e5bcabd985bd31bc4d9b7c8c4d0c7ce84f730efa4ef82a3567
+checksums rmd160 8e8a92d8734bd3e30abae66794dac07085e9b7dc \
+ sha256 c516d167434c7d6d9c6a2f44f7b4af4115d3d0e3389ba79999ae984aee61356d
worksrcdir root
@@ -107,6 +107,8 @@
--disable-c++11 \
--disable-xrootd \
--disable-oracle \
+ --disable-http \
+ --disable-vc \
--enable-builtin-ftgl \
--enable-mathmore \
--enable-genvector \
@@ -183,7 +185,7 @@
universal_variant no
-default_variants +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
+default_variants +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion +http
# Since ROOT 5.34.15 the cocoa backend is default on OSX 10.8 or newer
# We also make it default on 10.7
@@ -193,6 +195,14 @@
set default_gui_variant +x11
}
+variant http description {Build with HTTP Server library support} {
+ configure.args-replace --disable-http --enable-http
+}
+
+variant vc description {Build with Vc library support} {
+ configure.args-replace --disable-vc --enable-vc
+}
+
variant debug description {Enable a debug build} {
configure.args-append --build=debug
}
@@ -206,8 +216,7 @@
}
variant soversion description {Build with soversion support} {
- configure.args-delete --disable-soversion
- configure.args-append --enable-soversion
+ configure.args-replace --disable-soversion --enable-soversion
}
variant graphviz description {Build with graphviz support} {
@@ -267,13 +276,11 @@
}
variant roofit description {Build the RooFit advanced fitting package} {
- configure.args-delete --disable-roofit
- configure.args-append --enable-roofit
+ configure.args-replace --disable-roofit --enable-roofit
}
variant tmva description {Build the TMVA package} {
- configure.args-delete --disable-tmva
- configure.args-append --enable-tmva
+ configure.args-replace --disable-tmva --enable-tmva
post-destroot {
set tmvaTuts ${destroot}${install_prefix}/share/root/tutorial/tmva
file mkdir ${tmvaTuts}
@@ -282,8 +289,7 @@
}
variant minuit2 description {Build with minuit2 support} {
- configure.args-delete --disable-minuit2
- configure.args-append --enable-minuit2
+ configure.args-replace --disable-minuit2 --enable-minuit2
}
variant opengl description {Build with opengl support} {
@@ -487,6 +493,18 @@
eval $variant_line
}
+# make sure that the proper variant is automatically selected
+# (ROOT crashes if the compiler it was built with doesn't exist)
+if {![variant_isset clang33] && ![variant_isset clang34] && ![variant_isset clang35]} {
+ if { ${configure.compiler} eq "macports-clang-3.3" } {
+ default_variants-append +clang33
+ } elseif { ${configure.compiler} eq "macports-clang-3.4" } {
+ default_variants-append +clang34
+ } elseif { ${configure.compiler} eq "macports-clang-3.5" } {
+ default_variants-append +clang35
+ }
+}
+
# Is a variant active ?
set active_clang_variant ""
foreach ver ${clang_versions} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140711/811ddb90/attachment-0001.html>
More information about the macports-changes
mailing list