Files
haikuports/dev-python/sqlalchemy/sqlalchemy-1.2.10.recipe
Adrien Destugues f0d6d8c107 Add some python packages.
Some gertty dependencies, more to come.
2018-07-28 18:08:01 +02:00

66 lines
1.7 KiB
Bash

SUMMARY="Python SQL Toolkit and Object Relational Mapper"
DESCRIPTION="Python SQL toolkit and Object Relational Mapper that gives \
application developers the full power and flexibility of SQL.
It provides a full suite of well known enterprise-level persistence patterns, \
designed for efficient and high-performing database access, adapted into a \
simple and Pythonic domain language."
HOMEPAGE="https://www.sqlalchemy.org/"
COPYRIGHT="2006-2018 SQLAlchemy authors and contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/8a/c2/29491103fd971f3988e90ee3a77bb58bad2ae2acd6e8ea30a6d1432c33a3/SQLAlchemy-$portVersion.tar.gz"
CHECKSUM_SHA256="72325e67fb85f6e9ad304c603d83626d1df684fdf0c7ab1f0352e71feeab69d8"
SOURCE_DIR="SQLAlchemy-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python3)
PYTHON_VERSIONS=(3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}