summary refs log tree commit diff
path: root/pkgs/development/tools/misc/yodl
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2014-11-13 17:47:37 +0100
committerPascal Wittmann <mail@pascal-wittmann.de>2014-11-13 17:48:06 +0100
commitcb70b5a620d20998be8f3c1e296dcae1395f7fef (patch)
treeedc9bcc44d29661b902e70ccfaabfa06f5a7ce86 /pkgs/development/tools/misc/yodl
parent38022c9938f347b9f85ff33d55e72dcf5df0a291 (diff)
downloadnixlib-cb70b5a620d20998be8f3c1e296dcae1395f7fef.tar
nixlib-cb70b5a620d20998be8f3c1e296dcae1395f7fef.tar.gz
nixlib-cb70b5a620d20998be8f3c1e296dcae1395f7fef.tar.bz2
nixlib-cb70b5a620d20998be8f3c1e296dcae1395f7fef.tar.lz
nixlib-cb70b5a620d20998be8f3c1e296dcae1395f7fef.tar.xz
nixlib-cb70b5a620d20998be8f3c1e296dcae1395f7fef.tar.zst
nixlib-cb70b5a620d20998be8f3c1e296dcae1395f7fef.zip
yodl: update from 2.14.3 to 3.03.0
Diffstat (limited to 'pkgs/development/tools/misc/yodl')
-rw-r--r--pkgs/development/tools/misc/yodl/default.nix53
1 files changed, 31 insertions, 22 deletions
diff --git a/pkgs/development/tools/misc/yodl/default.nix b/pkgs/development/tools/misc/yodl/default.nix
index 4c92946008ec..e019f98dafb1 100644
--- a/pkgs/development/tools/misc/yodl/default.nix
+++ b/pkgs/development/tools/misc/yodl/default.nix
@@ -1,31 +1,40 @@
-# This package is only used to create the documentation of zsh-cvs
-# eg have a look at http://www.zsh.org/mla/users/2008/msg00715.html
-# latest release is newer though
+{ stdenv, fetchurl, perl, icmake }:
 
-{ stdenv, fetchurl, perl }:
+stdenv.mkDerivation rec {
+  name = "yodl-${version}";
+  version = "3.03.0";
 
-stdenv.mkDerivation {
-  name = "yodl-2.14.3";
-
-  buildInputs = [ perl ];
+  buildInputs = [ perl icmake ];
 
   src = fetchurl {
-    url = "mirror://sourceforge/yodl/yodl_2.14.3.orig.tar.gz";
-    sha256 = "0paypm76p34hap3d18vvks5rrilchcw6q56rvq6pjf9raqw8ynd4";
+    url = "mirror://sourceforge/yodl/yodl_${version}.orig.tar.gz";
+    sha256 = "1gqlhal41fy5x2hs24j3nl8q9vrmdbpj4pdx73a6dln66kx8jgnk";
   };
-  
-  patches =
-    [ (fetchurl {
-        url = "mirror://sourceforge/yodl/yodl_2.14.3-1.diff.gz";
-        sha256 = "176hlbiidv7p9051f04anzj4sr9dwlp9439f9mjvvgks47ac0qx4";
-      })
-    ];
 
-  # This doesn't isntall docs yet, do you need them?
+  preConfigure = ''
+    patchShebangs scripts/.
+    sed -i 's;/usr;;g' INSTALL.im
+    substituteInPlace build --replace /usr/bin/icmake ${icmake}/bin/icmake
+    substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
+  '';
+
+  buildPhase = ''
+    ./build programs
+    ./build man
+    ./build macros
+  '';
+
   installPhase = ''
-    # -> $out
-    sed -i "s@'/usr/@'$out/@" contrib/build.pl
-    perl contrib/build.pl make-software
-    perl contrib/build.pl install-software
+    ./build install programs $out
+    ./build install man $out
+    ./build install macros $out
   '';
+
+  meta = with stdenv.lib; {
+    description = "A package that implements a pre-document language and tools to process it";
+    homepage = http://yodl.sourceforge.net/;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ pSub ];
+    platforms = platforms.linux;
+  };
 }