From b84da3cb7ef66055b082197ab6f5a23060abc0ec Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Feb 2012 21:44:34 -0600 Subject: apt-dater: style fixes - full path in test - avoid inreplace Signed-off-by: Jack Nagel --- Library/Formula/apt-dater.rb | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'Library') diff --git a/Library/Formula/apt-dater.rb b/Library/Formula/apt-dater.rb index 1feb72129..9eccb87fb 100644 --- a/Library/Formula/apt-dater.rb +++ b/Library/Formula/apt-dater.rb @@ -1,8 +1,8 @@ require 'formula' class AptDater < Formula - url 'http://downloads.sourceforge.net/project/apt-dater/apt-dater/0.8.6/apt-dater-0.8.6.tar.gz' homepage 'http://www.ibh.de/apt-dater/' + url 'http://downloads.sourceforge.net/project/apt-dater/apt-dater/0.8.6/apt-dater-0.8.6.tar.gz' md5 '1f1b92403b9afb74032254ed47e7bce3' depends_on 'gettext' @@ -16,17 +16,14 @@ class AptDater < Formula end def install - inreplace 'src/Makefile.in' do |s| - s.remove_make_var! 'AM_LDFLAGS' - end - - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" + system "make", "AM_LDFLAGS=", "install" end def test - system "apt-dater -v" + system "#{bin}/apt-dater -v" end end -- cgit v1.2.3