2010-04-30 21:09:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Iphotoexport < Formula
|
2010-04-30 21:09:26 +00:00
|
|
|
url 'http://iphotoexport.googlecode.com/files/iphotoexport-1.6.4.zip'
|
|
|
|
homepage 'http://code.google.com/p/iphotoexport/'
|
|
|
|
sha1 '50fa0916cf9689efdfd33cd4680424234b4e9023'
|
|
|
|
|
|
|
|
depends_on 'exiftool'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-04-30 21:09:26 +00:00
|
|
|
def install
|
|
|
|
unzip_dir = @name+'-'+@version
|
|
|
|
# Change hardcoded exiftool path
|
|
|
|
inreplace "#{unzip_dir}/tilutil/exiftool.py", "/usr/bin/exiftool", "exiftool"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-04-30 21:09:26 +00:00
|
|
|
prefix.install Dir[unzip_dir+'/*']
|
|
|
|
bin.mkpath
|
|
|
|
ln_s prefix+'iphotoexport.py', bin+'iphotoexport'
|
|
|
|
end
|
|
|
|
end
|