aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pound.rb
blob: 3e800c2cdac90c500a57ab4fd96a163f0af291b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Pound < Formula
  homepage 'http://www.apsis.ch/pound'
  url 'http://www.apsis.ch/pound/Pound-2.6.tgz'
  md5 '8c913b527332694943c4c67c8f152071'

  depends_on 'pcre'

  def install
    # find Homebrew's libpcre
    ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"

    system "./configure", "--prefix=#{prefix}"
    system "make"
    # Manual install to get around group issues
    sbin.install "pound", "poundctl"
    man8.install "pound.8", "poundctl.8"
  end
end