Ticket #47547: root6.diff

File root6.diff, 3.6 KB (added by cjones051073 (Chris Jones), 10 years ago)
  • Portfile

     
    1010PortGroup           select 1.0
    1111
    1212# don't forget to update both the git tag and the version
    13 github.setup        root-mirror root 9ab0642adeca5d3703783bdbfeebfca86ea22af9
    14 #github.setup       root-mirror root 6-03-02 v
    15 version             6.03.02.91
     13#github.setup        root-mirror root 9ab0642adeca5d3703783bdbfeebfca86ea22af9
     14github.setup        root-mirror root 6-03-04 v
     15version             6.03.04
    1616
    1717# this could be a better way to set the version (unless we use a sha sum for the git tag ;)
    1818# version           [string map {- .} $version]
    1919set version_major   [lindex [split ${version} .] 0]
    2020
    21 checksums           rmd160  a4f3e4248b4e5be9540dab481e5e919e66e40142 \
    22                     sha256  006dc44790d84eddfaaef90418a484e3cbb6d3978e731ea7a9b09e732f147c18
     21checksums           rmd160  f00aa3a334790c9b7da7871c33015cd1d72d2c43 \
     22                    sha256  ea3d11119cb7ff606178c777fdd4276ef6ee0424a99d196f41fbeb92c3c36bfd
    2323
    2424name                root${version_major}
    2525categories          science
     
    5757select.file         ${filespath}/${name}
    5858
    5959# Force a compatible compiler
    60 compiler.blacklist-append *gcc* {clang < 500} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2
    61 compiler.fallback-append macports-clang-3.4 macports-clang-3.5 macports-clang-3.6
     60compiler.blacklist-append *gcc* {clang < 500} \
     61                          macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 \
     62                          macports-clang-3.2 macports-clang-3.3
     63compiler.fallback-append  macports-clang-3.6 macports-clang-3.5 macports-clang-3.4
    6264
    6365# port specific location
    6466set install_prefix ${prefix}/libexec/root${version_major}
     
    513515# ========================================================================================
    514516
    515517# List of possible clang versions that work
    516 set clang_versions { 3.3 3.4 3.5 3.6 }
     518set clang_versions { 3.4 3.5 3.6 3.7 }
    517519
    518520# Define the available variants
    519521foreach clang_ver ${clang_versions} {
     
    530532
    531533# make sure that the proper variant is automatically selected
    532534# (ROOT crashes if the compiler it was built with doesn't exist)
    533 if {![variant_isset clang33] && ![variant_isset clang34] && ![variant_isset clang35]} {
    534     if { ${configure.compiler} eq "macports-clang-3.3" } {
     535if { ![variant_isset clang33] && ![variant_isset clang34] &&
     536     ![variant_isset clang35] && ![variant_isset clang36] &&
     537     ![variant_isset clang37] } {
     538    if       { ${configure.compiler} eq "macports-clang-3.3" } {
    535539        default_variants-append +clang33
    536540    } elseif { ${configure.compiler} eq "macports-clang-3.4" } {
    537541        default_variants-append +clang34
     
    539543        default_variants-append +clang35
    540544    } elseif { ${configure.compiler} eq "macports-clang-3.6" } {
    541545        default_variants-append +clang36
     546    } elseif { ${configure.compiler} eq "macports-clang-3.7" } {
     547        default_variants-append +clang37
    542548    }
    543549}
    544550
     
    553559
    554560# If so, set it up.
    555561if { ${active_clang_variant} != "" } {
    556     configure.compiler      macports-clang-${active_clang_variant}
     562    configure.compiler  macports-clang-${active_clang_variant}
    557563    # TODO
    558564    # configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-"${active_clang_variant}
    559     depends_run-append      port:clang-${active_clang_variant}
     565    depends_run-append  port:clang-${active_clang_variant}
    560566}
    561567
    562568# ========================================================================================