2014-07-19 12:37:08 +01:00
|
|
|
{ stdenv, fetchurl, bison, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-04 09:14:56 +01:00
|
|
|
pname = "ispell";
|
|
|
|
version = "3.4.00";
|
|
|
|
|
2014-07-19 12:37:08 +01:00
|
|
|
src = fetchurl {
|
2019-07-04 09:14:56 +01:00
|
|
|
url = "http://fmg-www.cs.ucla.edu/geoff/tars/${pname}-${version}.tar.gz";
|
2014-07-19 12:37:08 +01:00
|
|
|
sha256 = "1d7c2fqrdjckp91ajpkn5nnmpci2qrxqn8b6cyl0zn1afb9amxbz";
|
|
|
|
};
|
2019-07-04 09:14:56 +01:00
|
|
|
|
2014-07-19 12:37:08 +01:00
|
|
|
buildInputs = [ bison ncurses ];
|
2019-07-04 09:14:56 +01:00
|
|
|
|
2014-07-19 12:37:08 +01:00
|
|
|
patches = [
|
|
|
|
./patches/0007-Use-termios.patch
|
|
|
|
./patches/0008-Tex-backslash.patch
|
|
|
|
./patches/0009-Fix-FTBFS-on-glibc.patch
|
|
|
|
./patches/0011-Missing-prototypes.patch
|
|
|
|
./patches/0012-Fix-getline.patch
|
|
|
|
./patches/0013-Fix-man-pages.patch
|
|
|
|
./patches/0021-Fix-gcc-warnings.patch
|
|
|
|
./patches/0023-Exclusive-options.patch
|
|
|
|
./patches/0024-Check-tempdir-creation.patch
|
|
|
|
./patches/0025-Languages.patch
|
|
|
|
./patches/0030-Display-whole-multibyte-character.patch
|
|
|
|
];
|
2019-07-04 09:14:56 +01:00
|
|
|
|
2014-07-19 12:37:08 +01:00
|
|
|
postPatch = ''
|
|
|
|
cat >> local.h <<EOF
|
2018-06-14 00:13:10 +01:00
|
|
|
${stdenv.lib.optionalString (!stdenv.isDarwin) "#define USG"}
|
2014-07-19 12:37:08 +01:00
|
|
|
#define TERMLIB "-lncurses"
|
|
|
|
#define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}"
|
|
|
|
#define MASTERHASH "americanmed.hash"
|
|
|
|
#define BINDIR "$out/bin"
|
|
|
|
#define LIBDIR "$out/lib"
|
|
|
|
#define ELISPDIR "{$out}/share/emacs/site-lisp"
|
|
|
|
#define TEXINFODIR "$out/share/info"
|
|
|
|
#define MAN1DIR "$out/share/man/man1"
|
|
|
|
#define MAN4DIR "$out/share/man/man4"
|
|
|
|
#define MAN45DIR "$out/share/man/man5"
|
|
|
|
#define MINIMENU
|
|
|
|
#define HAS_RENAME
|
|
|
|
EOF
|
|
|
|
'';
|
2019-07-04 09:14:56 +01:00
|
|
|
|
2014-07-19 12:37:08 +01:00
|
|
|
preBuild = ''
|
|
|
|
for dir in $out/share/emacs/site-lisp $out/share/info $out/share/man/man1 $out/share/man/man4 $out/bin $out/lib; do
|
|
|
|
mkdir -p $dir
|
|
|
|
done
|
|
|
|
'';
|
2019-07-04 09:14:56 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An interactive spell-checking program for Unix";
|
|
|
|
homepage = "https://www.cs.hmc.edu/~geoff/ispell.html";
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2014-07-19 12:37:08 +01:00
|
|
|
}
|