Commit e73317fd authored by Dave Moxey's avatar Dave Moxey
Browse files

Update Portfile and formula

parent 5b197ee8
class Nektar < Formula
# Nektar++ will, by default, download and build its ThirdParty
# dependencies. This download strategy has been added so that Homebrew can
# download resources and check hashes independently.
class NektarThirdPartyDownloadStrategy < CurlDownloadStrategy
def stage
cp cached_location, basename_without_params
end
# Nektar++ will, by default, download and build its ThirdParty
# dependencies. This download strategy has been added so that Homebrew can
# download resources and check hashes independently.
class NektarThirdPartyDownloadStrategy < CurlDownloadStrategy
def stage
cp cached_location, basename_without_params
end
end
class Nektar < Formula
desc "Nektar++ spectral/hp element framework"
homepage "https://www.nektar.info/"
url "http://www.nektar.info/downloads/file/nektar-4.2.0.tar.gz"
sha256 "5ae78f8fae4f0f1bfab9fe94fdb5c1b356f9a8acf8e2bca1680e3c1f04529873"
url "http://www.nektar.info/downloads/file/nektar-4.3.2.tar.gz"
sha256 "afa20b74ed19165c9356f5ec5e33dac7de9bf48e7f2076db6488c7c03d331dd0"
head "https://gitlab.nektar.info/nektar/nektar.git"
option "with-demos", "Compile Nektar++ demo executables"
depends_on "cmake" => :build
depends_on "cmake" => :run
depends_on "boost"
depends_on "tinyxml"
depends_on "homebrew/dupes/zlib"
......@@ -78,7 +78,7 @@ class Nektar < Formula
end
mkdir "build" do
system "cmake", *args, ".."
system "cmake", "..", *args
system "make"
components = %w[ThirdParty lib solvers util dev]
components.each { |c| system "cmake", "-DCOMPONENT=#{c}", "-P", "cmake_install.cmake" }
......@@ -87,10 +87,12 @@ class Nektar < Formula
test do
(testpath/"helm.cpp").write <<-EOS
#include <iostream>
#include <MultiRegions/ContField2D.h>
#include <SpatialDomains/MeshGraph2D.h>
using namespace Nektar;
using namespace std;
int main(int argc, char *argv[])
{
......
......@@ -7,7 +7,7 @@ PortGroup mpi 1.0
name nektarpp
conflicts nektarpp-devel
version 4.2.0
version 4.3.2
categories science
platforms darwin
license MIT
......@@ -24,10 +24,10 @@ long_description \
homepage http://www.nektar.info/
master_sites http://www.nektar.info/downloads/file/
distname nektar++-${version}
extract.suffix .tar.bz2
extract.suffix .tar.gz
checksums rmd160 5e2d9b947b2dbc47ec10d7e74c56fb1ea4333a44 \
sha256 89ebf3c7e1c5b1f6cf3afb2476ed4726a1d97f3b4e232301bb1c848884484367
checksums rmd160 fbacd4e2ca2d514f936fe200fcc5c1c31345423d \
sha256 afa20b74ed19165c9356f5ec5e33dac7de9bf48e7f2076db6488c7c03d331dd0
mpi.setup
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment