Building help files

Discussion in 'GIMP for Mac' started by Auria, Aug 16, 2008.

Thread Status:
Not open for further replies.
  1. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    (this is a work in progress)

    This can be done after building from source

    Create the /tmk/skl symlink as usualy, removing it first if Gimp.app already created it.

    Code:
    mkdir -p /tmp/skl
    cd /tmp/skl
    ln -s ~/src/macports/Gimp.app Gimp.app
    cd - 
    Then install docbook from macports

    Code:
    sudo /tmp/skl/Gimp.app/Contents/Resources/bin/port install docbook-xsl
    sudo /tmp/skl/Gimp.app/Contents/Resources/bin/port install docbook-xml-4.3
    Set-up environment variables so GIMP is found
    Code:
    export PATH=$PATH:/tmp/skl/Gimp.app/Contents/Resources/bin
    export PKG_CONFIG_PATH=/tmp/skl/Gimp.app/Contents/Resources/lib/pkgconfig
    export GIMPTOOL=/tmp/skl/Gimp.app/Contents/Resources/bin/gimptool-2.0
    Download help-files source archive from ftp://ftp.gimp.org/pub/gimp/help/. Unarchive it then go inside it.

    Code:
    cd path/to/gimp-help-2.4.x
    In the help files, open and edit the file stylesheets/profile.xsl. Replace :
    Code:
    <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl" />
    with :
    Code:
    <xsl:import href="/tmp/skl/Gimp.app/Contents/Resources/share/xsl/docbook-xsl/profiling/profile.xsl" />
    Then it's time to build.
    Code:
    export XML_CATALOG_FILES=$HOME/src/macports/Gimp.app/Contents/Resources/etc/xml/catalog
    ./configure --with-xsl=$HOME/src/macports/Gimp.app/Contents/Resources/share/xsl/docbook-xsl/ --enable-build
    make
    ... may take up to a few hours ...

    Then we'll change /tmp/skl to yet another location before installing so we can grab all the files it installs in a seperate location.
    Code:
    rm /tmp/skl/Gimp.app
    mkdir -p ~/Desktop/gimp-help-files/Gimp.app/Contents/Resources/
    mkdir -p /tmp/skl
    cd /tmp/skl
    ln -s ~/Desktop/gimp-help-files/Gimp.app Gimp.app
    cd - 
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/de/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/en/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/es/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/fr/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/it/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/ko/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/nl/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/no/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/pl/
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/ru
    mkdir -p /tmp/skl/Gimp.app/Contents/Resources/share/gimp/2.0/help/sv/
    make install
    
    done! You can then package the files from "~/Desktop/gimp-help-files/Gimp.app/Contents/Resources/" into the help-files installer available in our SVN repository (more info in the readme over there)
Thread Status:
Not open for further replies.

Share This Page