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

class Ftimes < Formula
  homepage "http://ftimes.sourceforge.net/FTimes/index.shtml"
  url "https://downloads.sourceforge.net/project/ftimes/ftimes/3.11.0/ftimes-3.11.0.tgz"
  sha1 "83ec09be7978d1a834f57bdb64c54d4a98a88536"

  depends_on "pcre"

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--with-pcre=#{Formula['pcre'].opt_prefix}",
                          "--prefix=#{prefix}"

    inreplace "doc/ftimes/Makefile" do |s|
      s.change_make_var! "INSTALL_PREFIX", man1
    end

    system "make install"
  end
end