[153541] trunk/dports/science/root5/Portfile
mojca at macports.org
mojca at macports.org
Tue Oct 4 09:44:52 CEST 2016
Revision: 153541
https://trac.macports.org/changeset/153541
Author: mojca at macports.org
Date: 2016-10-04 00:44:52 -0700 (Tue, 04 Oct 2016)
Log Message:
-----------
root5: fix build on 10.12 (closes #52465)
- switch to a newer commit from the 5-34-00 branch that fixes compatibility with macOS Sierra
- blacklist older compilers (gcc, clang 3.3), only clang 3.4 and newer works
- remove variants for gfortran 4.3 to 4.6, add +gcc6 and make it default
Modified Paths:
--------------
trunk/dports/science/root5/Portfile
Modified: trunk/dports/science/root5/Portfile
===================================================================
--- trunk/dports/science/root5/Portfile 2016-10-04 05:15:25 UTC (rev 153540)
+++ trunk/dports/science/root5/Portfile 2016-10-04 07:44:52 UTC (rev 153541)
@@ -8,13 +8,14 @@
PortGroup compiler_blacklist_versions 1.0
PortGroup github 1.0
-github.setup root-mirror root 5-34-36 v
-version 5.34.36
+#github.setup root-mirror root 5-34-36 v
+github.setup root-mirror root c06fdea
+version 5.34.37
set version_major [lindex [split ${version} .] 0]
-checksums rmd160 bd19fe36d42928fe2e6b6df6f055f5cc0e6bece5 \
- sha256 8482b84a90928ef7eb44b9172f961b8b9607969959ab175eeff812cd91dd4893
+checksums rmd160 4d28ced0f6faee87e5dd7130f96c15fd0237041b \
+ sha256 da68645b5c31b6fe2c52cf73a6f7c848d3ccdd2ef68436b953c95c55cb030468
name root${version_major}
categories science
@@ -49,6 +50,10 @@
select.group root
select.file ${filespath}/${name}
+# Force a compatible compiler
+compiler.blacklist-append *gcc* {clang < 500} macports-clang-3.3
+compiler.fallback-append macports-clang-3.8 macports-clang-3.7 macports-clang-3.6 macports-clang-3.5
+
post-patch {
# reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in
reinplace "s|\"/usr/include\"|\"${prefix}/include /usr/include\"|g" ${worksrcpath}/configure
@@ -487,7 +492,7 @@
# ========================================================================================
# List of possible clang versions that work
-set clang_versions { 3.3 3.4 3.5 }
+set clang_versions { 3.4 3.5 3.6 3.7 3.8 }
# Define the available variants
foreach ver ${clang_versions} {
@@ -574,8 +579,8 @@
# Note that g95 does not work here, so that variant is removed
# ========================================================================================
-set gcc_versions { 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5 }
-set default_fortran_variant +gcc5
+set gcc_versions { 4.7 4.8 4.9 5 6 }
+set default_fortran_variant +gcc6
foreach ver ${gcc_versions} {
set ver_no_dot [join [split ${ver} "."] ""]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161004/5e5ff256/attachment-0002.html>
More information about the macports-changes
mailing list