From d8fd7e5f00e6bac1f6cbc3be197f9ba789ba2dd0 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Thu, 1 Mar 2018 23:19:17 -0800 Subject: [PATCH] silk: rename python@2 optional dependency --- Formula/silk.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Formula/silk.rb b/Formula/silk.rb index 09f4e9ad12..5b8aa204f5 100644 --- a/Formula/silk.rb +++ b/Formula/silk.rb @@ -10,13 +10,15 @@ class Silk < Formula sha256 "97fddd4c70d54b6b93b06a4135f9af08d389e042ab38aaceebeb67fb39bc4745" => :el_capitan end - option "with-python", "Build with the PySiLK python interface" + option "with-python@2", "Build with the PySiLK python interface" + + deprecated_option "with-python" => "with-python@2" depends_on "pkg-config" => :build depends_on "glib" depends_on "libfixbuf" depends_on "yaf" - depends_on "python" => :optional + depends_on "python@2" => :optional def install args = %W[ @@ -27,7 +29,7 @@ class Silk < Formula --enable-data-rootdir=#{var}/silk ] - if build.with? "python" + if build.with? "python@2" args << "--with-python" << "--with-python-prefix=#{prefix}" end system "./configure", *args