Skip to content

Commit

Permalink
openloops: 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchall authored Feb 10, 2024
1 parent 693d91b commit 8c4dd4f
Showing 1 changed file with 11 additions and 33 deletions.
44 changes: 11 additions & 33 deletions Formula/openloops.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
class Openloops < Formula

Check failure on line 1 in Formula/openloops.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

openloops: livecheck error

Unable to get versions

Check failure on line 1 in Formula/openloops.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

openloops: livecheck error

Unable to get versions
desc "Fully automated implementation of the Open Loops algorithm"
homepage "https://openloops.hepforge.org"
url "https://openloops.hepforge.org/downloads?f=OpenLoops-2.1.2.tar.gz"
sha256 "f52575cae3d70b6b51a5d423e9cd0e076ed5961afcc015eec00987e64529a6ae"
revision 1
url "https://gitlab.com/openloops/OpenLoops/-/archive/OpenLoops-2.1.3/OpenLoops-OpenLoops-2.1.3.tar.gz"
sha256 "b26ee805d63b781244a5bab4db09f4a7a5a5c9ed371ead0d5260f00a0a94b233"
license "GPL-3.0-or-later"

livecheck do
url "https://openloops.hepforge.org/downloads"
regex(/href=.*?OpenLoops[._-]v?(\d+(?:\.\d+)+)\.t/i)
end

bottle do
root_url "https://ghcr.io/v2/davidchall/hep"
sha256 cellar: :any, monterey: "561315c9a2a5254b0cf8fdfbdeeb33f909b3c264ac8b4e70c34f474a8d9374b0"
sha256 cellar: :any, big_sur: "fb57cd4648cb5accc694bf43d3e45d6fa1ab0067211f1ce3086bf2c4ad03a522"
sha256 cellar: :any, catalina: "8c040c9820241d7739eb4e7838dcdfe0e97d64d3c5753abe56c46bb13714dab8"
url :stable
regex(/^-?(\d+(?:\.\d+)+)$/i)
end

depends_on "scons" => :build
Expand All @@ -26,15 +19,13 @@ def install
system "scons"
cp_r ".", prefix
bin.install_symlink prefix/"openloops"
end

def caveats
<<~EOS
OpenLoops downloads and installs process libraries in its
own installation path: #{prefix}
These process libraries are lost if OpenLoops is uninstalled.

cp prefix/"openloops.cfg.tmpl", prefix/"openloops.cfg"
(prefix/"openloops.cfg").write <<~EOS, mode: "a+"
generic_lib_dir = #{prefix}/lib/
process_src_dir = #{prefix}/process_src/
process_obj_dir = #{prefix}/process_obj/
process_lib_dir = #{prefix}/proclib/
EOS
end

Expand All @@ -58,16 +49,3 @@ def caveats
fi

#####################

diff --git a/SConstruct b/SConstruct
index 1111ea7..d0e9a0b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -387,6 +387,7 @@ env = Environment(tools = ['default', 'textfile'] + [config['fortran_tool']],
LINKFLAGS = config['link_flags'],
LIBPATH = [config['generic_lib_dir']],
DOLLAR = '\$$',
+ RPATHPREFIX = "-rpath,",
RPATH = [HashableLiteral('\$$ORIGIN')],
F90 = config['fortran_compiler'],
FORTRAN = config['fortran_compiler'],

0 comments on commit 8c4dd4f

Please sign in to comment.