mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 16:50:06 +02:00
python_mako: bump version.
This commit is contained in:
55
dev-python/mako/python_mako-1.0.3.recipe
Normal file
55
dev-python/mako/python_mako-1.0.3.recipe
Normal file
@@ -0,0 +1,55 @@
|
||||
SUMMARY="Hyperfast and lightweight templating for the Python platform"
|
||||
DESCRIPTION="Mako is a template library written in Python. It provides a \
|
||||
familiar, non-XML syntax which compiles into Python modules for maximum \
|
||||
performance. Mako's syntax and API borrows from the best ideas of many \
|
||||
others, including Django and Jinja2 templates, Cheetah, Myghty, and Genshi.
|
||||
|
||||
Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, \
|
||||
which refines the familiar ideas of componentized layout and inheritance to \
|
||||
produce one of the most straightforward and flexible models available, while \
|
||||
also maintaining close ties to Python calling and scoping semantics."
|
||||
HOMEPAGE="http://www.makotemplates.org"
|
||||
COPYRIGHT="2006-2015 the Mako authors and contributors"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/M/Mako/Mako-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7644bc0ee35965d2e146dde31827b8982ed70a58281085fac42869a09764d38c"
|
||||
SOURCE_DIR="Mako-$portVersion"
|
||||
|
||||
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
python_mako = $portVersion
|
||||
cmd:mako_render
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
python_setuptools
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel
|
||||
cmd:python2
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$portPackageLinksDir/cmd~python2/bin/python2
|
||||
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