Skip to content

Commit

Permalink
Add uses_from_macos to formulae, part 1 (a-j) (Homebrew#41435)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchang authored Jun 29, 2019
1 parent bd0e850 commit 3d1768d
Show file tree
Hide file tree
Showing 81 changed files with 104 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Formula/advancecomp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Advancecomp < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
uses_from_macos "bzip2"
uses_from_macos "zlib"

def install
system "autoreconf", "-fiv"
Expand Down
1 change: 1 addition & 0 deletions Formula/advancemenu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Advancemenu < Formula
end

depends_on "sdl"
uses_from_macos "expat"

conflicts_with "advancemame", :because => "both install `advmenu` binaries"

Expand Down
1 change: 1 addition & 0 deletions Formula/agda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Agda < Formula
depends_on "cabal-install" => [:build, :test]
depends_on "emacs"
depends_on "ghc"
uses_from_macos "zlib"

def install
# install Agda core
Expand Down
1 change: 1 addition & 0 deletions Formula/aide.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Aide < Formula
depends_on "libgcrypt"
depends_on "libgpg-error"
depends_on "pcre"
uses_from_macos "curl"

def install
system "sh", "./autogen.sh" if build.head?
Expand Down
1 change: 1 addition & 0 deletions Formula/analog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Analog < Formula
depends_on "gd"
depends_on "jpeg"
depends_on "libpng"
uses_from_macos "zlib"

def install
system "make", "CC=#{ENV.cc}",
Expand Down
1 change: 1 addition & 0 deletions Formula/apt-dater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class AptDater < Formula
depends_on "gettext"
depends_on "glib"
depends_on "popt"
uses_from_macos "libxml2"

def install
system "autoreconf", "-ivf"
Expand Down
1 change: 1 addition & 0 deletions Formula/arabica.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Arabica < Formula
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "boost"
uses_from_macos "expat"

def install
system "autoreconf", "-fvi"
Expand Down
1 change: 1 addition & 0 deletions Formula/arping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Arping < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libnet"
uses_from_macos "libpcap"

def install
system "./bootstrap.sh"
Expand Down
1 change: 1 addition & 0 deletions Formula/assimp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Assimp < Formula

depends_on "boost" => :build
depends_on "cmake" => :build
uses_from_macos "zlib"

# Fix "unzip.c:150:11: error: unknown type name 'z_crc_t'"
# Upstream PR from 12 Dec 2017 "unzip: fix build with older zlib"
Expand Down
1 change: 1 addition & 0 deletions Formula/atomicparsley.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Atomicparsley < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
uses_from_macos "zlib"

# Fix Xcode 9 pointer warnings
# https://bitbucket.org/wez/atomicparsley/issues/52/xcode-9-build-failure
Expand Down
1 change: 1 addition & 0 deletions Formula/augeas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Augeas < Formula

depends_on "pkg-config" => :build
depends_on "readline"
uses_from_macos "libxml2"

def install
args = %W[--disable-debug --disable-dependency-tracking --prefix=#{prefix}]
Expand Down
1 change: 1 addition & 0 deletions Formula/autogen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Autogen < Formula
depends_on "coreutils" => :build
depends_on "pkg-config" => :build
depends_on "guile"
uses_from_macos "libxml2"

def install
# Uses GNU-specific mktemp syntax: https://sourceforge.net/p/autogen/bugs/189/
Expand Down
2 changes: 2 additions & 0 deletions Formula/autojump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Autojump < Formula
sha256 "c95107719bd784e0e348be6dbfb3a780240d96f8d76710271c3642335babbd8f" => :sierra
end

uses_from_macos "python@2"

def install
system "./install.py", "-d", prefix, "-z", zsh_completion

Expand Down
1 change: 1 addition & 0 deletions Formula/avian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Avian < Formula
end

depends_on :java => "1.8"
uses_from_macos "zlib"

def install
system "make", "use-clang=true"
Expand Down
1 change: 1 addition & 0 deletions Formula/avro-c.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class AvroC < Formula
depends_on "jansson"
depends_on "snappy"
depends_on "xz"
uses_from_macos "zlib"

def install
system "cmake", ".", *std_cmake_args
Expand Down
2 changes: 2 additions & 0 deletions Formula/aws-elasticbeanstalk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class AwsElasticbeanstalk < Formula
sha256 "e88ba1b0777ae69d037fb3fe933b833ed8147d34b85aa0adb97b2d63df08a87f" => :high_sierra
end

uses_from_macos "python@2"

resource "backports.ssl_match_hostname" do
url "https://files.pythonhosted.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/backports.ssl_match_hostname-3.5.0.1.tar.gz"
sha256 "502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2"
Expand Down
1 change: 1 addition & 0 deletions Formula/aws-sdk-cpp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class AwsSdkCpp < Formula
end

depends_on "cmake" => :build
uses_from_macos "curl"

def install
mkdir "build" do
Expand Down
1 change: 1 addition & 0 deletions Formula/bamtools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Bamtools < Formula
end

depends_on "cmake" => :build
uses_from_macos "zlib"

def install
mkdir "build" do
Expand Down
1 change: 1 addition & 0 deletions Formula/bat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Bat < Formula
end

depends_on "rust" => :build
uses_from_macos "zlib"

def install
ENV["SHELL_COMPLETIONS_DIR"] = buildpath
Expand Down
2 changes: 2 additions & 0 deletions Formula/bazaar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Bazaar < Formula
sha256 "6d1409dc49d838c0209bc59ebeb4ec5b70c5c1caef3b27b97f0ebedd6d8ff515" => :el_capitan
end

uses_from_macos "python@2"

# CVE-2017-14176
# https://bugs.launchpad.net/brz/+bug/1710979
patch do
Expand Down
2 changes: 2 additions & 0 deletions Formula/binutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Binutils < Formula
sha256 "7fabb9b6e95bbc156469a765189e153917adb9b8fbdc24a7662f42b4995ba825" => :sierra
end

uses_from_macos "zlib"

keg_only :provided_by_macos,
"because Apple provides the same tools and binutils is poorly supported on macOS"

Expand Down
2 changes: 2 additions & 0 deletions Formula/bison.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Bison < Formula
sha256 "606a6ec0b5fa0adaa07ba8cdcb2c99e40d3b6c9a690d324f1688e5a832c2452b" => :sierra
end

uses_from_macos "m4"

keg_only :provided_by_macos, "some formulae require a newer version of bison"

def install
Expand Down
1 change: 1 addition & 0 deletions Formula/blockhash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Blockhash < Formula

depends_on "pkg-config" => :build
depends_on "imagemagick"
uses_from_macos "python@2"

resource "testdata" do
url "https://raw.githubusercontent.com/commonsmachinery/blockhash/ce08b465b658c4e886d49ec33361cee767f86db6/testdata/clipper_ship.jpg"
Expand Down
2 changes: 2 additions & 0 deletions Formula/brogue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Brogue < Formula
sha256 "b5f6a25670f2eeb737bcde972b78801892971e2af4e3f7df1bbaa237eb4db50f" => :sierra
end

uses_from_macos "ncurses"

# put the highscores file in HOMEBREW_PREFIX/var/brogue/ instead of a
# version-dependent location.
patch do
Expand Down
1 change: 1 addition & 0 deletions Formula/burp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Burp < Formula
depends_on "pkg-config" => :build
depends_on "librsync"
depends_on "openssl"
uses_from_macos "zlib"

def install
resource("uthash").stage do
Expand Down
2 changes: 2 additions & 0 deletions Formula/bvi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Bvi < Formula
sha256 "7ec90f6665011faa3f1715cf6cc855270a536993633d8a4600cdb0492db16686" => :mavericks
end

uses_from_macos "ncurses"

def install
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
Expand Down
2 changes: 2 additions & 0 deletions Formula/bwa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Bwa < Formula
sha256 "bee09d138e9d8f45c12d6c99b48a3e6891b6e4d3f5c6a6847bfeaa28afc2f362" => :el_capitan
end

uses_from_macos "zlib"

def install
system "make"

Expand Down
1 change: 1 addition & 0 deletions Formula/cabal-install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class CabalInstall < Formula
end

depends_on "ghc"
uses_from_macos "zlib"

def install
cd "cabal-install" if build.head?
Expand Down
2 changes: 2 additions & 0 deletions Formula/ccache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Ccache < Formula
sha256 "b41e0434efa91fa46caae563d5866fcfee17915c52a8983b8c898d59a5646440" => :sierra
end

uses_from_macos "zlib"

head do
url "https://github.com/ccache/ccache.git"

Expand Down
2 changes: 2 additions & 0 deletions Formula/cdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Cdk < Formula
sha256 "fc9f42aad5f855408583a604ab54f8241c85464f5a7e44492452904aab55dfb4" => :sierra
end

uses_from_macos "ncurses"

def install
system "./configure", "--prefix=#{prefix}", "--with-ncurses"
system "make", "install"
Expand Down
1 change: 1 addition & 0 deletions Formula/chezscheme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Chezscheme < Formula
end

depends_on :x11 => :build
uses_from_macos "ncurses"

def install
# dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
Expand Down
2 changes: 2 additions & 0 deletions Formula/clib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Clib < Formula
sha256 "ea221a1093f4bdb63209c30fc29a888ae5312baa9f50f1bc8c5b56dac75cbb46" => :yosemite
end

uses_from_macos "curl"

def install
ENV["PREFIX"] = prefix
system "make", "install"
Expand Down
1 change: 1 addition & 0 deletions Formula/clucene.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Clucene < Formula
end

depends_on "cmake" => :build
uses_from_macos "zlib"

# Portability fixes for 10.9+
# Upstream ticket: https://sourceforge.net/p/clucene/bugs/219/
Expand Down
1 change: 1 addition & 0 deletions Formula/collectd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Collectd < Formula
depends_on "libtool"
depends_on "net-snmp"
depends_on "riemann-client"
uses_from_macos "perl"

def install
args = %W[
Expand Down
1 change: 1 addition & 0 deletions Formula/cryptol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Cryptol < Formula
depends_on "cabal-install" => :build
depends_on "ghc" => :build
depends_on "z3"
uses_from_macos "ncurses"

def install
install_cabal_package :using => ["alex", "happy"]
Expand Down
2 changes: 2 additions & 0 deletions Formula/cscope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Cscope < Formula
sha256 "7eef899511b0d7eb0d6a35acf677d9b19f89528aae0272d5c414bbafbe5daaaf" => :sierra
end

uses_from_macos "ncurses"

def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}"
Expand Down
1 change: 1 addition & 0 deletions Formula/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Curl < Formula
keg_only :provided_by_macos

depends_on "pkg-config" => :build
uses_from_macos "openssl"

def install
system "./buildconf" if build.head?
Expand Down
1 change: 1 addition & 0 deletions Formula/dcmtk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Dcmtk < Formula
depends_on "libpng"
depends_on "libtiff"
depends_on "openssl"
uses_from_macos "libxml2"

def install
mkdir "build" do
Expand Down
2 changes: 2 additions & 0 deletions Formula/dhex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Dhex < Formula
sha256 "b83e63ad0f1e2910e1f2495903ac4077aa5caaabe8cb2702094f42c3921c7a9c" => :sierra
end

uses_from_macos "ncurses"

def install
inreplace "Makefile", "$(DESTDIR)/man", "$(DESTDIR)/share/man"
bin.mkpath
Expand Down
2 changes: 2 additions & 0 deletions Formula/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Dialog < Formula
sha256 "bc2e02e165c9fc28dd339d511944c22cdedbd97ec9d02d897d097f9e41535565" => :sierra
end

uses_from_macos "ncurses"

def install
system "./configure", "--prefix=#{prefix}"
system "make", "install-full"
Expand Down
1 change: 1 addition & 0 deletions Formula/diamond.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Diamond < Formula
end

depends_on "cmake" => :build
uses_from_macos "zlib"

def install
system "cmake", ".", *std_cmake_args
Expand Down
2 changes: 2 additions & 0 deletions Formula/docbook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Docbook < Formula
sha256 "6ac70ee56739ffbe8d99e18164bc42d8d0df9ce62cc2a5c55be4b65cd74092aa" => :el_capitan
end

uses_from_macos "libxml2"

resource "xml412" do
url "https://docbook.org/xml/4.1.2/docbkx412.zip"
sha256 "30f0644064e0ea71751438251940b1431f46acada814a062870f486c772e7772"
Expand Down
1 change: 1 addition & 0 deletions Formula/docbook2x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Docbook2x < Formula
end

depends_on "docbook"
uses_from_macos "libxslt"

def install
inreplace "perl/db2x_xsltproc.pl", "http://docbook2x.sf.net/latest/xslt", "#{share}/docbook2X/xslt"
Expand Down
1 change: 1 addition & 0 deletions Formula/dub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Dub < Formula

depends_on "dmd" => :build
depends_on "pkg-config"
uses_from_macos "curl"

def install
ENV["GITVER"] = version.to_s
Expand Down
1 change: 1 addition & 0 deletions Formula/dwarf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Dwarf < Formula

depends_on "flex"
depends_on "readline"
uses_from_macos "bison"

def install
%w[src/libdwarf.c doc/dwarf.man doc/xdwarf.man.html].each do |f|
Expand Down
1 change: 1 addition & 0 deletions Formula/ejdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Ejdb < Formula
end

depends_on "cmake" => :build
uses_from_macos "bzip2"

def install
mkdir "build" do
Expand Down
1 change: 1 addition & 0 deletions Formula/exempi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Exempi < Formula
end

depends_on "boost"
uses_from_macos "expat"

def install
system "./configure", "--disable-dependency-tracking",
Expand Down
1 change: 1 addition & 0 deletions Formula/expect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Expect < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
uses_from_macos "tcl-tk"

def install
args = %W[
Expand Down
Loading

0 comments on commit 3d1768d

Please sign in to comment.