#!/bin/sh

. ./_blfsset.sh

APPNAME=dbus-python
VER=1.2.4
TARGET=$APPNAME-$VER
TARGETBALL=$DLD/$TARGET.tar.gz
TARGETDIR=$TARGET

echo $TARGET

. $WRK/_checkRequired.sh python dbus-glib
. $WRK/_checkOptions.sh  pygobject epydoc docutils
. $WRK/_checkTarball.sh
. $WRK/_checkExit.sh "$1" || exit $?

unset MAKEFLAGS

cd $SRC
RemoveSrcDir
Extract

TimeStart

cd $TARGETDIR

mkdir python2
pushd python2

Configuring
PYTHON=/usr/bin/python     \
../configure --prefix=/usr \
            --docdir=/usr/share/doc/dbus-python-$VER \
	1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1

Making
make \
	1> $LOG/$TARGET.2_make.log 2>&1 || exit 1

popd

Installing
porg -lp  $TARGET "\
make -C python2 install" \
	1> $LOG/$TARGET.3_install.log 2>&1 || exit 1

TimeEnd

cd ..
RemoveSrcDir
PorgingDone

