sapling: rebuild

* sapling: migrate to python@3.11
* sapling: fix python selection

Closes #119103.

Co-authored-by: Michael Cho <cho-m@tuta.io>
Signed-off-by: Michael Cho <20700669+cho-m@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
ryenus 2022-12-26 17:32:21 +08:00 committed by BrewTestBot
parent 36534e6696
commit 59f1a92c00
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 4 additions and 7 deletions

View File

@ -22,18 +22,15 @@ class Sapling < Formula
depends_on "gh"
depends_on "node"
depends_on "openssl@1.1"
depends_on "python@3.10"
depends_on "python@3.11"
def install
python3 = "python3.11"
ENV["OPENSSL_DIR"] = Formula["openssl@1.1"].opt_prefix
ENV["PYTHON_SYS_EXECUTABLE"] = Formula["python@3.10"].opt_prefix/"bin/python3.10"
ENV["PYTHON"] = Formula["python@3.10"].opt_prefix/"bin/python3.10"
ENV["PYTHON3"] = Formula["python@3.10"].opt_prefix/"bin/python3.10"
ENV["SAPLING_VERSION"] = version.to_s
cd "eden/scm" do
system "make", "PREFIX=#{prefix}", "install-oss"
end
system "make", "-C", "eden/scm", "install-oss", "PREFIX=#{prefix}", "PYTHON=#{python3}", "PYTHON3=#{python3}"
end
test do