#!/bin/sh

. ./_blfsset.sh

APPNAME=Sphinx
#pip search sphinx | grep "^Sphinx " > tmp.txt
#VER=`sed -e 's/^Sphinx (\([0-9]*\.[0-9]*\.[0-9]*\)).*/\1/' tmp.txt`
#rm -f tmp.txt
VER=2.3.1
TARGET=$APPNAME-$VER
TARGETBALL=$DLD/$TARGET.tar.gz
TARGETDIR=$TARGET

echo $TARGET

. $WRK/_checkRequired.sh ""
. $WRK/_checkOptions.sh  ""
. $WRK/_checkTarball.sh
. $WRK/_checkExit.sh "$1" || exit $?

cd $SRC
RemoveSrcDir
Extract

TimeStart

cd $TARGETDIR

Installing
porg -lp $TARGET -E/tmp:`pwd` "python3 setup.py install" \
	1> $LOG/$TARGET.3_install.log 2>&1 || exit 1

TimeEnd

cd ..
RemoveSrcDir
PorgingDone

