aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike Prentice2013-09-16 19:51:31 -0400
committerAdam Vandenberg2013-09-19 07:40:23 -0700
commit0a960e2d3c2dddeebce4afefe00dbcad2c3582ff (patch)
tree4aeab9c53be41ca37022b289a18c72006c111806 /Library
parent2356a1d40005dd17b2f5b7c4fcf0ffd3ce13c400 (diff)
downloadhomebrew-0a960e2d3c2dddeebce4afefe00dbcad2c3582ff.tar.bz2
jpeg2ps 1.9
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/jpeg2ps.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/jpeg2ps.rb b/Library/Formula/jpeg2ps.rb
new file mode 100644
index 000000000..5678d9906
--- /dev/null
+++ b/Library/Formula/jpeg2ps.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Jpeg2ps < Formula
+ homepage 'http://www.pdflib.com/download/free-software/jpeg2ps/'
+ url 'http://www.pdflib.com/fileadmin/pdflib/products/more/jpeg2ps/jpeg2ps-1.9.tar.gz'
+ sha1 '2fc2701c7c00ba17b051ebcc7b9c8059eb6614f9'
+
+ def install
+ bin.mkpath
+ man.mkpath
+ system "make", "install", "BINDIR=#{bin}", "MANDIR=#{man}"
+ end
+
+ test do
+ # not terribly robust
+ testfile = `find /Library -name '*.jpg' | head -n 1`
+ testfile.strip!
+ system "#{bin}/jpeg2ps", testfile
+ end
+end