mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
dev-python: Add python mako 1.0.1 recipe
* Now required for Mesa
This commit is contained in:
51
dev-python/mako/python_mako-1.0.1.recipe
Normal file
51
dev-python/mako/python_mako-1.0.1.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="Hyperfast and lightweight templating for the Python platform."
|
||||
DESCRIPTION="
|
||||
Mako is a Hyperfast and lightweight templating system for the Python platform
|
||||
"
|
||||
HOMEPAGE="http://www.makotemplates.org"
|
||||
SRC_URI="https://pypi.python.org/packages/source/M/Mako/Mako-1.0.1.tar.gz"
|
||||
CHECKSUM_SHA256="45f0869febea59dab7efd256fb451c377cbb7947bef386ff0bb44627c31a8d1c"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="Copyright (C) 2006-2015 the Mako authors and contributors"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
|
||||
|
||||
SOURCE_DIR="Mako-$portVersion"
|
||||
|
||||
PROVIDES="
|
||||
python_mako = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
python_setuptools
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel
|
||||
cmd:python
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python/bin/python setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$portPackageLinksDir/cmd~python/bin/python
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
|
||||
$python setup.py install \
|
||||
--prefix=$prefix
|
||||
}
|
||||
Reference in New Issue
Block a user