mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 01:30:07 +02:00
sqlalchemy: update to version 1.3.24. (#11125)
This is the newest of the 1.3.x series. As this is a requirement for gertty, and that package hasn't seen development in years, better stick to an older version of sqlalchemy (1.4 *might* work? 2.x surely will not).
This commit is contained in:
104
dev-python/sqlalchemy/sqlalchemy-1.3.24.recipe
Normal file
104
dev-python/sqlalchemy/sqlalchemy-1.3.24.recipe
Normal file
@@ -0,0 +1,104 @@
|
||||
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="2005-2021 the SQLAlchemy authors and contributor"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ebbb777cbf9312359b897bf81ba00dae0f5cb69fba2a18265dcc18a6f5ef7519"
|
||||
SOURCE_DIR="SQLAlchemy-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PYTHON_VERSIONS=(3.10)
|
||||
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
eval "PROVIDES_${pythonPackage}=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
eval "PROVIDES_${pythonPackage}+=\"
|
||||
sqlalchemy_$pythonPackage = $portVersion
|
||||
\""
|
||||
fi
|
||||
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
setuptools_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
BUILD()
|
||||
{
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
rm -rf "$sourceDir"-$pythonPackage
|
||||
cp -a "$sourceDir" "$sourceDir"-$pythonPackage
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
$python setup.py build
|
||||
done
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
|
||||
export PYTHONPATH=$installLocation
|
||||
mkdir -p "$installLocation"
|
||||
|
||||
$python setup.py install \
|
||||
--root=/ --prefix="$prefix"
|
||||
|
||||
install -m 755 -d "$docDir"
|
||||
install -m 644 -t "$docDir" LICENSE
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
"$docDir" \
|
||||
"$prefix"/lib/$python
|
||||
done
|
||||
|
||||
cd "$sourceDir"
|
||||
install -m 755 -d "$docDir"
|
||||
install -m 644 -t "$docDir" AUTHORS LICENSE README.*
|
||||
}
|
||||
Reference in New Issue
Block a user