swftools: rename internal Xpdf class

I don't really feel like taking the time to grok what is going on in
this formula, but reopening the Xpdf class like this causes problems if
the actual Xpdf class is loaded as well, so rename it.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-09-25 17:31:05 -05:00
parent 5cfa90a8f5
commit bb76172d8e

View file

@ -1,6 +1,6 @@
require 'formula' require 'formula'
class Xpdf < Formula class XpdfTarball < Formula
url 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz', :using => :nounzip url 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz', :using => :nounzip
sha1 '499423e8a795e0efd76ca798239eb4d0d52fe248' sha1 '499423e8a795e0efd76ca798239eb4d0d52fe248'
end end
@ -31,7 +31,7 @@ class Swftools < Formula
end end
def install def install
Xpdf.new.brew { (buildpath+'lib/pdf').install Dir['*'] } if build.include? "with-xpdf" XpdfTarball.new.brew { (buildpath+'lib/pdf').install Dir['*'] } if build.include? "with-xpdf"
system "./configure", "--prefix=#{prefix}" system "./configure", "--prefix=#{prefix}"
system "make" system "make"
system "make install" system "make install"