* Sync with the trunk.

svn path=/nixpkgs/branches/stdenv-updates/; revision=19786
This commit is contained in:
Eelco Dolstra
2010-02-03 14:23:43 +00:00
60 changed files with 1522 additions and 261 deletions

View File

@@ -0,0 +1,23 @@
{stdenv, fetchurl, tex, perl, netpbm, ghostscript}:
stdenv.mkDerivation {
name = "latex2html-2002-1";
buildInputs = [ tex perl ghostscript netpbm ];
preConfigure = ''
configureFlags="--with-texpath=$out/share/texmf-nix";
'';
src = fetchurl {
url = mirror://ubuntu/pool/multiverse/l/latex2html/latex2html_2002-2-1-20050114.orig.tar.gz;
sha256 = "22049a77cf88a647776e61e06800ace4f9a06afc6ffe2590574487f023d0881f";
};
meta = {
homepage = http://www.latex2html.org/;
license = "unfree-redistributable";
description = "Convertor written in Perl that converts LaTeX documents to HTML";
};
}

View File

@@ -0,0 +1,37 @@
{stdenv, fetchurl, tetex}:
stdenv.mkDerivation rec {
name = "tex4ht-1.0.2009_06_11_1038";
src = fetchurl {
url = "http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${name}.tar.gz";
sha1 = "7d46488059316dec3234b6478cd0d2ca8f4d110f";
};
buildInputs = [ tetex ];
buildPhase = ''
cd src
for f in tex4ht t4ht htcmd ; do
# -DENVFILE="$out/share/texmf-nix/tex4ht/base/unix/tex4ht.env"
gcc -o $f $f.c -I${tetex}/include -L${tetex}/lib -DHAVE_DIRENT_H -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea
done
cd -
'';
installPhase = ''
ensureDir $out/bin
for f in src/tex4ht src/t4ht src/htcmd bin/unix/*; do # */
mv $f $out/bin/.
done
ensureDir $out/share
cp -r texmf $out/share/.
'';
meta = {
homepage = http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html;
# LaTeX Project Public License
license = "LPPL";
};
}