2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 16:34:16 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xpdf < Formula
|
2009-09-30 16:34:16 +00:00
|
|
|
url 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz'
|
|
|
|
homepage 'http://www.foolabs.com/xpdf/'
|
|
|
|
md5 '599dc4cc65a07ee868cf92a667a913d2'
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
def patches
|
|
|
|
[ # security patches, applied sequentially
|
|
|
|
"ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl1.patch",
|
|
|
|
"ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl2.patch",
|
|
|
|
"ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl3.patch",
|
2011-02-09 23:52:10 +00:00
|
|
|
"ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl4.patch",
|
|
|
|
"ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl5.patch"
|
2010-04-07 05:58:35 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2009-09-30 16:34:16 +00:00
|
|
|
def install
|
2010-10-22 18:39:18 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2009-09-30 16:34:16 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-10-22 18:39:18 +00:00
|
|
|
end
|