Merged in DarkmatterVale/haikuports (pull request #315)

Update .recipe for Hugen
This commit is contained in:
François Revol
2014-12-10 02:31:06 +01:00

View File

@@ -23,8 +23,10 @@ REQUIRES="
cmd:python$secondaryArchSuffix cmd:python$secondaryArchSuffix
" "
BUILD_REQUIRES=" BUILD_REQUIRES="
cmd:python
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
cmd:python
" "
BUILD() BUILD()
@@ -35,8 +37,13 @@ BUILD()
INSTALL() INSTALL()
{ {
mkdir -p $binDir/hugen_app mkdir -p $binDir
cp -R hugen.py configs/ templates/ $binDir/hugen_app python=$portPackageLinksDir/cmd~python/bin/python
echo python $binDir/hugen_app/hugen.py > $binDir/hugen version=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$version/vendor-packages
mkdir -p $installLocation/hugen_app
cp -R hugen.py configs/ templates/ $installLocation/hugen_app
echo python $installLocation/hugen_app/hugen.py > $binDir/hugen
chmod +x $binDir/hugen chmod +x $binDir/hugen
} }