Skip to content

Commit

Permalink
nixio 1.1.0 (new formula)
Browse files Browse the repository at this point in the history
Closes #3264.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
  • Loading branch information
gicmo authored and tdsmith committed Jan 29, 2016
1 parent ec9578c commit aae0b5c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions nixio.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
class Nixio < Formula
desc "C++ library for the NIX scientific data format and model"
homepage "http://www.g-node.org/nix"
url "https://github.com/G-Node/nix/archive/1.1.0.tar.gz"
sha256 "d607d96117621e5cc563002c4c161913d95db36eeb7c4e6f51afca5f6b788fcc"

head "https://github.com/G-Node/nix.git"

depends_on "cmake" => :build
depends_on "hdf5"
depends_on "cppunit"

if OS.mac? && MacOS.version < :mavericks
depends_on "boost" => "c++11"
else
depends_on "boost"
end

needs :cxx11

resource "demofile" do
url "https://raw.githubusercontent.com/G-Node/nix-demo/master/data/spike_features.h5"
sha256 "b486202df0527545cd53968545d5fb3700567dbf10fbf7d9ca9d9a98fe2998ac"
end

def install
ENV.cxx11

system "cmake", ".", *std_cmake_args
system "make"
system "make", "test"
system "make", "install"
end

test do
resource("demofile").stage do
system bin/"nix-tool", "dump", "spike_features.h5"
end
end
end

0 comments on commit aae0b5c

Please sign in to comment.