Last active
December 15, 2015 18:30
-
-
Save mitmul/5304582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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