[GNC-dev] Unable to compile Docs

Stephen M. Butler kg7je at arrl.net
Wed May 8 18:09:04 EDT 2019


On 5/8/19 12:26 PM, John Ralls wrote:
>> On May 8, 2019, at 7:37 AM, D <sunfish62 at yahoo.com> wrote:
>>
>> I thought that those tools were only need to create the pdf and mobi versions.
> Right. FOP isn't needed for building html documentation.
>
> Regards,
> John Ralls
>
>
Hmm. I wonder why the debian package builder is building it that way for
gnucash-docs. 

I open to suggestions on how to change debian/rules to create the package. 


Debian/Rules:

#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

## Disable build-time network access #831019:
export XSLTPROCFLAGS=--nonet

%:
    dh $@

## TODO: use "fonts-horai-umefont".
fonts/gothic.xml:
    fop-ttfreader /usr/share/fonts/truetype/horai-umefont/ume-tgo4.ttf $@

fonts/mincho.xml:
    fop-ttfreader /usr/share/fonts/truetype/horai-umefont/ume-tmo3.ttf $@

#override_dh_clean:
#    dh_clean fonts/mincho.xml fonts/gothic.xml ume-tmo3.ttf ume-tgo4.ttf
#
#override_dh_auto_configure: fonts/mincho.xml fonts/gothic.xml
#    dh_auto_configure --
--with-japanese-fontdir=/usr/share/fonts/truetype/horai-umefont

override_dh_auto_build:
    make html pdf

override_dh_auto_clean:
    dh_auto_clean
    for lg in C it de ja; do \
        rm -rf help/$${lg}/gnucash-help guide/$${lg}/gnucash-guide; \
    done

override_dh_installdocs:
    dh_installdocs
    for suffix in "/" ".pdf"; do \
        for type in help guide; do \
            cp -a $${type}/C/gnucash-$${type}$${suffix}
debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-en$${suffix};
\
            cp -a $${type}/it/gnucash-$${type}$${suffix}
debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-it$${suffix};
\
            cp -a $${type}/de/gnucash-$${type}$${suffix}
debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-de$${suffix};
\
            if [ "$${type}" = guide ]; then \
                cp -a $${type}/ja/gnucash-$${type}$${suffix}
debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-ja$${suffix};
\
            fi; \
        done; \
    done
    # Replace duplicate files with symlinks, to save space.
    # And make sure that files from /usr/share/doc are not taken as
original copy.
    rdfind -outputname /dev/null -makesymlinks true
debian/gnucash-docs/usr/share/gnome/ \
        debian/gnucash-docs/usr/share/doc/
    # Fix those symlinks to make them relative
    symlinks -r -s -c debian/gnucash-docs/

-- 
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8



More information about the gnucash-devel mailing list