50 lines
1.7 KiB
Ruby
50 lines
1.7 KiB
Ruby
class Ufraw < Formula
|
|
desc "Unidentified Flying RAW: RAW image processing utility"
|
|
homepage "https://ufraw.sourceforge.io"
|
|
url "https://downloads.sourceforge.net/project/ufraw/ufraw/ufraw-0.22/ufraw-0.22.tar.gz"
|
|
sha256 "f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e"
|
|
revision 2
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 "4f44a20203e27950d80b37c7404ea9a846c5e8511749b1247e073de2bd3dd64a" => :mojave
|
|
sha256 "64929d414a25bdbd33e8455c1a1dd1f50fb3ac8b1e64ac5dfedb9198d316301e" => :high_sierra
|
|
sha256 "930d3d811dc61bb79130148e1bab712e6a9a8ce83d9ef829c453490ca7ff6ad7" => :sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "dcraw"
|
|
depends_on "gettext"
|
|
depends_on "glib"
|
|
depends_on "jasper"
|
|
depends_on "jpeg"
|
|
depends_on "libpng"
|
|
depends_on "libtiff"
|
|
depends_on "little-cms2"
|
|
|
|
# jpeg 9 compatibility
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/b8ed064/ufraw/jpeg9.patch"
|
|
sha256 "45de293a9b132eb675302ba8870f5b6216c51da8247cd096b24a5ab60ffbd7f9"
|
|
end
|
|
|
|
# Fix compilation with Xcode 9 and later,
|
|
# see https://sourceforge.net/p/ufraw/bugs/419/
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/d5bf686c74/ufraw/high_sierra.patch"
|
|
sha256 "60c67978cc84b5a118855bcaa552d5c5c3772b407046f1b9db9b74076a938f6e"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--without-gtk",
|
|
"--without-gimp"
|
|
system "make", "install"
|
|
(share/"pixmaps").rmtree
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/ufraw-batch --version 2>&1")
|
|
end
|
|
end
|