Author: urkud
Date: 2010-06-30 15:53:28 +0000 (Wed, 30 Jun 2010)
New Revision: 22432

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22432&view=rev

Added:
   nixpkgs/trunk/pkgs/development/libraries/hunspell/
   nixpkgs/trunk/pkgs/development/libraries/hunspell/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Log:
Add hunspell

TODO: make it work (export DICTDIR)

Changes:

Added: nixpkgs/trunk/pkgs/development/libraries/hunspell/default.nix
===================================================================
--- nixpkgs/trunk/pkgs/development/libraries/hunspell/default.nix               
                (rev 0)
+++ nixpkgs/trunk/pkgs/development/libraries/hunspell/default.nix       
2010-06-30 15:53:28 UTC (rev 22432)
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, ncurses, readline }:
+
+stdenv.mkDerivation rec {
+  name = "hunspell-1.2.11";
+
+  src = fetchurl {
+    url = "mirror://sf/hunspell/${name}.tar.gz";
+    sha256 = "14vfs1qb01hq30ss1bsiv6lkx673695g0xdyisrq720fdq2mr5rz";
+  };
+
+  propagatedBuildInputs = [ ncurses readline ];
+  configureFlags = "--with-ui --with-readline";
+
+  meta = with stdenv.lib; {
+    homepage = http://hunspell.sourceforge.net;
+    description = "The spell checker of OpenOffice.org and Mozilla Firefox 3 & 
Thunderbird, Google Chrome etc.";
+    longDescription = ''
+      Main features:
+      * Extended support for language peculiarities; Unicode character 
encoding, compounding and complex morphology.
+      * Improved suggestion using n-gram similarity, rule and dictionary based 
pronounciation data.
+      * 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),
+        * XSpell (Mac OS X port, but Hunspell is part of the OS X from version 
10.6 (Snow Leopard), and
+            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;
+    maintainers = [ maintainers.urkud ];
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
===================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       2010-06-30 15:52:24 UTC 
(rev 22431)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       2010-06-30 15:53:28 UTC 
(rev 22432)
@@ -4253,6 +4253,10 @@
     inherit stdenv fetchurl unzip;
   };
 
+  hunspell = makeOverridable (import ../development/libraries/hunspell) {
+    inherit fetchurl stdenv ncurses readline;
+  };
+
   hwloc = import ../development/libraries/hwloc {
     inherit fetchurl stdenv pkgconfig cairo expat ncurses;
   };

_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to