blob: 91348ab5bda09519bf8a1ec237c38cab7a793e01 (
plain) (
blame)
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
31
32
33
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Wordnet(AutotoolsPackage):
"""WordNet is a large lexical database of English. Nouns, verbs, adjectives
and adverbs are grouped into sets of cognitive synonyms (synsets), each
expressing a distinct concept."""
homepage = "https://wordnet.princeton.edu/"
url = "https://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz"
version("3.0", sha256="640db279c949a88f61f851dd54ebbb22d003f8b90b85267042ef85a3781d3a52")
depends_on("tk")
depends_on("tcl")
def configure_args(self):
args = []
args.append("--with-tk=%s" % self.spec["tk"].libs.directories[0])
args.append("--with-tcl=%s" % self.spec["tcl"].libs.directories[0])
if self.spec.satisfies("^tcl@8.6:"):
args.append("CPPFLAGS=-DUSE_INTERP_RESULT")
return args
def setup_run_environment(self, env):
env.set("WNHOME", self.prefix)
env.set("WNSEARCHDIR", self.prefix.dict)
|