aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ldid.rb
blob: 17bdc84a140446f7639e87f8d4eb77eb6ea2e2a8 (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
require 'formula'

class Ldid < Formula
  homepage 'http://www.saurik.com/id/8'
  url 'http://svn.telesphoreo.org/trunk/data/ldid/ldid-1.0.610.tgz', :using => :curl
  md5 '634c2f8b8a084046883e3793f6580e07'

  fails_with :clang do
    build 318
    cause "Undefined symbols when linking"
  end

  # Adds support for armv7 binaries
  def patches; DATA; end

  def install
    system "#{ENV.cxx} -I . -o util/ldid{,.cpp} -x c util/{lookup2,sha1}.c"
    bin.install "util/ldid"
  end
end

__END__
diff -ur ldid-1.0.610/util/ldid.cpp ldid-1.0.610-p/util/ldid.cpp
--- ldid-1.0.610/util/ldid.cpp	2009-05-20 14:33:45.000000000 +0800
+++ ldid-1.0.610-gm/util/ldid.cpp	2011-10-14 16:58:56.000000000 +0800
@@ -557,6 +557,7 @@
                     case 12: switch (framework->cpusubtype) {
                         case 0: arch = "arm"; break;
                         case 6: arch = "armv6"; break;
+                        case 9: arch = "armv7"; break;
                         default: arch = NULL; break;
                     } break;