Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmm3d 1.0.2 (new formula) #1

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Formula/fmm3d.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class Fmm3d < Formula
desc "Fast multipole methods in three dimensions"
homepage "https://fmm3d.readthedocs.io"
url "https://github.com/flatironinstitute/FMM3D/archive/refs/tags/v1.0.2.tar.gz"
sha256 "e29a1ebe485d2431d4e330334b2853bc91b957afde6e24c2991099b28bd2b97c"
license "Apache-2.0"
head "https://github.com/flatironinstitute/FMM3D.git", branch: "master"

depends_on "gcc"

def install
ln_s "make.inc.macosx.gnu", "make.inc" if OS.mac?

# Don't use -march=native when building a bottle
inreplace "makefile", "-march=native", "" if build.bottle?

# Build libraries
system "make", "lib"

# Install libraries
lib.install "lib/libfmm3d.so"
lib.install "lib-static/libfmm3d.a"
end

test do
system "true"
end
end
Loading