67 lines
2.3 KiB
Ruby
67 lines
2.3 KiB
Ruby
class Geeqie < Formula
|
|
desc "Lightweight Gtk+ based image viewer"
|
|
homepage "http://www.geeqie.org/"
|
|
# URL needs to be an unshallow clone because it needs history to generate
|
|
# the changelog documentation.
|
|
# Unfortunately this means that the tarball can't be used to build;
|
|
# this is documented in the makefile.
|
|
url "https://github.com/BestImageViewer/geeqie.git",
|
|
:tag => "v1.4",
|
|
:revision => "7c9b41e7c9be8cfc9b4f0a2459c0a1e0e4aaea5b",
|
|
:shallow => false
|
|
revision 2
|
|
|
|
bottle do
|
|
sha256 "1ec3ae6207e019a06e6e23eaa25e05a7e6025a557ff96e5f06620011d1598d90" => :mojave
|
|
sha256 "d53cf22c02464a067ea414a2877692df268dd6ddb194fb13e5041fb8e38694c2" => :high_sierra
|
|
sha256 "d2c89edebb2249fa1b035ffc8b200485117e75b19d28fa3e7389ac910282bc5c" => :sierra
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "intltool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "adwaita-icon-theme"
|
|
depends_on "atk"
|
|
depends_on "cairo"
|
|
depends_on "exiv2"
|
|
depends_on "gdk-pixbuf"
|
|
depends_on "gettext"
|
|
depends_on "glib"
|
|
depends_on "gtk+3"
|
|
depends_on "imagemagick"
|
|
depends_on "jpeg"
|
|
depends_on "libtiff"
|
|
depends_on "little-cms2"
|
|
depends_on "pango"
|
|
|
|
# Fixes the build on OS X by assigning a value to a variable
|
|
# before passing to WEXITVALUE.
|
|
# https://github.com/BestImageViewer/geeqie/pull/589
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/9cacfd49be1db430d7a956132d6521e23fc85f77/geeqie/wexitstatus_fix.diff"
|
|
sha256 "00bad28d46aafaaed99965a5c054bf04679c100c6f4f13ee82cf83c2782de349"
|
|
end
|
|
|
|
# Fix build with exiv 0.27
|
|
# https://github.com/BestImageViewer/geeqie/pull/655
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/9226ec07329457300c7af68986661f26f965436b/geeqie/exiv2_fix.diff?full_index=1"
|
|
sha256 "2627bbb3a338456a8d80eedb260931991e427b4a9c8dee093400632970dd68db"
|
|
end
|
|
|
|
def install
|
|
ENV["NOCONFIGURE"] = "yes"
|
|
system "./autogen.sh"
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-glibtest",
|
|
"--disable-gtktest",
|
|
"--enable-gtk3"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/geeqie", "--version"
|
|
end
|
|
end
|