Skip to content

Commit

Permalink
xgboost 0.90 (new formula)
Browse files Browse the repository at this point in the history
Closes #43246.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
ankane authored and fxcoudert committed Oct 7, 2019
1 parent 5638bb5 commit 4d904cd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/xgboost.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class Xgboost < Formula
desc "Scalable, Portable and Distributed Gradient Boosting Library"
homepage "https://xgboost.ai/"
url "https://github.com/dmlc/xgboost.git",
:tag => "v0.90",
:revision => "515f5f5c4779ff5361dcd796e22d55937e1048ea"

depends_on "cmake" => :build

def install
mkdir "build" do
system "cmake", *std_cmake_args, "-DUSE_OPENMP=0", ".."
system "make"
system "make", "install"
end
pkgshare.install "demo"
end

test do
cp_r (pkgshare/"demo"), testpath
cd "demo/data" do
cp "../binary_classification/mushroom.conf", "."
system "#{bin}/xgboost", "mushroom.conf"
end
end
end

0 comments on commit 4d904cd

Please sign in to comment.