2014-11-13 16:47:37 +00:00
|
|
|
{ stdenv, fetchurl, perl, icmake }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2014-11-13 16:47:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yodl-${version}";
|
2014-11-14 12:05:46 +00:00
|
|
|
version = "3.04.00";
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2014-11-13 16:47:37 +00:00
|
|
|
buildInputs = [ perl icmake ];
|
2008-12-22 18:36:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-13 16:47:37 +00:00
|
|
|
url = "mirror://sourceforge/yodl/yodl_${version}.orig.tar.gz";
|
2014-11-14 12:05:46 +00:00
|
|
|
sha256 = "14sqd03j3w9g5l5rkdnqyxv174yz38m39ycncx86bq86g63igcv6";
|
2008-12-22 18:36:02 +00:00
|
|
|
};
|
|
|
|
|
2014-11-13 16:47:37 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2008-12-22 18:36:02 +00:00
|
|
|
installPhase = ''
|
2014-11-13 16:47:37 +00:00
|
|
|
./build install programs $out
|
|
|
|
./build install man $out
|
|
|
|
./build install macros $out
|
2008-12-22 18:36:02 +00:00
|
|
|
'';
|
2014-11-13 16:47:37 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2008-12-22 18:36:02 +00:00
|
|
|
}
|