Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (31 sloc) 942 Bytes
require 'formula'
class Luabind < Formula
homepage 'http://www.rasterbar.com/products/luabind.html'
url 'https://github.com/luabind/luabind/zipball/v0.9.1'
sha1 '37a6b8b74444545dd0c0fcdf8a6746128b40d7a1'
depends_on 'lua'
depends_on 'boost'
depends_on 'boost-build' => :build
def patches
[
# patch Jamroot to perform lookup for shared objects with .dylib suffix
"https://raw.github.com/gist/3728987/052251fcdc23602770f6c543be9b3e12f0cac50a/Jamroot.diff",
# apply upstream commit to enable building with clang
"https://github.com/luabind/luabind/commit/3044a9053ac50977684a75c4af42b2bddb853fad.diff"
]
end
def install
args = [
"release",
"install"
]
if ENV.compiler == :clang
args << "--toolset=clang"
elsif ENV.compiler == :llvm
args << "--toolset=llvm"
elsif ENV.compiler == :gcc
args << "--toolset=darwin"
end
system "bjam", *args
end
end
Something went wrong with that request. Please try again.