apt-dater: style fixes

- full path in test
 - avoid inreplace

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jack Nagel 2012-02-12 21:44:34 -06:00
parent c748f1333f
commit 14cd1508bd
1 changed files with 5 additions and 8 deletions

View File

@ -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