2011-06-04 18:51:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ldid < Formula
|
|
|
|
homepage 'http://www.saurik.com/id/8'
|
2012-05-16 04:11:18 +00:00
|
|
|
url 'http://svn.telesphoreo.org/trunk/data/ldid/ldid-1.0.610.tgz', :using => :curl
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '0254b29f913f7fd10ec9a6d8891d36805980f649'
|
2011-06-04 18:51:40 +00:00
|
|
|
|
2012-04-03 03:50:24 +00:00
|
|
|
fails_with :clang do
|
2013-01-14 23:45:25 +00:00
|
|
|
build 421
|
|
|
|
cause "util/ldid.cpp:574:36: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]"
|
2012-04-03 03:50:24 +00:00
|
|
|
end
|
|
|
|
|
2012-03-17 19:17:49 +00:00
|
|
|
# Adds support for armv7 binaries
|
|
|
|
def patches; DATA; end
|
2011-10-14 09:16:57 +00:00
|
|
|
|
2011-06-04 18:51:40 +00:00
|
|
|
def install
|
2011-12-09 23:49:23 +00:00
|
|
|
system "#{ENV.cxx} -I . -o util/ldid{,.cpp} -x c util/{lookup2,sha1}.c"
|
2012-03-17 19:17:49 +00:00
|
|
|
bin.install "util/ldid"
|
2011-06-04 18:51:40 +00:00
|
|
|
end
|
|
|
|
end
|
2011-10-14 09:16:57 +00:00
|
|
|
|
|
|
|
__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;
|
|
|
|
|