aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/watch.rb19
1 files changed, 14 insertions, 5 deletions
diff --git a/Library/Formula/watch.rb b/Library/Formula/watch.rb
index a8618183f..8455ebeeb 100644
--- a/Library/Formula/watch.rb
+++ b/Library/Formula/watch.rb
@@ -1,16 +1,25 @@
require 'formula'
class Watch < Formula
- homepage 'http://procps.sourceforge.net/'
- url 'http://procps.sourceforge.net/procps-3.2.8.tar.gz'
- version '0.2.0' # watch command itself is version 0.2.0
- sha1 'a0c86790569dec26b5d9037e8868ca907acc9829'
+ homepage 'http://sourceforge.net/projects/procps-ng/'
+ url 'http://download.sourceforge.net/project/procps-ng/Production/procps-ng-3.3.10.tar.xz'
+ sha1 '484db198d6a18a42b4011d5ecb2cb784a81b0e4f'
conflicts_with 'visionmedia-watch'
def install
- system "make", "watch", "PKG_LDFLAGS="
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+
+ # AM_LDFLAGS contains a non-existing library './proc/libprocps.la' that
+ # breaks the linking process. Upstream developers have been informed (see
+ # https://github.com/Homebrew/homebrew/pull/34852/files#r21796727).
+ system "make", "watch", "AM_LDFLAGS="
bin.install "watch"
man1.install "watch.1"
end
+
+ test do
+ ENV["TERM"] = "xterm"
+ system "#{bin}/watch", "--errexit", "--chgexit", "--interval", "1", "date"
+ end
end