homebrew-core/Formula/gptsync.rb
Crazor 0e312bb195 gptsync 0.14
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-05 16:38:31 -07:00

36 lines
859 B
Ruby

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