aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/a2ps.rb
blob: 1f18100d3b0be39fa1d56ac2e4e9dab796418b71 (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 A2ps < Formula
  homepage 'http://www.gnu.org/software/a2ps/'
  url 'http://ftpmirror.gnu.org/a2ps/a2ps-4.14.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz'
  md5 '781ac3d9b213fa3e1ed0d79f986dc8c7'

  # Software was last updated in 2007, so take MacPorts patches to get
  # it working on 10.6. See:
  # https://svn.macports.org/ticket/20867
  # http://trac.macports.org/ticket/18255
  def patches
    { :p0 => [
      "https://svn.macports.org/export/56498/trunk/dports/print/a2ps/files/patch-contrib_sample_Makefile.in",
      "https://svn.macports.org/export/56498/trunk/dports/print/a2ps/files/patch-lib__xstrrpl.c"
    ]}
  end

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end