diff --git a/Formula/ledger.rb b/Formula/ledger.rb index 6d19600f8f..fdf4a5f218 100644 --- a/Formula/ledger.rb +++ b/Formula/ledger.rb @@ -13,11 +13,9 @@ class Ledger < Formula sha256 "9e28e41459615b80d02f5fa9f2459b7a3f75bd0d4fc0cbb1031b1611fe84c52c" => :el_capitan end - option "with-debug", "Build with debugging symbols enabled" option "with-docs", "Build HTML documentation" option "without-python@2", "Build without python support" - deprecated_option "debug" => "with-debug" deprecated_option "without-python" => "without-python@2" depends_on "cmake" => :build @@ -36,8 +34,6 @@ class Ledger < Formula inreplace "CMakeLists.txt", "set(BOOST_PYTHON python)", "set(BOOST_PYTHON python27)" - flavor = build.with?("debug") ? "debug" : "opt" - args = %W[ --jobs=#{ENV.make_jobs} --output=build @@ -47,9 +43,9 @@ class Ledger < Formula args << "--python" if build.with? "python@2" args += %w[-- -DBUILD_DOCS=1] args << "-DBUILD_WEB_DOCS=1" if build.with? "docs" - system "./acprep", flavor, "make", *args - system "./acprep", flavor, "make", "doc", *args - system "./acprep", flavor, "make", "install", *args + system "./acprep", "opt", "make", *args + system "./acprep", "opt", "make", "doc", *args + system "./acprep", "opt", "make", "install", *args (pkgshare/"examples").install Dir["test/input/*.dat"] pkgshare.install "contrib"