aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-25 22:25:21 +0100
committerMike McQuaid2015-01-25 21:56:31 +0000
commitb304222a05ee70821dd4bf215646a66a47526d95 (patch)
treebb3e0573390eef90c5134df9ca2f13a96de5c432 /Library
parent2f5e47099b04daf604b963f073a492933fa749e4 (diff)
downloadhomebrew-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.rb18
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