Skip to content

Instantly share code, notes, and snippets.

@mitmul
Last active December 15, 2015 18:30
Show Gist options
  • Save mitmul/5304582 to your computer and use it in GitHub Desktop.
Save mitmul/5304582 to your computer and use it in GitHub Desktop.
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class SharkSvn < Formula
homepage 'http://image.diku.dk/shark/sphinx_pages/build/html/index.html'
url 'svn://svn.code.sf.net/p/shark-project/code/trunk/Shark'
sha1 ''
version "3.0"
depends_on 'cmake' => :build
depends_on :x11 # if your formula requires any X11/XQuartz components
def install
# ENV.j1 # if your formula's build system can't parallelize
std_cmake_args = ["-DHDF5_hdf5_cpp_LIBRARY_DEBUG=/usr/local/lib/libhdf5.dylib",
"-DHDF5_hdf5_cpp_LIBRARY_RELEASE=/usr/local/lib/libhdf5.dylib"]
system "cmake", ".", *std_cmake_args
system "make install" # if this fails, try separate make/make install steps
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test shark-svn`.
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment