aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gptsync.rb
blob: e4e63ab8e79e9ce727b42bcb32efbb21c97439d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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