This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Adding luabind formula

  • Loading branch information...
Dennis Luxen
Dennis Luxen committed Sep 15, 2012
1 parent 92c2fba commit 299e97a53bd9d02717167c07af98cb01b32b711a
Showing with 2 additions and 7 deletions.
  1. +2 −7 Library/Formula/luabind.rb
@@ -2,15 +2,12 @@
class Luabind < Formula
homepage 'http://www.rasterbar.com/products/luabind.html'
-
url 'https://github.com/luabind/luabind/zipball/v0.9.1'
- version '0.9.1'
sha1 '37a6b8b74444545dd0c0fcdf8a6746128b40d7a1'
depends_on 'lua'
depends_on 'boost'
-
- option 'build-with-clang', 'Build the library using the clang toolset'
+ depends_on 'boost-build' => :build
def patches
[
@@ -20,21 +17,19 @@ def patches
"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

0 comments on commit 299e97a

Please sign in to comment.