diff options
| author | Baptiste Fontaine | 2015-01-25 22:25:21 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-25 21:56:31 +0000 |
| commit | b304222a05ee70821dd4bf215646a66a47526d95 (patch) | |
| tree | bb3e0573390eef90c5134df9ca2f13a96de5c432 /Library | |
| parent | 2f5e47099b04daf604b963f073a492933fa749e4 (diff) | |
| download | homebrew-b304222a05ee70821dd4bf215646a66a47526d95.tar.bz2 | |
exiftags: modernize, test added
Closes #36214.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/exiftags.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Library/Formula/exiftags.rb b/Library/Formula/exiftags.rb index 7143d45ff..0cb8f1665 100644 --- a/Library/Formula/exiftags.rb +++ b/Library/Formula/exiftags.rb @@ -1,13 +1,15 @@ -require 'formula' - class Exiftags < Formula - homepage 'http://johnst.org/sw/exiftags' - url 'http://johnst.org/sw/exiftags/exiftags-1.01.tar.gz' - sha1 '06636feb7d5c5835da01d5da8cd0f4a291d23fd8' + homepage "http://johnst.org/sw/exiftags" + url "http://johnst.org/sw/exiftags/exiftags-1.01.tar.gz" + sha1 "06636feb7d5c5835da01d5da8cd0f4a291d23fd8" def install - system 'make' - bin.install %w[exiftags exifcom exiftime] - man1.install %w[exiftags.1 exifcom.1 exiftime.1] + bin.mkpath + man1.mkpath + system "make", "prefix=#{prefix}", "mandir=#{man}", "install" + end + + test do + system "#{bin}/exiftags", test_fixtures("test.jpg") end end |
