wordnet: Fix build, add test

Closes Homebrew/homebrew#44545.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
David Holm 2015-10-03 00:06:30 +02:00 committed by Dominyk Tiller
parent 97eca83d10
commit e7963c30d5

View file

@ -2,9 +2,9 @@ class Wordnet < Formula
desc "Lexical database for the English language"
homepage "http://wordnet.princeton.edu/"
url "http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.bz2"
sha256 "6c492d0c7b4a40e7674d088191d3aa11f373bb1da60762e098b8ee2dda96ef22"
# Version 3.1 is version 3.0 with the 3.1 dictionary.
version "3.1"
sha256 "6c492d0c7b4a40e7674d088191d3aa11f373bb1da60762e098b8ee2dda96ef22"
depends_on :x11
@ -22,8 +22,15 @@ class Wordnet < Formula
ENV.append_to_cflags "-DUSE_INTERP_RESULT"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
"--mandir=#{man}",
"--with-tcl=#{MacOS.sdk_path}/usr/lib",
"--with-tk=#{MacOS.sdk_path}/usr/lib"
ENV.deparallelize
system "make", "install"
end
test do
output = pipe_output("#{bin}/wn homebrew -synsn")
assert_match /alcoholic beverage/, output
end
end