aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/iphotoexport.rb
blob: d70e43ce393b5fb2c5c2662f1bfa146c4efaa9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Iphotoexport < Formula
  homepage 'http://code.google.com/p/iphotoexport/'
  url 'https://iphotoexport.googlecode.com/files/iphotoexport-1.6.4.zip'
  sha1 '50fa0916cf9689efdfd33cd4680424234b4e9023'

  depends_on 'exiftool'

  def install
    unzip_dir = "#{name}-#{version}"
    # Change hardcoded exiftool path
    inreplace "#{unzip_dir}/tilutil/exiftool.py", "/usr/bin/exiftool", "exiftool"

    prefix.install Dir["#{unzip_dir}/*"]
    bin.install_symlink prefix+'iphotoexport.py' => 'iphotoexport'
  end
end