diff options
| author | Adam Vandenberg | 2013-08-06 20:21:53 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:36 -0700 |
| commit | 70c4a008ecadc37da39e7d22fe10fb7b23bfb45d (patch) | |
| tree | 637bec8e3352a520276904ec30e0027bf393b479 /Library | |
| parent | 560dee54eab340a5c7f7d81bc58e710c38145012 (diff) | |
| download | homebrew-70c4a008ecadc37da39e7d22fe10fb7b23bfb45d.tar.bz2 | |
wordnet: use resources
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/wordnet.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/wordnet.rb b/Library/Formula/wordnet.rb index 9cdd146c7..d38e3cad9 100644 --- a/Library/Formula/wordnet.rb +++ b/Library/Formula/wordnet.rb @@ -1,12 +1,5 @@ require 'formula' -class WordnetDictionaryUpdate < Formula - homepage 'http://wordnet.princeton.edu/' - url 'http://wordnetcode.princeton.edu/wn3.1.dict.tar.gz' - sha1 '67dee39f6e83c9a05d98c5790722b807812cda87' - version '3.1' -end - class Wordnet < Formula homepage 'http://wordnet.princeton.edu/' url 'http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.bz2' @@ -16,10 +9,13 @@ class Wordnet < Formula depends_on :x11 + resource 'dict' do + url 'http://wordnetcode.princeton.edu/wn3.1.dict.tar.gz' + sha1 '67dee39f6e83c9a05d98c5790722b807812cda87' + end + def install - WordnetDictionaryUpdate.new.brew do - (prefix+"dict").install Dir['*'] - end + (prefix/'dict').install resource('dict') # Disable calling deprecated fields within the Tcl_Interp during compilation. # https://bugzilla.redhat.com/show_bug.cgi?id=902561 |
