nickle: test added
Closes Homebrew/homebrew#40115. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
07860cdbf9
commit
6722bed840
1 changed files with 9 additions and 7 deletions
|
@ -1,15 +1,17 @@
|
||||||
require 'formula'
|
|
||||||
|
|
||||||
class Nickle < Formula
|
class Nickle < Formula
|
||||||
homepage 'http://www.nickle.org/'
|
homepage "http://www.nickle.org/"
|
||||||
url 'http://www.nickle.org/release/nickle-2.77.tar.gz'
|
url "http://www.nickle.org/release/nickle-2.77.tar.gz"
|
||||||
sha1 'b391e9fdc4e1bf48edeb10e587f472f04f571f29'
|
sha256 "a35e7ac9a3aa41625034db5c809effc208edd2af6a4adf3f4776fe60d9911166"
|
||||||
|
|
||||||
depends_on 'readline'
|
depends_on "readline"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--disable-dependency-tracking",
|
system "./configure", "--disable-dependency-tracking",
|
||||||
"--prefix=#{prefix}"
|
"--prefix=#{prefix}"
|
||||||
system "make install"
|
system "make", "install"
|
||||||
|
end
|
||||||
|
|
||||||
|
test do
|
||||||
|
assert_equal "4", shell_output("#{bin}/nickle -e '2+2'").chomp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue