From 60a3dc734f9cab7622a884328fc6d4eaa9d808d1 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Tue, 7 Jul 2020 18:52:39 +0800 Subject: [PATCH 1/3] Update terminalimageviewer.rb Full credit to @cxwx ! --- terminalimageviewer.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/terminalimageviewer.rb b/terminalimageviewer.rb index 0353528..c33340d 100644 --- a/terminalimageviewer.rb +++ b/terminalimageviewer.rb @@ -11,15 +11,16 @@ class Terminalimageviewer < Formula cd "src/main/cpp" do system "make" if OS.mac? - # No expermimental/filesystem.h on mac - system "#{Formula["gcc"].opt_bin}/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17", + # No expermimental/filesystem.h on mac. + system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17", "-Wall", "-fpermissive", "-fexceptions", "-O2", "-c", + "-L/usr/local/opt/gcc/lib/gcc/10/", "tiv.cpp", "-o", "tiv.o" - system "#{Formula["gcc"].opt_bin}/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o", - "tiv", "-lstdc++fs", + system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o", + "tiv", "-L/usr/local/opt/gcc/lib/gcc/10/", "-pthread", "-s" else system "make" From 20dcfd0221d32ae398c3224afc512889766aa17d Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Tue, 7 Jul 2020 18:55:48 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9c7e869..8f5c7bd 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ See the difference by disabling this optimization using the `-0` option. Or just - 2019-03-26: Exciting week: @Cableo has fixed output redirection, @boretom has added cross-compilation support to the build file and @AlanDeSmet has fixed tall thumbnails and greyscale images. - 2019-01-14: Install via snap: `sudo snap install --edge tiv` +- 2020-04-09: @aaronliu0130 has added homebrew support. +- 2020-07-05: @cxwx has fixed homebrew support. ## Installation From 5f1a7dd28e7da632666cf981df99b30e61d74d93 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Tue, 28 Jul 2020 10:04:58 +0800 Subject: [PATCH 3/3] Update terminalimageviewer.rb --- terminalimageviewer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminalimageviewer.rb b/terminalimageviewer.rb index c33340d..c695956 100644 --- a/terminalimageviewer.rb +++ b/terminalimageviewer.rb @@ -1,8 +1,8 @@ class Terminalimageviewer < Formula desc "Display images in a terminal using block graphic characters" homepage "https://github.com/stefanhaustein/TerminalImageViewer" - url "https://github.com/stefanhaustein/TerminalImageViewer/archive/v1.0.0.tar.gz" - sha256 "d28c5746d25d83ea707db52b54288c4fc1851c642ae021951967e69296450c8c" + url "https://github.com/stefanhaustein/TerminalImageViewer/archive/v1.1.0.tar.gz" + sha256 "727ddaa048643cb0a13e23bc308415060d99d8b1853883ad339ad7b952050d61" head "https://github.com/stefanhaustein/TerminalImageViewer.git" depends_on "gcc" => :build unless OS.linux? depends_on "imagemagick"