From 64158916839ba76b2cf866c4fe9b236656a384a0 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 4 Feb 2022 22:05:29 +0800 Subject: [PATCH] Update terminalimageviewer.rb --- terminalimageviewer.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/terminalimageviewer.rb b/terminalimageviewer.rb index 2371750..14a0205 100644 --- a/terminalimageviewer.rb +++ b/terminalimageviewer.rb @@ -5,11 +5,10 @@ class Terminalimageviewer < Formula sha256 "9a5f5c8688ef8db0e88dfcea6a1ae30da32268a7ab7972ff0de71955a75af0db" license "Apache-2.0" head "https://github.com/stefanhaustein/TerminalImageViewer.git", branch: "master" - + depends_on "imagemagick" def install - odie "This formula is for macOS 10.14-, please use tiv from homebrew-core instead!" if OS.linux? cd "src/main/cpp" do system "/usr/local/bin/g++-#{Formula["gcc"].version_suffix}", "-std=c++17", "-Wall", "-fpermissive", "-fexceptions", "-O2", "-c", "-L/usr/local/opt/gcc/lib/gcc/#{Formula["gcc"].version_suffix}/", "tiv.cpp", @@ -24,4 +23,4 @@ class Terminalimageviewer < Formula assert_equal "\e[48;2;0;0;255m\e[38;2;0;0;255m \e[0m", shell_output("#{bin}/tiv #{test_fixtures("test.png")}").strip end -end \ No newline at end of file +end