diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gnu-which.rb | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Library/Formula/gnu-which.rb b/Library/Formula/gnu-which.rb index a472687f8..37ffae3b6 100644 --- a/Library/Formula/gnu-which.rb +++ b/Library/Formula/gnu-which.rb @@ -1,18 +1,25 @@ -require 'formula' +require "formula" class GnuWhich < Formula - homepage 'http://carlo17.home.xs4all.nl/which/' - url 'http://ftpmirror.gnu.org/which/which-2.20.tar.gz' - mirror 'http://ftp.gnu.org/gnu/which/which-2.20.tar.gz' - sha1 '3bcd6d87aa5231917ba7123319eedcae90cfa0fd' + # Previous homepage is dead. Have linked to the GNU Projects page for now. + homepage "https://savannah.gnu.org/projects/which/" + url "http://ftpmirror.gnu.org/which/which-2.20.tar.gz" + mirror "https://ftp.gnu.org/gnu/which/which-2.20.tar.gz" + sha1 "3bcd6d87aa5231917ba7123319eedcae90cfa0fd" - option 'default-names', "Do not prepend 'g' to the binary" + deprecated_option "default-names" => "with-default-names" + + option "with-default-names", "Do not prepend 'g' to the binary" def install args = ["--prefix=#{prefix}", "--disable-dependency-tracking"] - args << "--program-prefix=g" unless build.include? 'default-names' + args << "--program-prefix=g" if build.without? "default-names" system "./configure", *args - system "make install" + system "make", "install" + end + + test do + system "#{bin}/gwhich", "gcc" end end |
