The blame for this section was a bit of a cluster, but, as someone who's not
using Fedora, this makes the most logical sense. (Fedora is a version of RH,
right?)
- Install info version of ledger documentation instead of the original
texinfo sources
- Install html version of ledger documentation when BUILD_WEB_DOCS is ON
- Enable installation of documentation files from --output directory
- Install and use GNU GCC 4.8 to support required C++11 standard
- Build Boost (1.55.0) libraries needed by ledger
- Export build and cmake variables to find locally built Boost
Python is displeased with acprep if a *FLAGS environment variable is
set. This patch converts the problematic "string.split" statement to
instead be "str.split", which appears to fix the problem.
Replaces string.join with str.join
Forces conversion to str from byte-returning functions
Introduces usage of 'as' keyword when catching exception instances
Replaces has_key with usage of the 'in' keyword for dictionary key presence checking.
Both the `--local` option and the default to build local if no build
directory exists did not work, because `build_directory()` uses
`self.options.build_dir`, but the default and the `--local` option used
`self.build_dir`.
I changed the code to always use `self.options` for options/flags.
Now `self.options` is set to the default values of OptParser and is
updated when `parse_args` is called in `run`.
After this commit ledger will be built in:
* The directory specified using `--output=`
* Else in a subdirectory of `./build` or `~/Products` if one of those
directories exist and `--local` is not used.
* Else inside the source tree (default).
CMAKE_PREFIX_PATH is for searching for other programs, not for the place
to install this one. Based on acprep's --help, I think the intention was
to use CMAKE_INSTALL_PREFIX here.