gdcm: rename python and python3 dependencies

master
ilovezfs 2018-03-01 23:06:48 -08:00
parent 201f50880f
commit e80927f475
1 changed files with 8 additions and 4 deletions

View File

@ -11,10 +11,14 @@ class Gdcm < Formula
sha256 "51a57b3a49a2d65ceda86c6401303c514b940d9adeb54659d0d4aac34aa89fde" => :el_capitan sha256 "51a57b3a49a2d65ceda86c6401303c514b940d9adeb54659d0d4aac34aa89fde" => :el_capitan
end end
option "without-python", "Build without python2 support" option "without-python@2", "Build without python2 support"
depends_on "python3" => :optional deprecated_option "with-python3" => "with-python"
depends_on "swig" => :build if build.with?("python") || build.with?("python3") deprecated_option "without-python" => "without-python@2"
depends_on "python@2" => :recommended if MacOS.version <= :snow_leopard
depends_on "python" => :optional
depends_on "swig" => :build if build.with?("python") || build.with?("python@2")
depends_on "cmake" => :build depends_on "cmake" => :build
depends_on "pkg-config" => :build depends_on "pkg-config" => :build
@ -38,7 +42,7 @@ class Gdcm < Formula
] ]
mkdir "build" do mkdir "build" do
if build.without?("python") && build.without?("python3") if build.without?("python") && build.without?("python@2")
system "cmake", "..", *common_args system "cmake", "..", *common_args
system "make", "install" system "make", "install"
else else