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
|
||||
desc "Read, write, modify, and display EXIF data on the command-line"
|
||||
homepage 'http://libexif.sourceforge.net/'
|
||||
url 'https://downloads.sourceforge.net/project/libexif/exif/0.6.21/exif-0.6.21.tar.gz'
|
||||
sha1 'd23139d26226b70c66d035bbc64482792c9f1101'
|
||||
homepage "http://libexif.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/libexif/exif/0.6.21/exif-0.6.21.tar.gz"
|
||||
sha256 "1e2e40e5d919edfb23717308eb5aeb5a11337741e6455c049852128a42288e6d"
|
||||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'popt'
|
||||
depends_on 'libexif'
|
||||
depends_on 'gettext'
|
||||
option "with-gettext", "Build with Native Language Support"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "popt"
|
||||
depends_on "libexif"
|
||||
depends_on "gettext" => :optional
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
||||
system "make install"
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--disable-dependency-tracking
|
||||
--disable-silent-rules
|
||||
]
|
||||
|
||||
args << "--disable-nls" if build.without? "gettext"
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue