2015-09-15 02:13:22 -07:00
|
|
|
{stdenv, fetchurl, tcl, tk, xlibsWrapper, makeWrapper}:
|
2008-02-13 06:26:01 -08:00
|
|
|
|
2017-08-24 11:06:08 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.0";
|
2010-02-08 05:53:16 -08:00
|
|
|
name = "wordnet-${version}";
|
2008-02-13 06:26:01 -08:00
|
|
|
src = fetchurl {
|
2010-02-08 05:53:16 -08:00
|
|
|
url = "http://wordnetcode.princeton.edu/${version}/WordNet-${version}.tar.bz2";
|
|
|
|
sha256 = "08pgjvd2vvmqk3h641x63nxp7wqimb9r30889mkyfh2agc62sjbc";
|
2008-02-13 06:26:01 -08:00
|
|
|
};
|
|
|
|
|
2015-09-15 02:13:22 -07:00
|
|
|
buildInputs = [tcl tk xlibsWrapper makeWrapper];
|
2008-02-13 06:26:01 -08:00
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-07 16:28:41 -08:00
|
|
|
|
2015-05-15 15:56:35 -07:00
|
|
|
patchPhase = ''
|
|
|
|
sed "13i#define USE_INTERP_RESULT 1" -i src/stubs.c
|
|
|
|
'';
|
|
|
|
|
2008-02-13 06:26:01 -08:00
|
|
|
# Needs the path to `tclConfig.sh' and `tkConfig.sh'.
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
"--with-tk=${tk}/lib"
|
|
|
|
];
|
2008-02-13 06:26:01 -08:00
|
|
|
|
|
|
|
postInstall = ''
|
2010-05-28 03:57:50 -07:00
|
|
|
wrapProgram $out/bin/wishwn --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
|
2008-02-13 06:26:01 -08:00
|
|
|
wrapProgram $out/bin/wnb --prefix PATH : "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "Lexical database for the English language";
|
2010-02-08 05:53:16 -08:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' 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. Synsets are
|
|
|
|
interlinked by means of conceptual-semantic and lexical relations.
|
|
|
|
The resulting network of meaningfully related words and concepts can
|
|
|
|
be navigated with the browser. WordNet is also freely and publicly
|
|
|
|
available for download. WordNet's structure makes it a useful tool
|
|
|
|
for computational linguistics and natural language processing.
|
|
|
|
'';
|
|
|
|
|
2018-03-24 22:04:25 -07:00
|
|
|
homepage = https://wordnet.princeton.edu/;
|
2010-02-08 05:53:16 -08:00
|
|
|
|
2013-08-16 14:44:33 -07:00
|
|
|
maintainers = [ ];
|
2017-04-20 21:44:14 -07:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2008-02-13 06:26:01 -08:00
|
|
|
};
|
|
|
|
}
|