Bug 12549: Hard coded font Paths ( DejaVu ) cause problems for non-Debian systems
authorNicholas van Oudtshoorn <vanoudt@gmail.com>
Tue, 22 Dec 2015 04:25:47 +0000 (12:25 +0800)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 26 Feb 2016 12:43:57 +0000 (13:43 +0100)
commit7876820211d44624bf65aa70b177555d53206353
treef566686aa5c3aae5c93a91d2eb1f23f843219cc0
parent9ad830d04b88e16c44824f3fd1052dd566df3345
Bug 12549: Hard coded font Paths ( DejaVu ) cause problems for non-Debian systems

Allows for selection of DejaVu font path when installing from the command line. This
is useful for non-debian distributions that don't store the fonts in the same place.

Adds a new configuration variable to Makefile.PL: FONT_DIR

Defaults to the Debian install location for the fonts.

Test plan:
1. Run a CLI install, accepting the defaults.
2. Compare the generated koha-conf.xml to a
previous install - the font path for DejaVu fonts should be the same.
3. Run another CLI install, this time choosing a custom path for the fonts
4. Check that the path selected is reflected in the koha-conf.xml file.

NOTE: 'perl Makefile.pl' and 'make' generates blib/KOHA_CONF_DIR/koha-conf.xml
      ran with a weird string for the font dir
      copied that koha-conf.xml to my home dir
      reran with all defaults
      compared the two, and only the font paths differed.
      Also, I cleaned up the tabs that snuck in. :)

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit 8c9fe6b2ddb7d9ba2113750d89c0be1e855e9b5d)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Makefile.PL
etc/koha-conf.xml
rewrite-config.PL