homebrew-core/Formula/exiftool.rb
BrewTestBot 6c2e0739c7 exiftool: update 9.72 bottle.
Closes Homebrew/homebrew#32718.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-09-28 10:46:27 -07:00

37 lines
1 KiB
Ruby

require "formula"
class Exiftool < Formula
homepage "http://www.sno.phy.queensu.ca/~phil/exiftool/index.html"
url "http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-9.72.tar.gz"
sha1 "7be03e182a9193ff314b4df5afcfae5db7c9198f"
bottle do
cellar :any
sha1 "4e911ddd5d1d8b6141e5c8c7dd90ad4bb3532e61" => :mavericks
sha1 "f0c4dfebbc8b6798f4e1fa477b0c8c5c904c7173" => :mountain_lion
sha1 "727aa2009ec5968d696082ac0f7ad17178a2ab3f" => :lion
end
def install
system "perl", "Makefile.PL"
system "make", "test"
# Install privately to the Cellar
libexec.install "exiftool", "lib"
# Link the executable script into "bin"
(bin + "exiftool").write <<-EOBIN
#!/bin/bash
which_exiftool=`which $0`
dirname_exiftool=$(dirname $which_exiftool)
readlink_exiftool=$(readlink $which_exiftool)
dirname_unlinked_exiftool=$(dirname $dirname_exiftool/$readlink_exiftool)
$dirname_unlinked_exiftool/../libexec/exiftool "$@"
EOBIN
end
test do
system "#{libexec}/exiftool"
end
end