2017-04-23 03:42:59 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, readline, autoreconfHook }:
|
2010-06-30 16:53:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-22 01:43:48 +00:00
|
|
|
version = "1.6.2";
|
2017-04-23 03:42:59 +01:00
|
|
|
name = "hunspell-${version}";
|
2010-06-30 16:53:28 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-04-23 03:42:59 +01:00
|
|
|
url = "https://github.com/hunspell/hunspell/archive/v${version}.tar.gz";
|
2018-01-22 01:43:48 +00:00
|
|
|
sha256 = "1i7lsv2cm0713ia3j5wjkcrhpfp3lqpjpwp4d3v18n7ycaqcxn9w";
|
2010-06-30 16:53:28 +01:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
2015-04-19 00:26:19 +01:00
|
|
|
|
|
|
|
buildInputs = [ ncurses readline ];
|
2017-04-23 03:42:59 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
autoreconfFlags = "-vfi";
|
|
|
|
|
2015-04-19 00:26:19 +01:00
|
|
|
configureFlags = [ "--with-ui" "--with-readline" ];
|
2010-06-30 16:53:28 +01:00
|
|
|
|
2016-04-05 17:49:28 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2010-06-30 16:53:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://hunspell.sourceforge.net;
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Spell checker";
|
2010-06-30 16:53:28 +01:00
|
|
|
longDescription = ''
|
2013-10-06 10:49:53 +01:00
|
|
|
Hunspell is the spell checker of LibreOffice, OpenOffice.org, Mozilla
|
|
|
|
Firefox 3 & Thunderbird, Google Chrome, and it is also used by
|
2017-08-06 23:05:18 +01:00
|
|
|
proprietary software packages, like macOS, InDesign, memoQ, Opera and
|
2013-10-06 10:49:53 +01:00
|
|
|
SDL Trados.
|
|
|
|
|
2010-06-30 16:53:28 +01:00
|
|
|
Main features:
|
2013-10-06 10:49:53 +01:00
|
|
|
|
2010-06-30 16:53:28 +01:00
|
|
|
* Extended support for language peculiarities; Unicode character encoding, compounding and complex morphology.
|
2014-12-30 02:31:03 +00:00
|
|
|
* Improved suggestion using n-gram similarity, rule and dictionary based pronunciation data.
|
2010-06-30 16:53:28 +01:00
|
|
|
* Morphological analysis, stemming and generation.
|
|
|
|
* Hunspell is based on MySpell and works also with MySpell dictionaries.
|
|
|
|
* C++ library under GPL/LGPL/MPL tri-license.
|
|
|
|
* Interfaces and ports:
|
|
|
|
* Enchant (Generic spelling library from the Abiword project),
|
2017-08-06 23:05:18 +01:00
|
|
|
* XSpell (macOS port, but Hunspell is part of the macOS from version 10.6 (Snow Leopard), and
|
2010-06-30 16:53:28 +01:00
|
|
|
now it is enough to place Hunspell dictionary files into
|
|
|
|
~/Library/Spelling or /Library/Spelling for spell checking),
|
|
|
|
* Delphi, Java (JNA, JNI), Perl, .NET, Python, Ruby ([1], [2]), UNO.
|
|
|
|
'';
|
|
|
|
platforms = platforms.all;
|
2014-09-30 11:05:52 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2010-06-30 16:53:28 +01:00
|
|
|
};
|
|
|
|
}
|