Skip to content

Instantly share code, notes, and snippets.

@bryan-lunt
Last active August 29, 2015 14:05
Show Gist options
  • Save bryan-lunt/6cab27307de3b1ee81d5 to your computer and use it in GitHub Desktop.
Save bryan-lunt/6cab27307de3b1ee81d5 to your computer and use it in GitHub Desktop.
Homebrew formula for Xephem : http://www.clearskyinstitute.com/xephem/ SEE TERMS THERE.
require "formula"
# Documentation: https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
# /usr/local/Library/Contributions/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Xephem < Formula
homepage ""
url "http://97.74.56.125/free/xephem-3.7.6.tar.gz"
sha1 "2b07e05b7ea1fe72f5f52983a15b34c7f7b2d75b"
# depends_on "cmake" => :build
depends_on :x11 # if your formula requires any X11/XQuartz components
def install
# ENV.deparallelize # if your formula fails when building in parallel
# system "cmake", ".", *std_cmake_args
system "make", "-C", "GUI/xephem", "MOTIF=../../libXm/osx" # if this fails, try separate make/make install steps
system "mkdir", "-p", "#{prefix}/bin"
system "cp", "GUI/xephem/xephem", "#{prefix}/bin"
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 xephem`.
#
# 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