aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-03-16 21:35:21 -0500
committerJack Nagel2014-03-16 21:35:21 -0500
commitd9a5b19526c55cfa335f9ae1a98405d6d405db57 (patch)
treecb2d2058cdf059071b639e9999e04d3f771511d8
parent349bcb5da3b19774901203ea019e692c92197f3f (diff)
downloadhomebrew-d9a5b19526c55cfa335f9ae1a98405d6d405db57.tar.bz2
luabind: use checksummed patches
-rw-r--r--Library/Formula/luabind.rb30
1 files changed, 17 insertions, 13 deletions
diff --git a/Library/Formula/luabind.rb b/Library/Formula/luabind.rb
index 8a809c3eb..e03e6cbf4 100644
--- a/Library/Formula/luabind.rb
+++ b/Library/Formula/luabind.rb
@@ -9,21 +9,25 @@ class Luabind < Formula
depends_on 'boost'
depends_on 'boost-build' => :build
- def patches
- p = [
- # patch Jamroot to perform lookup for shared objects with .dylib suffix
- "https://gist.github.com/DennisOSRM/3728987/raw/052251fcdc23602770f6c543be9b3e12f0cac50a/Jamroot.diff",
- # apply upstream commit to enable building with clang
- "https://github.com/luabind/luabind/commit/3044a9053ac50977684a75c4af42b2bddb853fad.diff",
- ]
- if MacOS.version >= :mavericks
- # include C header that is not pulled in automatically on OS X 10.9 anymore
- # submitted https://github.com/luabind/luabind/pull/20
- p << "https://gist.github.com/DennisOSRM/a246514bf7d01631dda8/raw/0e83503dbf862ebfb6ac063338a6d7bca793f94d/object_rep.diff"
- end
- p
+ # patch Jamroot to perform lookup for shared objects with .dylib suffix
+ patch do
+ url "https://gist.github.com/DennisOSRM/3728987/raw/052251fcdc23602770f6c543be9b3e12f0cac50a/Jamroot.diff"
+ sha1 "5e7660e00e4189e42b8d79fbd2d6da21feb2259b"
end
+ # apply upstream commit to enable building with clang
+ patch do
+ url "https://github.com/luabind/luabind/commit/3044a9053ac50977684a75c4af42b2bddb853fad.diff"
+ sha1 "49ecf2060a691abcdf4b3e07f1de450a2858f14f"
+ end
+
+ # include C header that is not pulled in automatically on OS X 10.9 anymore
+ # submitted https://github.com/luabind/luabind/pull/20
+ patch do
+ url "https://gist.github.com/DennisOSRM/a246514bf7d01631dda8/raw/0e83503dbf862ebfb6ac063338a6d7bca793f94d/object_rep.diff"
+ sha1 "482693598edcde3d4c04fef3dfa35ea23f8e6bb4"
+ end if MacOS.version >= :mavericks
+
def install
args = [
"release",