Skip to content

Commit

Permalink
pdns: include options are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 committed Sep 2, 2015
1 parent 99340d7 commit 99a7085
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Formula/pdns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ class Pdns < Formula
sha256 "723e2b4f9b9e92e657a6ef37f4fb3e9b6d7823d933517e92b569314300934322" => :mountain_lion
end

option "pgsql", "Enable the PostgreSQL backend"
option "with-pgsql", "Enable the PostgreSQL backend"

deprecated_option "pgsql" => "with-pgsql"

depends_on "pkg-config" => :build
depends_on "boost"
depends_on "lua"
depends_on "sqlite"
depends_on :postgresql if build.include? "pgsql"
depends_on :postgresql if build.with? "pgsql"

def install
# https://github.com/Homebrew/homebrew/pull/33739
Expand All @@ -36,7 +38,7 @@ def install
"--with-sqlite3"]

# Include the PostgreSQL backend if requested
if build.include? "pgsql"
if build.with? "pgsql"
args << "--with-modules=gsqlite3 gpgsql"
else
# SQLite3 backend only is the default
Expand Down

0 comments on commit 99a7085

Please sign in to comment.