Saturday, May 13, 2006

How to edit asciidoc on gentoo

emerge asciidoc
chmod +x /etc/asciidoc/filters/code-filter.py
asciidoc -o pygimp.html -b xhtml11 pygimp.txt

This was used to edit http://www.gimp.org/docs/python/pygimp.html.

Thursday, April 20, 2006

GIMP from CVS with stable GIMP on gentoo


I suppose you have gentoo-2006.0. If so you should have new packages required by gimp. If not emerge them. I also had to emerge gtk-doc and cvs.

First get sources from CVS. On this page we have 2 links.
So we start with Get The Stable GIMP from CVS. Save this file in our home directory (~/.cvsrc). Than run commands:

mkdir cvs;
cd cvs;
export CVSROOT=':pserver:anonymous@anoncvs.gimp.org/cvs/gnome';
cvs login; (press enter and blank password for anonymous will be stored in ~/.cvspass)
cvs checkout gimp; (this will copy gimp directory with newest files from server to our disk)


Now let's go to Build The Stable GIMP from CVS. Gentoo has different paths as descibed above so we put ours:

export PRE="/usr";
export ACLOCAL_FLAGS="-I $PRE/share/aclocal";

Let's check if this is ok:

ls ${PRE}/${ACLOCAL_FLAGS};

And another variable:

export PKG_CONFIG_PATH="$PRE/lib/pkgconfig"

And check

ls ${PKG_CONFIG_PATH}

If you don't have gimp-print installed emerge it or add to autogen.sh parameter -disable-print
Now let's go to our downloaded gimp and run autogen:

cd gimp;
./autogen.sh --prefix=/opt/gimp-2.3

If everything goes ok we will have to just run:

make;
make install;

To run this new gimp let's have a look at this page. We are told to make wraper script gimp-2.3 which sets all needed variables and place it in /usr/bin. So here it is:


#!/bin/sh

PATH=/opt/gimp-2.3/bin:$PATH
export PATH
LD_LIBRARY_PATH=/opt/gimp-2.3/lib
export LD_LIBRARY_PATH

/opt/gimp-2.3/bin/gimp-2.3 "$@"

Wednesday, March 29, 2006

Some links to read for the start

Time to stick a fork in the GIMP?


and the response.

Also you may want to browse openusability.