NAME=gnome-python
VERSION=( 2.12.4 2.10.1 2.14.0 2.14.0 2.14.0 )
BUILD=${BUILD:-1}
OPTIMIZE=${OPTIMIZE:-"-Os -pipe"}
ROOT_REQUIRED=1
#PREFIXTYPE=gnome

SOURCE=( $MIRROR_GNOME/gnome-python/2.12/gnome-python-${VERSION[0]}.tar.bz2
	 $MIRROR_GNOME/pygobject/2.10/pygobject-${VERSION[1]}.tar.bz2
	 $MIRROR_GNOME/pyorbit/2.14/pyorbit-${VERSION[2]}.tar.bz2 
	 $MIRROR_GNOME/gnome-python-desktop/2.14/gnome-python-desktop-${VERSION[3]}.tar.bz2 
	 $MIRROR_GNOME/gnome-python-extras/2.14/gnome-python-extras-${VERSION[4]}.tar.bz2 )
SOURCE_MD5=( 94347f1bff86ffcce76111fa8dac1efc
	     3a69a75b4dfdb52642f26a4d45fcfde8 
	     ff62b983d5d9be164bd5a207d692eab5
	     d3f9c2d213b7d486ca7bd87dd106ca69
	     e9390569e18a5e71da1ed9476fa750b3 )

build() {

  _explode_all
  
  cd "$TMP/pygobject-${VERSION[1]}"
  $CONFIGURE \
    --disable-static
  make -j $NUMOBJS
  make DESTDIR="$PKG" install
  
  _doc 0 pygobject-${VERSION[1]} AUTHORS COPYING ChangeLog NEWS README THANKS

  _chfix
  _chgrp_bin
  _tmp_pkg 0
  
  
  cd "$TMP/pyorbit-${VERSION[2]}"
  $CONFIGURE \
    --disable-static
  make -j $NUMOBJS
  make DESTDIR="$PKG" install
  
  _doc 0 pyorbit-${VERSION[2]} AUTHORS COPYING ChangeLog NEWS README THANKS

  _chfix
  _chgrp_bin
  _tmp_pkg 0

  cd "$TMP/gnome-python-${VERSION[0]}"
  $CONFIGURE \
    --disable-static
  make -j $NUMOBJS
  make DESTDIR="$PKG" install

  _doc 0 gnome-python-${VERSION[0]} AUTHORS COPYING ChangeLog NEWS README THANKS
  
  _chfix
  _chgrp_bin
  _tmp_pkg 0
  
  cd "$TMP/gnome-python-desktop-${VERSION[3]}"
  $CONFIGURE \
    --disable-static
  make -j$NUMJOBS
  make DESTDIR="$PKG" install

  _doc gnome-python-desktop-${VERSION[3]} AUTHORS COPYING ChangeLog NEWS README THANKS

  _chfix
  _chgrp_bin
  _tmp_pkg 0

  cd "$TMP/gnome-python-extras-${VERSION[4]}"
  $CONFIGURE \
    --disable-static
  make -j$NUMJOBS
  make DESTDIR="$PKG" install
	     
  _doc gnome-python-extras-${VERSION[4]} AUTHORS COPYING ChangeLog NEWS README THANKS

  _chfix
  _chgrp_bin
}  

