blob: c751843522d80a04deb1a05e9432b32aede0a8e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  | 
require 'formula'
class Xpdf < Formula
  url 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz'
  homepage 'http://www.foolabs.com/xpdf/'
  md5 '599dc4cc65a07ee868cf92a667a913d2'
  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",
      "ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl4.patch",
      "ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl5.patch"
    ]
  end
  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make"
    system "make install"
  end
end
  |