exif: make gettext optional
Closes Homebrew/homebrew#41541. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
6a39655375
commit
2da3ed17e0
1 changed files with 19 additions and 11 deletions
|
@ -1,18 +1,26 @@
|
||||||
require 'formula'
|
|
||||||
|
|
||||||
class Exif < Formula
|
class Exif < Formula
|
||||||
desc "Read, write, modify, and display EXIF data on the command-line"
|
desc "Read, write, modify, and display EXIF data on the command-line"
|
||||||
homepage 'http://libexif.sourceforge.net/'
|
homepage "http://libexif.sourceforge.net/"
|
||||||
url 'https://downloads.sourceforge.net/project/libexif/exif/0.6.21/exif-0.6.21.tar.gz'
|
url "https://downloads.sourceforge.net/project/libexif/exif/0.6.21/exif-0.6.21.tar.gz"
|
||||||
sha1 'd23139d26226b70c66d035bbc64482792c9f1101'
|
sha256 "1e2e40e5d919edfb23717308eb5aeb5a11337741e6455c049852128a42288e6d"
|
||||||
|
|
||||||
depends_on 'pkg-config' => :build
|
option "with-gettext", "Build with Native Language Support"
|
||||||
depends_on 'popt'
|
|
||||||
depends_on 'libexif'
|
depends_on "pkg-config" => :build
|
||||||
depends_on 'gettext'
|
depends_on "popt"
|
||||||
|
depends_on "libexif"
|
||||||
|
depends_on "gettext" => :optional
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
args = %W[
|
||||||
system "make install"
|
--prefix=#{prefix}
|
||||||
|
--disable-dependency-tracking
|
||||||
|
--disable-silent-rules
|
||||||
|
]
|
||||||
|
|
||||||
|
args << "--disable-nls" if build.without? "gettext"
|
||||||
|
|
||||||
|
system "./configure", *args
|
||||||
|
system "make", "install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue