cvs commit: fptools/libraries/Cabal Cabal.cabal
fptools/libraries/Cabal/Distribution
PackageDescription.hs Setup.hs Simple.hs
fptools/libraries/Cabal/Distribution/Simple Build.hs Configure.hs
Install.hs LocalBuildInfo.hs Utils.hs ...
Isaac Jones
ijones at syntaxpolice.org
Sun Oct 16 00:07:38 EDT 2005
ijones 2005/10/15 21:07:38 PDT
Modified files:
libraries/Cabal Cabal.cabal
libraries/Cabal/Distribution PackageDescription.hs Setup.hs
Simple.hs
libraries/Cabal/Distribution/Simple Build.hs Configure.hs
Install.hs
LocalBuildInfo.hs Utils.hs
libraries/Cabal/tests ModuleTest.hs
libraries/Cabal/tests/depOnLib test.cabal
libraries/Cabal/tests/withHooks Setup.lhs
Log:
* Added Program concept to Cabal
The way Cabal handles calling external programs has been inconsistent.
Some of them are found during configure, some not. Some can be
overridden with a --with-haddock= flag (for instance) and some not.
I've added Distribution.Program in order to clean up this situation
and to reduce redundancy in dealing with programs and program-related
arguments (for instance, manually adding a --with-foo= flag for every
program).
Right now, it's not completely integrated, though everything should
still work. I've redone most of the support for haddock. The upshot
is that there's now a --haddock-args= flag in configure. The
--with-haddock, --haddock-args, --with-pfesetup, and --pfesetup-args
flags are all generated automagically from the
defaultProgramConfiguration list. The WithHaddock constructor is now
gone, and all of the WithFoo (alex, happy, etc) flags should go away
as they are being replaced by the WithProgram flag, but I haven't
gotten to this yet.
Now Cabal will have a database of programs that it knows about, and
should not call any programs that aren't in the database.
Along the way, made rawSystemVerbose a bit more robust, cleaned up the
test suite a little,
Revision Changes Path
1.22 +1 -0 fptools/libraries/Cabal/Cabal.cabal
1.64 +1 -0 fptools/libraries/Cabal/Distribution/PackageDescription.hs
1.45 +41 -9 fptools/libraries/Cabal/Distribution/Setup.hs
1.83 +24 -11 fptools/libraries/Cabal/Distribution/Simple.hs
1.71 +8 -2 fptools/libraries/Cabal/Distribution/Simple/Build.hs
1.52 +25 -3 fptools/libraries/Cabal/Distribution/Simple/Configure.hs
1.49 +2 -2 fptools/libraries/Cabal/Distribution/Simple/Install.hs
1.17 +6 -3 fptools/libraries/Cabal/Distribution/Simple/LocalBuildInfo.hs
1.44 +11 -8 fptools/libraries/Cabal/Distribution/Simple/Utils.hs
1.24 +1 -1 fptools/libraries/Cabal/tests/ModuleTest.hs
1.4 +1 -1 fptools/libraries/Cabal/tests/depOnLib/test.cabal
1.4 +11 -10 fptools/libraries/Cabal/tests/withHooks/Setup.lhs
More information about the Cvs-libraries
mailing list