terminalimageviewer 1.1.1 (new formula)

Update Formula/tiv.rb

Format and fail on gcc 5

Remove redundant dependency

Relic from the old days when I didn't know there were test fixtures.

Add more whitespace

Simplify Formula/tiv.rb

Update Formula/tiv.rb for BSD

Revert tiv installation method

Update and rename tiv.rb to terminalimageviewer.rb

Add tiv alias

Fix tiv alias

Fix tiv alias again

Closes #94168.

Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Aaron Liu 2022-01-31 16:14:26 +08:00 committed by BrewTestBot
parent 17e6676be4
commit f4e94215e9
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
2 changed files with 29 additions and 0 deletions

1
Aliases/tiv Symbolic link
View File

@ -0,0 +1 @@
../Formula/terminalimageviewer.rb

View File

@ -0,0 +1,28 @@
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/refs/tags/v1.1.1.tar.gz"
sha256 "9a5f5c8688ef8db0e88dfcea6a1ae30da32268a7ab7972ff0de71955a75af0db"
license "Apache-2.0"
head "https://github.com/stefanhaustein/TerminalImageViewer.git", branch: "master"
depends_on "imagemagick"
on_linux do
depends_on "gcc"
end
fails_with gcc: "5"
def install
cd "src/main/cpp" do
system "make"
bin.install "tiv"
end
end
test do
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