diff options
Diffstat (limited to 'Library/Formula/gptsync.rb')
| -rw-r--r-- | Library/Formula/gptsync.rb | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/Library/Formula/gptsync.rb b/Library/Formula/gptsync.rb index e4e63ab8e..c53c1b424 100644 --- a/Library/Formula/gptsync.rb +++ b/Library/Formula/gptsync.rb @@ -1,36 +1,15 @@ require 'formula' class Gptsync < Formula - url 'http://downloads.sourceforge.net/refit/refit-src-0.14.tar.gz' homepage 'http://refit.sourceforge.net/' + url 'http://downloads.sourceforge.net/refit/refit-src-0.14.tar.gz' 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'] + system "make", "-f", "Makefile.unix", "CC=#{ENV.cc}" + 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 - |
