ledger: remove debug option
This commit is contained in:
parent
459c59ec69
commit
3c8ffe4a67
1 changed files with 3 additions and 7 deletions
|
@ -13,11 +13,9 @@ class Ledger < Formula
|
||||||
sha256 "9e28e41459615b80d02f5fa9f2459b7a3f75bd0d4fc0cbb1031b1611fe84c52c" => :el_capitan
|
sha256 "9e28e41459615b80d02f5fa9f2459b7a3f75bd0d4fc0cbb1031b1611fe84c52c" => :el_capitan
|
||||||
end
|
end
|
||||||
|
|
||||||
option "with-debug", "Build with debugging symbols enabled"
|
|
||||||
option "with-docs", "Build HTML documentation"
|
option "with-docs", "Build HTML documentation"
|
||||||
option "without-python@2", "Build without python support"
|
option "without-python@2", "Build without python support"
|
||||||
|
|
||||||
deprecated_option "debug" => "with-debug"
|
|
||||||
deprecated_option "without-python" => "without-python@2"
|
deprecated_option "without-python" => "without-python@2"
|
||||||
|
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
|
@ -36,8 +34,6 @@ class Ledger < Formula
|
||||||
inreplace "CMakeLists.txt", "set(BOOST_PYTHON python)",
|
inreplace "CMakeLists.txt", "set(BOOST_PYTHON python)",
|
||||||
"set(BOOST_PYTHON python27)"
|
"set(BOOST_PYTHON python27)"
|
||||||
|
|
||||||
flavor = build.with?("debug") ? "debug" : "opt"
|
|
||||||
|
|
||||||
args = %W[
|
args = %W[
|
||||||
--jobs=#{ENV.make_jobs}
|
--jobs=#{ENV.make_jobs}
|
||||||
--output=build
|
--output=build
|
||||||
|
@ -47,9 +43,9 @@ class Ledger < Formula
|
||||||
args << "--python" if build.with? "python@2"
|
args << "--python" if build.with? "python@2"
|
||||||
args += %w[-- -DBUILD_DOCS=1]
|
args += %w[-- -DBUILD_DOCS=1]
|
||||||
args << "-DBUILD_WEB_DOCS=1" if build.with? "docs"
|
args << "-DBUILD_WEB_DOCS=1" if build.with? "docs"
|
||||||
system "./acprep", flavor, "make", *args
|
system "./acprep", "opt", "make", *args
|
||||||
system "./acprep", flavor, "make", "doc", *args
|
system "./acprep", "opt", "make", "doc", *args
|
||||||
system "./acprep", flavor, "make", "install", *args
|
system "./acprep", "opt", "make", "install", *args
|
||||||
|
|
||||||
(pkgshare/"examples").install Dir["test/input/*.dat"]
|
(pkgshare/"examples").install Dir["test/input/*.dat"]
|
||||||
pkgshare.install "contrib"
|
pkgshare.install "contrib"
|
||||||
|
|
Loading…
Reference in a new issue