merge #8617: recoll: filters for LaTeX, RTF, and WP
This commit is contained in:
commit
52b3546e4a
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl
|
||||||
, qt4, xapian, file, python
|
, qt4, xapian, file, python
|
||||||
, djvulibre, groff, libxslt, unzip, xpdf, antiword, catdoc, lyx
|
, djvulibre, groff, libxslt, unzip, xpdf, antiword, catdoc, lyx
|
||||||
|
, libwpd, unrtf, untex
|
||||||
, ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconv }:
|
, ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconv }:
|
||||||
|
|
||||||
assert stdenv.system != "powerpc-linux";
|
assert stdenv.system != "powerpc-linux";
|
||||||
@ -40,12 +41,11 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace $f --replace unzip ${unzip}/bin/unzip
|
substituteInPlace $f --replace unzip ${unzip}/bin/unzip
|
||||||
substituteInPlace $f --replace xls2csv ${catdoc}/bin/xls2csv
|
substituteInPlace $f --replace xls2csv ${catdoc}/bin/xls2csv
|
||||||
substituteInPlace $f --replace xsltproc ${libxslt}/bin/xsltproc
|
substituteInPlace $f --replace xsltproc ${libxslt}/bin/xsltproc
|
||||||
|
substituteInPlace $f --replace unrtf ${unrtf}/bin/unrtf
|
||||||
|
substituteInPlace $f --replace untex ${untex}/bin/untex
|
||||||
|
substituteInPlace $f --replace wpd2html ${libwpd}/bin/wpd2html
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
# TODO:
|
|
||||||
#substituteInPlace $f --replace unrtf ${unrtf}/bin/unrtf
|
|
||||||
#substituteInPlace $f --replace untex ${untex}/bin/untex
|
|
||||||
#substituteInPlace $f --replace wpd2html ${wpd2html}/bin/wpd2html
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A full-text search tool";
|
description = "A full-text search tool";
|
||||||
|
@ -11,4 +11,10 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ glib libgsf libxml2 zlib librevenge ];
|
buildInputs = [ glib libgsf libxml2 zlib librevenge ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A library for importing and exporting WordPerfect documents";
|
||||||
|
homepage = http://libwpd.sourceforge.net/;
|
||||||
|
license = licenses.lgpl21;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
27
pkgs/tools/text/unrtf/default.nix
Normal file
27
pkgs/tools/text/unrtf/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, fetchurl, autoconf, automake }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "unrtf-${version}";
|
||||||
|
version = "0.21.9";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://www.gnu.org/software/unrtf/${name}.tar.gz";
|
||||||
|
sha256 = "1pcdzf2h1prn393dkvg93v80vh38q0v817xnbwrlwxbdz4k7i8r2";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ autoconf automake ];
|
||||||
|
|
||||||
|
preConfigure = "./bootstrap";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A converter from Rich Text Format to other formats";
|
||||||
|
longDescription = ''
|
||||||
|
UnRTF converts documents in Rich Text Format to other
|
||||||
|
formats, including HTML, LaTeX, and RTF itself.
|
||||||
|
'';
|
||||||
|
homepage = https://www.gnu.org/software/unrtf/;
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ joachifm ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
27
pkgs/tools/text/untex/default.nix
Normal file
27
pkgs/tools/text/untex/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "untex-${version}";
|
||||||
|
version = "1.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://www.ctan.org/tex-archive/support/untex/${name}.tar.gz";
|
||||||
|
sha256 = "07p836jydd5yjy905m5ylnnac1h4cc4jsr41panqb808mlsiwmmy";
|
||||||
|
};
|
||||||
|
|
||||||
|
unpackPhase = "tar xf $src";
|
||||||
|
installTargets = "install install.man";
|
||||||
|
installFlags = "BINDIR=$(out)/bin MANDIR=$(out)/share/man/man1";
|
||||||
|
preBuild = ''
|
||||||
|
sed -i '1i#include <stdlib.h>\n#include <string.h>' untex.c
|
||||||
|
mkdir -p $out/bin $out/share/man/man1
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A utility which removes LaTeX commands from input";
|
||||||
|
homepage = https://www.ctan.org/pkg/untex;
|
||||||
|
license = licenses.gpl1;
|
||||||
|
maintainers = with maintainers; [ joachifm ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -3192,6 +3192,10 @@ let
|
|||||||
|
|
||||||
unoconv = callPackage ../tools/text/unoconv { };
|
unoconv = callPackage ../tools/text/unoconv { };
|
||||||
|
|
||||||
|
unrtf = callPackage ../tools/text/unrtf { };
|
||||||
|
|
||||||
|
untex = callPackage ../tools/text/untex { };
|
||||||
|
|
||||||
upx = callPackage ../tools/compression/upx { };
|
upx = callPackage ../tools/compression/upx { };
|
||||||
|
|
||||||
uriparser = callPackage ../development/libraries/uriparser {};
|
uriparser = callPackage ../development/libraries/uriparser {};
|
||||||
|
Loading…
Reference in New Issue
Block a user