libpst: rename python@2 optional dependency
This commit is contained in:
parent
fb9e4fe8d1
commit
c7a0872751
1 changed files with 4 additions and 3 deletions
|
@ -15,14 +15,15 @@ class Libpst < Formula
|
||||||
option "with-pst2dii", "Build pst2dii using gd"
|
option "with-pst2dii", "Build pst2dii using gd"
|
||||||
|
|
||||||
deprecated_option "pst2dii" => "with-pst2dii"
|
deprecated_option "pst2dii" => "with-pst2dii"
|
||||||
|
deprecated_option "with-python" => "with-python@2"
|
||||||
|
|
||||||
depends_on "python" => :optional
|
depends_on "python@2" => :optional
|
||||||
depends_on "pkg-config" => :build
|
depends_on "pkg-config" => :build
|
||||||
depends_on "gd" if build.with? "pst2dii"
|
depends_on "gd" if build.with? "pst2dii"
|
||||||
depends_on "boost"
|
depends_on "boost"
|
||||||
depends_on "gettext"
|
depends_on "gettext"
|
||||||
depends_on "libgsf"
|
depends_on "libgsf"
|
||||||
depends_on "boost-python" if build.with? "python"
|
depends_on "boost-python" if build.with? "python@2"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
args = %W[
|
args = %W[
|
||||||
|
@ -32,7 +33,7 @@ class Libpst < Formula
|
||||||
|
|
||||||
args << "--disable-dii" if build.with? "pst2dii"
|
args << "--disable-dii" if build.with? "pst2dii"
|
||||||
|
|
||||||
if build.with? "python"
|
if build.with? "python@2"
|
||||||
args << "--enable-python" << "--with-boost-python=mt"
|
args << "--enable-python" << "--with-boost-python=mt"
|
||||||
else
|
else
|
||||||
args << "--disable-python"
|
args << "--disable-python"
|
||||||
|
|
Loading…
Reference in a new issue