Skip to content
This repository was archived by the owner on Nov 27, 2017. It is now read-only.

lnav: depends_on "pcre" => "cxx11" #1066

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Library/Formula/lnav.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ class Lnav < Formula
end

depends_on "readline"
depends_on "pcre"
depends_on "pcre" => [("cxx11" unless OS.mac?)].compact
depends_on "curl" => ["with-libssh2", :optional]
depends_on "libgpm" unless OS.mac?

def install
system "./autogen.sh" if build.head?
Expand Down
2 changes: 2 additions & 0 deletions Library/Formula/pcre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Pcre < Formula
end

option "without-check", "Skip build-time tests (not recommended)"
option :cxx11 unless OS.mac?
option :universal

fails_with :llvm do
Expand All @@ -33,6 +34,7 @@ class Pcre < Formula
depends_on "zlib" unless OS.mac?

def install
ENV.cxx11 if build.cxx11?
ENV.universal_binary if build.universal?

system "./autogen.sh" if build.head?
Expand Down