From 8889087e38b6e34910935a0da0819194b482b60f Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Tue, 22 Aug 2017 12:38:48 -0400 Subject: [PATCH] znc: add python3 modpython support This updates the ZNC formula to support building modpython, allowing for Python ZNC modules to be used at runtime. --- Formula/znc.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/znc.rb b/Formula/znc.rb index 2ccaa5f575..1e4a6a0870 100644 --- a/Formula/znc.rb +++ b/Formula/znc.rb @@ -20,12 +20,14 @@ class Znc < Formula option "with-debug", "Compile ZNC with debug support" option "with-icu4c", "Build with icu4c for charset support" + option "with-python3", "Build with mod_python support, allowing Python ZNC modules" deprecated_option "enable-debug" => "with-debug" depends_on "pkg-config" => :build depends_on "openssl" depends_on "icu4c" => :optional + depends_on "python3" => :optional needs :cxx11 @@ -39,6 +41,7 @@ class Znc < Formula args = ["--prefix=#{prefix}"] args << "--enable-debug" if build.with? "debug" + args << "--enable-python" if build.with? "python3" system "./autogen.sh" if build.head? system "./configure", *args