summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimo-tuomisto <simo-tuomisto@users.noreply.github.com>2019-02-06 16:38:48 +0200
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-02-06 15:38:48 +0100
commit1be258a587d0bed32de3df4312f6d8d0a9848f06 (patch)
tree827d5193b46da620750c694d330533cb48f3360f
parent871e7f525c1e9799c38a29dfdea1a5a9a231d20e (diff)
downloadspack-1be258a587d0bed32de3df4312f6d8d0a9848f06.tar.gz
spack-1be258a587d0bed32de3df4312f6d8d0a9848f06.tar.bz2
spack-1be258a587d0bed32de3df4312f6d8d0a9848f06.tar.xz
spack-1be258a587d0bed32de3df4312f6d8d0a9848f06.zip
wordnet: new package (#10526)
-rw-r--r--var/spack/repos/builtin/packages/wordnet/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/wordnet/package.py b/var/spack/repos/builtin/packages/wordnet/package.py
new file mode 100644
index 0000000000..6bb3ca2dc0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/wordnet/package.py
@@ -0,0 +1,33 @@
+# Copyright 2013-2019 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 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 = "http://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'].prefix.lib)
+ args.append('--with-tcl=%s' % self.spec['tcl'].prefix.lib)
+ if self.spec.satisfies('^tcl@8.6:'):
+ args.append('CPPFLAGS=-DUSE_INTERP_RESULT')
+
+ return args
+
+ def setup_environment(self, spack_env, run_env):
+ run_env.set('WNHOME', self.prefix)
+ run_env.set('WNSEARCHDIR', self.prefix.dict)