git-series: add missing openssl dependency / OPENSSL_DIR env var

Fixes build when Homebrew is not installed to /usr/local.

Closes #43527.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
comex 2019-08-27 17:30:49 -07:00 committed by FX Coudert
parent e4fe43cd11
commit df3f31607b

View file

@ -15,8 +15,13 @@ class GitSeries < Formula
depends_on "cmake" => :build
depends_on "rust" => :build
depends_on "libssh2"
depends_on "openssl"
def install
# Ensure that the `openssl` crate picks up the intended library.
# https://crates.io/crates/openssl#manual-configuration
ENV["OPENSSL_DIR"] = Formula["openssl"].opt_prefix
system "cargo", "install", "--root", prefix, "--path", "."
man1.install "git-series.1"
end