Skip to content

Commit

Permalink
mcfm: 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchall committed Feb 10, 2024
1 parent cec2330 commit 4038f55
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions Formula/mcfm.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Mcfm < Formula

Check failure on line 1 in Formula/mcfm.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

mcfm: livecheck error

Unable to get versions
desc "Monte Carlo for FeMtobarn processes"
homepage "https://mcfm.fnal.gov"
url "https://mcfm.fnal.gov/downloads/MCFM-10.2.2.tar.gz"
sha256 "15ebd4cb51cafb4af674a2e0a3ec8c02ac88a49565b3265c80719c59c0cc3c9d"
url "https://mcfm.fnal.gov/downloads/MCFM-10.3.tar.gz"
sha256 "97677cbccb06b2821a5fa1569d1f561b253bd0651a97ab05d13247c708864840"
license "GPL-3.0-or-later"

livecheck do
Expand All @@ -19,22 +19,21 @@ class Mcfm < Formula
option "with-nnlo-vv", "Build NNLO diboson processes (slow compilation)"

depends_on "cmake" => :build
depends_on "gcc@12"
depends_on "gcc" => :build
depends_on "lhapdf" => :optional # needs to be built with gcc

fails_with :clang

patch :DATA

def install

Check warning on line 27 in Formula/mcfm.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

`brew install --verbose --build-bottle davidchall/hep/mcfm` failed on macOS Sonoma (14) on Apple Silicon!

checking for library containing clock_gettime... none required checking for isnan... std::isnan checking for isinf... std::isinf checking for isfinite... [ 25%] Building CXX object CMakeFiles/objlib.dir/src/cache.cc.o std::isfinite checking for copysign... std::copysign checking whether we are using the GNU Fortran compiler... yes checking whether /opt/homebrew/opt/gcc/bin/gfortran-13 accepts -g... yes checking how to get verbose linking output from /opt/homebrew/opt/gcc/bin/gfortran-13... [ 33%] Building CXX object CMakeFiles/objlib.dir/src/qcdloop.cc.o -v checking for Fortran libraries of /opt/homebrew/opt/gcc/bin/gfortran-13... -L/opt/homebrew/Cellar/gcc/13.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin23/13 -L/opt/homebrew/Cellar/gcc/13.2.0/bin/../lib/gcc/current/gcc -L/opt/homebrew/Cellar/gcc/13.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin23/13/../../.. -lgfortran -lemutls_w -lquadmath checking for Fortran flag needed to accept free-form source... -ffree-form checking for etime... etime checking whether extra library is needed to link Fortran and C++... [ 41%] Building CXX object CMakeFiles/objlib.dir/src/tadpole.cc.o none checking for dummy main to link with Fortran libraries... [ 50%] Building CXX object CMakeFiles/objlib.dir/src/tools.cc.o none checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore checking for alternate main to link with Fortran libraries... main checking fortran 90 modules inclusion flag... [ 58%] Building CXX object CMakeFiles/objlib.dir/src/topology.cc.o checking fortran 90 modules naming style... checking for sqrt in -lm... yes checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by /opt/homebrew/Library/Homebrew/shims/mac/super/gcc-13... /opt/homebrew/Library/Homebrew/shims/mac/super/ld checking if the linker (/opt/homebrew/Library/Homebrew/shims/mac/super/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... [ 66%] Building CXX object CMakeFiles/objlib.dir/src/triangle.cc.o /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 786432 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /opt/homebrew/Library/Homebrew/shims/mac/super/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from /opt/homebrew/Library/Homebrew/shims/mac/super/gcc-13 object... ok checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... no checking for -exported_symbols_list linker flag... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... (cached) yes checking whether /opt/homebrew/Library/Homebrew/shims/mac/super/g++-13 accepts -g... (cached) yes checking dependency style of /opt/homebrew/Library/Homebrew/shims/mac/super/g++-13... (cached) gcc3 checking how to run the C++ preprocessor... /opt/homebrew/Library/Homebrew/shims/mac/super/g++-13 -E checking whether we are using the GNU Fortran compiler... (cached) yes checking whether /opt/homebrew/opt/gcc/bin/gfortran-13 accepts -g... (cached) yes checking for objdir... .libs [ 75%] Building CXX object CMakeFiles/objlib.dir/src/types.cc.o checking if /opt/homebrew/Library/Homebrew/shims/mac/super/gcc-13 supports -fno-rtti -fno-exceptions... no checking for /opt/homebrew/Library/Homebrew/shims/mac/super/gcc-13 option to produce PIC... -fno-common -DPIC checking if /opt/homebrew/Library/Homebrew/shims/mac/super/gcc-13 PIC flag -fno-common -DPIC works... yes checking if /opt/homebrew/Library/Homebrew/shims/mac/super/gcc-
gcc = Formula["gcc@12"]
ENV["FC"] = gcc.opt_bin/"gfortran-#{gcc.version_suffix}"
gfortran_lib = gcc.opt_lib/"gcc/#{gcc.version_suffix}"
gcc = Formula["gcc"]
gcc_major_ver = gcc.any_installed_version.major
ENV["FC"] = gcc.opt_bin/"gfortran-#{gcc_major_ver}"
gfortran_lib = gcc.opt_lib/"gcc/#{gcc_major_ver}"

inreplace "lib/qcdloop-2.0.5/CMakeLists.txt",
inreplace "lib/qcdloop-2.0.9/CMakeLists.txt",
"target_link_libraries(qcdloop_shared)",
"target_link_libraries(qcdloop_shared -L#{gfortran_lib} -lquadmath)"
inreplace "lib/qcdloop-2.0.5/CMakeLists.txt",
inreplace "lib/qcdloop-2.0.9/CMakeLists.txt",
"target_link_libraries(qcdloop_static)",
"target_link_libraries(qcdloop_static -L#{gfortran_lib} -lquadmath)"

Expand Down Expand Up @@ -71,22 +70,6 @@ def caveats

inreplace "input.ini", "part = nlo", "part = lo" # avoid test timeout
system bin/"mcfm", "input.ini"
assert_predicate testpath/"W_only_lo_CT14nnlo_1.00_1.00_14TeV_total_cross.txt", :exist?
assert_predicate testpath/"W_only_lo_LUXqed17_plus_PDF4LHC15_nnlo_30_100__100__test1_total_cross.txt", :exist?
end
end

__END__
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4fff350..1dc0b76 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -290,8 +290,8 @@ if(use_internal_lhapdf)
elseif(use_external_lhapdf)
find_library(lhapdf_lib NAMES LHAPDF REQUIRED)
target_link_libraries(mcfm ${lhapdf_lib})
- if (${lhapdf_include_path})
- target_include_directories(objlib PRIVATE "${LHAPDF_INCLUDE_PATH}" "${CMAKE_BINARY_DIR}/local/include" "${CMAKE_BINARY_DIR}/local/include/qd")
+ if (NOT ${lhapdf_include_path} STREQUAL "OFF")
+ target_include_directories(objlib PRIVATE "${lhapdf_include_path}" "${CMAKE_BINARY_DIR}/local/include" "${CMAKE_BINARY_DIR}/local/include/qd")
endif()
endif()

0 comments on commit 4038f55

Please sign in to comment.