aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 21:38:30 -0700
committerAdam Vandenberg2013-09-11 22:05:35 -0700
commit0e092aac118b46ffdb10e53d65f24a13103130fe (patch)
treeffb29fe557dc398ff13ffe243051aaa56b9f8e50 /Library/Formula
parentaad393450a1298c2a991026ff468d6c31d4f8609 (diff)
downloadhomebrew-0e092aac118b46ffdb10e53d65f24a13103130fe.tar.bz2
swftools: use resource
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/swftools.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/swftools.rb b/Library/Formula/swftools.rb
index bcd61ef20..9be54410c 100644
--- a/Library/Formula/swftools.rb
+++ b/Library/Formula/swftools.rb
@@ -1,10 +1,5 @@
require 'formula'
-class XpdfTarball < Formula
- url 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz', :using => :nounzip
- sha1 '499423e8a795e0efd76ca798239eb4d0d52fe248'
-end
-
class Swftools < Formula
homepage 'http://www.swftools.org'
url 'http://www.swftools.org/swftools-0.9.2.tar.gz'
@@ -18,6 +13,11 @@ class Swftools < Formula
depends_on 'giflib' => :optional
depends_on 'fftw' => :optional
+ resource 'xpdf' do
+ url 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz', :using => :nounzip
+ sha1 '499423e8a795e0efd76ca798239eb4d0d52fe248'
+ end
+
def patches
# Fixes a conftest for libfftwf.dylib that mistakenly calls fftw_malloc()
# rather than fftwf_malloc(). Reported upstream to their mailing list:
@@ -27,7 +27,7 @@ class Swftools < Formula
end
def install
- XpdfTarball.new.brew { (buildpath+'lib/pdf').install Dir['*'] } if build.with? "xpdf"
+ (buildpath+'lib/pdf').install resource('xpdf') if build.with? "xpdf"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"