Skip to content

Instantly share code, notes, and snippets.

@sirpercival
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirpercival/fca16ff271cee29fc33f to your computer and use it in GitHub Desktop.
Save sirpercival/fca16ff271cee29fc33f to your computer and use it in GitHub Desktop.
Robospect formula
# Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
# /usr/local/Library/Contributions/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Robospect < Formula
homepage "http://www.ifa.hawaii.edu/users/watersc1/robospect/"
url "http://www.ifa.hawaii.edu/users/watersc1/robospect/robospect-2.13-compat.tar.gz"
version "2.13"
sha1 "9c70f7d490205270335bcd4e222f922b72c2629b"
depends_on "automake" => :build
depends_on "autoconf" => :build
# depends_on "cvs" => :build
depends_on "gsl"
depends_on "cfitsio" => :recommended
depends_on "plplot" => :recommended
def install
ENV.deparallelize
# Remove unrecognized options if warned by configure
inreplace "Makefile.in", /^archive : VERSION.*$/, ""
inreplace "configure", "-${am__api_version}", ""
# system "automake", "--add-missing"
system "autoreconf", "-if"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
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 robospect`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment