Created
November 9, 2013 01:38
-
-
Save waj/7380390 to your computer and use it in GitHub Desktop.
Homebrew formula for PCL
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 | |
# /usr/local/Library/Contributions/example-formula.rb | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Pcl < Formula | |
homepage '' | |
url 'http://xmailserver.org/pcl-1.12.tar.gz' | |
sha1 'a206c8fb5a96e65005f414ac46aeccd4b3603c8d' | |
def install | |
# ENV.j1 # if your formula's build system can't parallelize | |
# Remove unrecognized options if warned by configure | |
system "./configure", "--disable-dependency-tracking", | |
"--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 pcl`. | |
# | |
# The installed folder is not in the path, so use the entire path to any | |
# executables being tested: `system "#{bin}/program", "--version"`. | |
system "true" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment