Skip to content

Instantly share code, notes, and snippets.

@waj
Created November 9, 2013 01:38
Show Gist options
  • Save waj/7380390 to your computer and use it in GitHub Desktop.
Save waj/7380390 to your computer and use it in GitHub Desktop.
Homebrew formula for PCL
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