2013-04-15 07:46:42 +02:00
|
|
|
{ fetchurl, stdenv, guile, which, libffi }:
|
2009-09-29 11:01:40 +02:00
|
|
|
|
2013-12-18 13:05:00 +01:00
|
|
|
let version = "5.18"; in
|
2009-09-29 11:01:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "autogen-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-02-22 14:40:01 +01:00
|
|
|
url = "mirror://gnu/autogen/rel${version}/autogen-${version}.tar.gz";
|
2013-12-18 13:05:00 +01:00
|
|
|
sha256 = "1h2d3wpzkla42igxyisaqh2nwpq01vwad1wp9671xmm5ahvkw5f7";
|
2009-09-29 11:01:40 +02:00
|
|
|
};
|
|
|
|
|
2013-04-15 07:46:42 +02:00
|
|
|
buildInputs = [ guile which libffi ];
|
2009-09-29 11:01:40 +02:00
|
|
|
|
2011-02-22 14:40:01 +01:00
|
|
|
patchPhase =
|
|
|
|
'' for i in $(find -name \*.in)
|
|
|
|
do
|
|
|
|
sed -i "$i" -e's|/usr/bin/||g'
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2009-09-29 11:01:40 +02:00
|
|
|
# The tests rely on being able to find `libopts.a'.
|
|
|
|
configureFlags = "--enable-static";
|
|
|
|
|
2013-02-23 14:44:38 +01:00
|
|
|
#doCheck = true; # 2 tests fail because of missing /dev/tty
|
2009-09-29 11:01:40 +02:00
|
|
|
|
|
|
|
meta = {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "Automated text and program generation tool";
|
2009-09-29 11:01:40 +02:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
AutoGen is a tool designed to simplify the creation and maintenance
|
|
|
|
of programs that contain large amounts of repetitious text. It is
|
|
|
|
especially valuable in programs that have several blocks of text that
|
|
|
|
must be kept synchronized.
|
|
|
|
|
|
|
|
AutoGen can now accept XML files as definition input, in addition to
|
|
|
|
CGI data (for producing dynamic HTML) and traditional AutoGen
|
|
|
|
definitions.
|
|
|
|
|
|
|
|
A common example where this would be useful is in creating and
|
|
|
|
maintaining the code required for processing program options.
|
|
|
|
Processing options requires multiple constructs to be maintained in
|
|
|
|
parallel in different places in your program. Options maintenance
|
|
|
|
needs to be done countless times. So, AutoGen comes with an add-on
|
|
|
|
package named AutoOpts that simplifies the maintenance and
|
|
|
|
documentation of program options.
|
|
|
|
'';
|
|
|
|
|
2014-01-24 16:27:36 +01:00
|
|
|
license = ["GPLv3+" "LGPLv3+" ];
|
2009-09-29 11:01:40 +02:00
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/autogen/;
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
};
|
|
|
|
}
|