Skip to content

Commit

Permalink
ftimes: revision for system openssl linking
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#42496.

Closes Homebrew/legacy-homebrew#42517.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
DomT4 committed Aug 5, 2015
1 parent e4bf8f9 commit 30b7e3d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Formula/ftimes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@ 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"
sha256 "70178e80c4ea7a8ce65404dd85a4bf5958a78f6a60c48f1fd06f78741c200f64"
revision 1

depends_on "pcre"
depends_on "openssl"

def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
system "./configure", "--prefix=#{prefix}",
"--with-pcre=#{Formula["pcre"].opt_prefix}",
"--prefix=#{prefix}"
"--with-ssl=#{Formula["openssl"].opt_prefix}",
"--sysconfdir=#{etc}",
"--with-server-prefix=#{var}/ftimes"

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

system "make", "install"
end

test do
assert_match /ftimes #{version}/, shell_output("#{bin}/ftimes --version")
end
end

0 comments on commit 30b7e3d

Please sign in to comment.