ldns: fix `python3` references. (#110406)

See #108008.
master
miles 2022-09-12 11:15:20 +00:00 committed by GitHub
parent 5de9428fec
commit 4bb5b6a510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -28,13 +28,14 @@ class Ldns < Formula
conflicts_with "drill", because: "both install a `drill` binary"
def install
python3 = "python3.10"
args = %W[
--prefix=#{prefix}
--with-drill
--with-examples
--with-ssl=#{Formula["openssl@1.1"].opt_prefix}
--with-pyldns
PYTHON_SITE_PKG=#{prefix/Language::Python.site_packages("python3")}
PYTHON_SITE_PKG=#{prefix/Language::Python.site_packages(python3)}
--disable-dane-verify
--without-xcode-sdk
]
@ -42,7 +43,7 @@ class Ldns < Formula
# Fixes: ./contrib/python/ldns_wrapper.c:2746:10: fatal error: 'ldns.h' file not found
inreplace "contrib/python/ldns.i", "#include \"ldns.h\"", "#include <ldns/ldns.h>"
ENV["PYTHON"] = which("python3")
ENV["PYTHON"] = which(python3)
system "./configure", *args
if OS.mac?