aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCrazor2011-05-23 14:47:54 +0200
committerAdam Vandenberg2011-06-05 16:38:31 -0700
commit8cca962facca546945dcbcdd3ed2b8b17f9aa654 (patch)
treecfa881660a700dec603ec444ac68d05e5ea7fe69 /Library/Formula
parentfb3e7c82998d442c6db399609774fea27971f1ae (diff)
downloadhomebrew-8cca962facca546945dcbcdd3ed2b8b17f9aa654.tar.bz2
gptsync 0.14
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gptsync.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/gptsync.rb b/Library/Formula/gptsync.rb
new file mode 100644
index 000000000..e4e63ab8e
--- /dev/null
+++ b/Library/Formula/gptsync.rb
@@ -0,0 +1,36 @@
+require 'formula'
+
+class Gptsync < Formula
+ url 'http://downloads.sourceforge.net/refit/refit-src-0.14.tar.gz'
+ homepage 'http://refit.sourceforge.net/'
+ md5 '16f02fa5b5decdee17eebd5cd863b3f0'
+
+ # Fix to use selected compiler instead of gcc 4.0
+ def patches
+ DATA
+ end
+
+ def install
+ Dir.chdir "gptsync" do
+ system "make -f Makefile.unix"
+ sbin.install ['gptsync', 'showpart']
+ man8.install 'gptsync.8'
+ end
+ end
+end
+
+
+__END__
+diff --git a/gptsync/Makefile.unix b/gptsync/Makefile.unix
+index a1d7282..b0c3121 100644
+--- a/gptsync/Makefile.unix
++++ b/gptsync/Makefile.unix
+@@ -20,7 +20,6 @@ LIBS =
+
+ system = $(shell uname)
+ ifeq ($(system),Darwin)
+- CC = gcc-4.0
+ # TODO: re-enable this once the code is no longer little-endian specific
+ #CFLAGS += -arch i386 -arch ppc
+ #LDFLAGS += -arch i386 -arch ppc
+