epstool: avoid inreplace

This commit is contained in:
Adam Vandenberg 2012-02-12 22:34:11 -08:00
parent c43862078d
commit 35ebd730d0

View file

@ -1,15 +1,13 @@
require 'formula'
class Epstool < Formula
url 'http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/epstool-3.08.tar.gz'
homepage 'http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm'
url 'http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/epstool-3.08.tar.gz'
md5 '465a57a598dbef411f4ecbfbd7d4c8d7'
def install
inreplace 'makefile' do |s|
s.change_make_var! "EPSTOOL_ROOT", prefix
s.change_make_var! "EPSTOOL_MANDIR", man
end
system "make install"
system "make", "install",
"EPSTOOL_ROOT=#{prefix}",
"EPSTOOL_MANDIR=#{man}"
end
end