From 1b721d48f5de43aba70ab775896582d6e3148993 Mon Sep 17 00:00:00 2001 From: Seeker Date: Mon, 7 Dec 2020 03:10:45 -0800 Subject: [PATCH] cdparanoia: add linux-only patch (#66375) --- Formula/cdparanoia.rb | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Formula/cdparanoia.rb b/Formula/cdparanoia.rb index 4da1b94680c..6ab0ceca877 100644 --- a/Formula/cdparanoia.rb +++ b/Formula/cdparanoia.rb @@ -19,9 +19,18 @@ class Cdparanoia < Formula depends_on "autoconf" => :build # Patches via MacPorts - patch do - url "https://raw.githubusercontent.com/Homebrew/formula-patches/2a22152/cdparanoia/osx_interface.patch" - sha256 "3eca8ff34d2617c460056f97457b5ac62db1983517525e5c73886a2dea9f06d9" + on_macos do + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/2a22152/cdparanoia/osx_interface.patch" + sha256 "3eca8ff34d2617c460056f97457b5ac62db1983517525e5c73886a2dea9f06d9" + end + end + + on_linux do + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/bfad134/cdparanoia/linux_fpic.patch" + sha256 "496f53d21dde7e23f4c9cf1cc28219efcbb5464fe2abbd5a073635279281c9c4" + end end def install