Created
May 9, 2016 16:49
-
-
Save 13k/f764b0f5fd6d5a9447ac1dfaf44b1e04 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Documentation: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Formula-Cookbook.md | |
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class ExampleApp < Formula | |
desc "" | |
homepage "" | |
url "http://example.com/example_app-1.0.tar.gz" | |
version "1.0" | |
sha256 "" | |
# 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 | |
# Remove unrecognized options if warned by configure | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--disable-silent-rules", | |
"--prefix=#{prefix}" | |
# system "cmake", ".", *std_cmake_args | |
system "make", "install" # if this fails, try separate make/make install steps | |
end | |
def plist; <<-EOS.undent | |
<!-- XML content --> | |
EOS | |
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 example_app`. 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