blob: e5d1f59a59a99e31a93347f0d7a7d66a16aa9767 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 | require 'formula'
class Wordnet < Formula
  homepage 'http://wordnet.princeton.edu/'
  url 'http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.bz2'
  sha1 'aeb7887cb4935756cf77deb1ea86973dff0e32fb'
  # Version 3.1 is version 3.0 with the 3.1 dictionary.
  version '3.1'
  depends_on :x11
  resource 'dict' do
    url 'http://wordnetcode.princeton.edu/wn3.1.dict.tar.gz'
    sha1 '67dee39f6e83c9a05d98c5790722b807812cda87'
    version '3.1'
  end
  def install
    (prefix/'dict').install resource('dict')
    # Disable calling deprecated fields within the Tcl_Interp during compilation.
    # https://bugzilla.redhat.com/show_bug.cgi?id=902561
    ENV.append_to_cflags "-DUSE_INTERP_RESULT"
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    ENV.deparallelize
    system "make install"
  end
end
 |