Sunday, March 15, 2009

Compile Inkscape from svn - packaged

As it my seem obvious to anyone who know me, I do not like to wait for new features to fall into the stable releases of debian, especially when the subject are ilustration and design apps. I've been compiling and running paralell versions of gimp, inkscape and scribus for a quite a few years now. Today, while compiling inkscape into my notebook, 'cause my desktop is "in mantainance" provenient of a font failure, I decided to package the script into a debian package which will install all the dependencies for compiling, check out inkscape from it's SVN repository and compile it with inkboard, python and perl suport.

The package is at: inkscape-frustrado-svn_0.0.1-1_all.deb

To install it run:

wget http://www.frustrado.com.br/download/inkscape-frustrado-svn_0.0.1-1_all.deb
dpkg -i http://www.frustrado.com.br/download/inkscape-frustrado-svn_0.0.1-1_all.deb


Be patient. It may take quite a while.

Wednesday, March 11, 2009

Installing GIMP from SVN

I've been a great fan o the GIMP for many years now. The problem is that I'm not patient enough to wait until the new features apear on he stable versions so I've been running 2 versions of GIMP on my computer: the debian packaged one and one compiled from the project SVN repository.

Below is my bash script to install/update. If you want to download the shell script I have uploaded it here.



#!/bin/bash

co_compile_install()
{
DIR=$1
PARAMS=$2
COMMAND=$3
echo "Installing $DIR"

# bash check if directory exists
if [ -d $DIR ]; then
echo "Directory exists - UPDATING"
cd $DIR
svn update
else
echo "Directory does not exists - CHECKING OUT"
svn checkout "http://svn.gnome.org/svn/$DIR/trunk" "$DIR"
cd $DIR
fi

if [ -n $COMMAND ]
then
eval $COMMAND
fi

./autogen.sh
./configure --prefix=/opt/gimp-svn $PARAMS && make && make install
cd ..
}

apt-get install automake1.7

# GLIB
co_compile_install "glib"

export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig

# GTK
co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc" "sed -r 's#(automake|aclocal)-1.7#\1#g' -i autogen.sh"
co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc"

# BABL
co_compile_install "babl"

# GEGL
co_compile_install "gegl" "" "sed -r 's:#include :#include :g' -i operations/external/ff-load.c"

export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig

# GIMP
co_compile_install "gimp" "--enable-gimp-remote --prefix=/opt/gimp-svn/ --program-suffix=-svn --with-gimpdir=.gimp-svn"

Monday, March 9, 2009

Web Services Tutorial

Uzed asked me to write a tutorial about SOAP using languages other than PHP. After much thought I decided to do a Introduction to Web Services tutorial as I think many of the people he was trying to explain soap do not have a good grasp on the basics of web servrices.

OBS: The tutorial is in Portuguese (pt_BR)