2010-08-21 18:54:24 +02:00
|
|
|
{ stdenv, fetchurl, ghostscript, perl, groff }:
|
2009-01-11 00:35:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "groff-1.20.1";
|
2005-08-21 15:59:04 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-01-11 00:35:15 +01:00
|
|
|
url = "mirror://gnu/groff/${name}.tar.gz";
|
|
|
|
sha256 = "01fq5i68p4s4fc6m8i90y5d28wk1x6zh2mkw85n0qqnb6n0qfidn";
|
|
|
|
};
|
|
|
|
|
2010-08-21 18:54:24 +02:00
|
|
|
buildInputs = [ ghostscript ];
|
|
|
|
buildNativeInputs = [ perl ];
|
2009-01-11 00:35:15 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2010-08-21 18:54:24 +02:00
|
|
|
crossAttrs = {
|
|
|
|
# Trick to get the build system find the proper 'native' groff
|
|
|
|
# http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html
|
|
|
|
preBuild = ''
|
|
|
|
makeFlags="GROFF_BIN_PATH=${groff}/bin GROFFBIN=${groff}/bin/groff"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2009-01-11 00:35:15 +01:00
|
|
|
meta = {
|
|
|
|
description = "GNU Troff, a typesetting package that reads plain text and produces formatted output";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
groff is the GNU implementation of troff, a document formatting
|
|
|
|
system. Included in this release are implementations of troff,
|
|
|
|
pic, eqn, tbl, grn, refer, -man, -mdoc, -mom, and -ms macros,
|
|
|
|
and drivers for PostScript, TeX dvi format, HP LaserJet 4
|
|
|
|
printers, Canon CAPSL printers, HTML and XHTML format (beta
|
|
|
|
status), and typewriter-like devices. Also included is a
|
|
|
|
modified version of the Berkeley -me macros, the enhanced
|
|
|
|
version gxditview of the X11 xditview previewer, and an
|
|
|
|
implementation of the -mm macros.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/groff/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
2005-08-21 15:59:04 +02:00
|
|
|
};
|
|
|
|
}
|