# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup xcodeversion 1.0
PortGroup legacysupport 1.0
# Please also check if Gate needs a revbump after root6 update
github.setup root-project root 6-18-04 v
version [string map {- .} ${github.version}]
livecheck.version ${github.version}
#github.setup root-project root 6e90aef0c646668a513fd2e291500c0c31fa1af2
#github.setup cjones051073 root 6e90aef0c646668a513fd2e291500c0c31fa1af2
#livecheck.version 6-14-00
set version_major [lindex [split ${version} .] 0]
livecheck.url ${github.homepage}/tags
# even numbered minor releases are production releases, odd are developmental so skip.
# Also, skip anything with trailing rcX etc.
livecheck.regex {v(6[-.]\d[02468][-.]\d{2}).tar.gz}
checksums rmd160 2af3a2f7c1f92ff7fe135bd32ee9ebb43b023504 \
sha256 e9c135a83a6090576ff67f2765f9d10f9697416637fb7486a80294cf09235884 \
name root${version_major}
maintainers {jonesc @cjones051073} {mojca @mojca}
description ROOT is a data analysis framework from CERN
long_description The ROOT system provides a set of frameworks with all \
the functionality needed to handle and analyze large amounts \
of data in a very efficient way.
homepage https://root.cern.ch/
dist_subdir root/${version}_1
# Force a compatible compiler
configure.fc ${prefix}/bin/gfortran-mp-${gcc_ver}
configure.f77 ${prefix}/bin/gfortran-mp-${gcc_ver}
configure.f90 ${prefix}/bin/gfortran-mp-${gcc_ver}
depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
depends_build-append port:gcc${gcc_ver}
compiler.blacklist-append *gcc* {clang < 920} {macports-clang-3.[0-9]} {macports-clang-[4-6].0}
# If using Macports clang, make sure its added as a runtime dep as well as cling will need it.