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)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 24 Feb 2016 01:06:13 +0000 (01:06 +0000)
commit8c9fe6b2ddb7d9ba2113750d89c0be1e855e9b5d
tree3b720ccacbe9f26f9be82fe8f276b634ceedb37b
parent818b1871519f0348cc54a60c76e2c8192f36bb3c
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
Makefile.PL
etc/koha-conf.xml
rewrite-config.PL