<commit_before>require 'formula'

class Simbody < Formula
  homepage 'https://simtk.org/home/simbody'
  url 'https://github.com/simbody/simbody/archive/Simbody-3.3.zip'
  sha1 'a67ee802fb410a1c346718a48ac0ede2f7fa56ea'

  depends_on 'cmake' => :build

  # fix install location of cmake config files
  def patches; DATA; end

  def install
    ENV.m64

    cmake_args = [
      "-DSimTK_INSTALL_PREFIX='#{prefix}'",
    ]
    cmake_args.concat(std_cmake_args)
    cmake_args << ".."

    mkdir "build" do
      system "cmake", *cmake_args
      system "make", "install"
    end
  end

end

__END__
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8968e2f..0a9b1b1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -557,4 +557,5 @@ FILE(GLOB TOPLEVEL_DOCS doc/*.pdf doc/*.txt)
 INSTALL(FILES ${TOPLEVEL_DOCS} DESTINATION doc)

 FILE(GLOB INSTALLED_CMAKE_STUFF cmake/*.cmake cmake/*.txt)
-INSTALL(FILES ${INSTALLED_CMAKE_STUFF} DESTINATION share/cmake)
+INSTALL(FILES ${INSTALLED_CMAKE_STUFF} DESTINATION share/Simbody/cmake)
+INSTALL(FILES cmake/FindSimbody.cmake DESTINATION share/Simbody/cmake/ RENAME SimbodyConfig.cmake)
<commit_msg>simbody: add head that points to master branch<commit_after>require 'formula'

class Simbody < Formula
  homepage 'https://simtk.org/home/simbody'
  url 'https://github.com/simbody/simbody/archive/Simbody-3.3.zip'
  sha1 'a67ee802fb410a1c346718a48ac0ede2f7fa56ea'
  head 'https://github.com/simbody/simbody.git', :branch => 'master'

  depends_on 'cmake' => :build

  # fix install location of cmake config files
  def patches; DATA; end

  def install
    ENV.m64

    cmake_args = [
      "-DSimTK_INSTALL_PREFIX='#{prefix}'",
    ]
    cmake_args.concat(std_cmake_args)
    cmake_args << ".."

    mkdir "build" do
      system "cmake", *cmake_args
      system "make", "install"
    end
  end

end

__END__
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8968e2f..0a9b1b1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -557,4 +557,5 @@ FILE(GLOB TOPLEVEL_DOCS doc/*.pdf doc/*.txt)
 INSTALL(FILES ${TOPLEVEL_DOCS} DESTINATION doc)

 FILE(GLOB INSTALLED_CMAKE_STUFF cmake/*.cmake cmake/*.txt)
-INSTALL(FILES ${INSTALLED_CMAKE_STUFF} DESTINATION share/cmake)
+INSTALL(FILES ${INSTALLED_CMAKE_STUFF} DESTINATION share/Simbody/cmake)
+INSTALL(FILES cmake/FindSimbody.cmake DESTINATION share/Simbody/cmake/ RENAME SimbodyConfig.cmake)

{'fraction_non_alphanumeric': 0.12605042016806722, 'fraction_numerical': 0.04201680672268908, 'mean_word_length': 4.142548596112311, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5466461', 'n_tokens_mistral': 1032, 'n_tokens_neox': 923, 'n_words': 175}