Merge pull request #25136 from taku0/hunspell-1.6.1

hunspell: 1.3.3 -> 1.6.1
This commit is contained in:
Michael Raskin 2017-04-23 11:04:27 +02:00 committed by GitHub
commit 8611d92954
3 changed files with 11 additions and 6 deletions

View File

@ -1,16 +1,21 @@
{ stdenv, fetchurl, ncurses, readline }:
{ stdenv, fetchurl, ncurses, readline, autoreconfHook }:
stdenv.mkDerivation rec {
name = "hunspell-1.3.3";
version = "1.6.1";
name = "hunspell-${version}";
src = fetchurl {
url = "mirror://sourceforge/hunspell/${name}.tar.gz";
sha256 = "0v14ff9s37vkh45diaddndcrj0hmn67arh8xh8k79q9c1vgc1cm7";
url = "https://github.com/hunspell/hunspell/archive/v${version}.tar.gz";
sha256 = "0j9c20sj7bgd6f77193g1ihy8w905byk2gdhdc0r9dsh7irr7x9h";
};
outputs = [ "bin" "dev" "out" "man" ];
buildInputs = [ ncurses readline ];
nativeBuildInputs = [ autoreconfHook ];
autoreconfFlags = "-vfi";
configureFlags = [ "--with-ui" "--with-readline" ];
hardeningDisable = [ "format" ];

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation {
buildInputs = [ qtwebkit hunspell ];
postPatch = ''
sed -i "s,-lhunspell,-lhunspell-1.3," src/spellcheck/spellcheck.pri
sed -i "s,-lhunspell,-lhunspell-1.6," src/spellcheck/spellcheck.pri
sed -i "s,\$\$\[QT_INSTALL_PLUGINS\],$out/lib/qt5/plugins," src/src.pro
'';

View File

@ -7,7 +7,7 @@
- -llua5.1 \
- -lhunspell \
+ -llua \
+ -lhunspell-1.3 \
+ -lhunspell-1.6 \
-L/usr/local/lib/ \
-lyajl \
-lGLU \