From cb70b5a620d20998be8f3c1e296dcae1395f7fef Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Thu, 13 Nov 2014 17:47:37 +0100 Subject: yodl: update from 2.14.3 to 3.03.0 --- pkgs/development/tools/misc/yodl/default.nix | 53 ++++++++++++++++------------ 1 file 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; + }; } -- cgit 1.4.1