aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/stow.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/stow.rb b/Library/Formula/stow.rb
index fa306fe03..35de9879f 100644
--- a/Library/Formula/stow.rb
+++ b/Library/Formula/stow.rb
@@ -1,13 +1,16 @@
-require 'formula'
-
class Stow < Formula
- homepage 'http://www.gnu.org/software/stow/'
- url 'http://ftpmirror.gnu.org/stow/stow-2.2.0.tar.gz'
- mirror 'http://ftp.gnu.org/gnu/stow/stow-2.2.0.tar.gz'
- sha1 'b95091be6ebbbac8c5e5112d6d063299c5eefff2'
+ homepage "https://www.gnu.org/software/stow/"
+ url "http://ftpmirror.gnu.org/stow/stow-2.2.0.tar.gz"
+ mirror "https://ftp.gnu.org/gnu/stow/stow-2.2.0.tar.gz"
+ sha256 "8b89d79939cf9ae87d2f223bb36a3b2d0c66775b62aeb9953c6d33dab40d3c2b"
def install
system "./configure", "--prefix=#{prefix}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ (testpath/"test").mkpath
+ system "#{bin}/stow", "-nvS", "test"
end
end