Created
April 1, 2014 13:36
-
-
Save aktau/9914103 to your computer and use it in GitHub Desktop.
Maybe someday, when it supports 64-bit darwin... The portable C compiler (pcc)
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/Homebrew/homebrew/wiki/Formula-Cookbook | |
# /usr/local/Library/Contributions/example-formula.rb | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Pcc < Formula | |
homepage "http://pcc.ludd.ltu.se" | |
url "http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/pcc-1.0.0.tgz" | |
sha1 "a994d6bf75ae81add70d35478b59fca7c63bd5df" | |
head "cvs://:pserver:anonymous@pcc.ludd.ltu.se:/cvsroot:pcc", :using => :cvs | |
# resource "libs" do | |
# url "http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/pcc-libs-1.0.0.tgz" | |
# sha1 "83dfe7029c491d4b42205bc8882c1ac784e3e4eb" | |
# end | |
def install | |
# ENV.append 'CFLAGS', '-m32' | |
# ENV.append 'LDFLAGS', '-m32' | |
# "--target=amd64-apple-darwin13.1.0", | |
# Remove unrecognized options if warned by configure | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--disable-silent-rules", | |
"--host=amd64-apple-darwin13.1.0", | |
"--build=amd64-apple-darwin13.1.0", | |
"--prefix=#{prefix}" | |
system "make; echo 'REDOING MAKE'; make" | |
system "make", "install" | |
# resource("libs").stage { bin.install "my/extra/tool" } | |
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 pcc`. | |
# | |
# 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