@@ -1,45 +0,0 @@
1−{stdenv, fetchurl, pkgconfig, gtk, glib, zlib, libxml2, intltool, gnome_doc_utils, libgnomeui, scrollkeeper, mysql, pcre, which, libxslt}:
2−stdenv.mkDerivation rec {
3− name= "stardict-3.0.3";
4−
5− src = fetchurl {
6− url = "http://stardict-3.googlecode.com/files/${name}.tar.bz2";
7− sha256 = "0wrb8xqy6x9piwrn0vw5alivr9h3b70xlf51qy0jpl6d7mdhm8cv";
8− };
9−
10− buildInputs = [ pkgconfig gtk glib zlib libxml2 intltool gnome_doc_utils libgnomeui scrollkeeper mysql.lib pcre which libxslt];
11−
12− postPatch = ''
13− # mysql hacks: we need dynamic linking as there is no libmysqlclient.a
14− substituteInPlace tools/configure --replace '/usr/local/include/mysql' '${mysql.lib}/include/mysql/'
15− substituteInPlace tools/configure --replace 'AC_FIND_FILE([libmysqlclient.a]' 'AC_FIND_FILE([libmysqlclient.so]'
16− substituteInPlace tools/configure --replace '/usr/local/lib/mysql' '${mysql.lib}/lib/mysql/'
17− substituteInPlace tools/configure --replace 'for y in libmysqlclient.a' 'for y in libmysqlclient.so'
18− substituteInPlace tools/configure --replace 'libmysqlclient.a' 'libmysqlclient.so'
19−
20− # a list of p0 patches from gentoo devs
21− patch -p0 < ${./stardict-3.0.3-overflow.patch}
22− patch -p0 < ${./stardict-3.0.3-gcc46.patch}
23− patch -p0 < ${./stardict-3.0.3-compositelookup_cpp.patch}
24− patch -p0 < ${./stardict-3.0.3-correct-glib-include.patch}
25− patch -p0 < ${./stardict-3.0.3-entry.patch}
26−
27− # disable the xsltproc internet query
28− substituteInPlace dict/help/Makefile.am --replace 'xsltproc -o' 'xsltproc --nonet -o'
29− substituteInPlace dict/help/Makefile.in --replace 'xsltproc -o' 'xsltproc --nonet -o'
30− '';
31−
32− # another gentoo patch: a p1 patch
33− patches = [ ./stardict-3.0.3-zlib-1.2.5.2.patch ];
34−
35− configurePhase = ''
36− ./configure --disable-spell --disable-gucharmap --disable-festival --disable-espeak --disable-scrollkeeper --prefix=$out
37− '';
38−
39− meta = {
40− description = "An international dictionary supporting fuzzy and glob style matching";
41− license = stdenv.lib.licenses.lgpl3;
42− maintainers = with stdenv.lib.maintainers; [qknight];
43− broken = true;
44− };
45−}