@@ -1,31 +1,40 @@
1−# This package is only used to create the documentation of zsh-cvs
2−# eg have a look at http://www.zsh.org/mla/users/2008/msg00715.html
3−# latest release is newer though
1+{ stdenv, fetchurl, perl, icmake }:
42
5−{ stdenv, fetchurl, perl }:
3+stdenv.mkDerivation rec {
4+ name = "yodl-${version}";
5+ version = "3.03.0";
66
7−stdenv.mkDerivation {
8− name = "yodl-2.14.3";
9−
10− buildInputs = [ perl ];
7+ buildInputs = [ perl icmake ];
118
129 src = fetchurl {
13− url = "mirror://sourceforge/yodl/yodl_2.14.3.orig.tar.gz";
14− sha256 = "0paypm76p34hap3d18vvks5rrilchcw6q56rvq6pjf9raqw8ynd4";
10+ url = "mirror://sourceforge/yodl/yodl_${version}.orig.tar.gz";
11+ sha256 = "1gqlhal41fy5x2hs24j3nl8q9vrmdbpj4pdx73a6dln66kx8jgnk";
1512 };
16−
17− patches =
18− [ (fetchurl {
19− url = "mirror://sourceforge/yodl/yodl_2.14.3-1.diff.gz";
20− sha256 = "176hlbiidv7p9051f04anzj4sr9dwlp9439f9mjvvgks47ac0qx4";
21− })
22− ];
2313
24− # This doesn't isntall docs yet, do you need them?
14+ preConfigure = ''
15+ patchShebangs scripts/.
16+ sed -i 's;/usr;;g' INSTALL.im
17+ substituteInPlace build --replace /usr/bin/icmake ${icmake}/bin/icmake
18+ substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
19+ '';
20+
21+ buildPhase = ''
22+ ./build programs
23+ ./build man
24+ ./build macros
25+ '';
26+
2527 installPhase = ''
26− # -> $out
27− sed -i "s@'/usr/@'$out/@" contrib/build.pl
28− perl contrib/build.pl make-software
29− perl contrib/build.pl install-software
28+ ./build install programs $out
29+ ./build install man $out
30+ ./build install macros $out
3031 '';
32+
33+ meta = with stdenv.lib; {
34+ description = "A package that implements a pre-document language and tools to process it";
35+ homepage = http://yodl.sourceforge.net/;
36+ license = licenses.gpl3;
37+ maintainers = with maintainers; [ pSub ];
38+ platforms = platforms.linux;
39+ };
3140}