Permalink
Browse files

add software config to install Rebar 2.0

  • Loading branch information...
1 parent 5f17277 commit efa0838fa97528725dab3566ae687f6e344f7ae3 @schisamo schisamo committed Aug 21, 2012
Showing with 36 additions and 0 deletions.
  1. +36 −0 config/software/rebar.rb
View
@@ -0,0 +1,36 @@
+#
+# Copyright:: Copyright (c) 2012 Opscode, Inc.
+# License:: Apache License, Version 2.0
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name "rebar"
+version "2.0.0"
+
+dependencies ["erlang"]
+
+source :git => "https://github.com/basho/rebar.git"
+
+relative_path "rebar"
+
+env = {
+ "PATH" => "#{install_dir}/embedded/bin:#{ENV["PATH"]}",
+ "LD_FLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
+ "LD_RUN_PATH" => "#{install_dir}/embedded/lib"
+}
+
+build do
+ command "./bootstrap", :env => env
+ command "cp ./rebar #{install_dir}/embedded/bin/"
+end

0 comments on commit efa0838

Please sign in to comment.