2018-07-27 20:11:26 +00:00
|
|
|
SUMMARY="Database migration tool for SQLAlchemy"
|
|
|
|
DESCRIPTION="A database migrations tool written by the author of SQLAlchemy. \
|
|
|
|
It offers the following functionality:
|
|
|
|
* Can emit ALTER statements to a database in order to change the structure of \
|
|
|
|
tables and other constructs
|
|
|
|
* Provides a system whereby “migration scripts” may be constructed; each \
|
|
|
|
script indicates a particular series of steps that can “upgrade” a target \
|
|
|
|
database to a new version, and optionally a series of steps that can \
|
|
|
|
“downgrade” similarly, doing the same steps in reverse.
|
|
|
|
* Allows the scripts to execute in some sequential manner."
|
|
|
|
HOMEPAGE="https://pypi.org/project/alembic/"
|
2019-10-22 19:55:56 +00:00
|
|
|
COPYRIGHT="2011-2019 Mike Bayer"
|
2018-07-27 20:11:26 +00:00
|
|
|
LICENSE="MIT"
|
|
|
|
REVISION="1"
|
2019-10-22 19:55:56 +00:00
|
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/6f/42/48447bf41287bc577e4f340e7c28578e322567f5622a915bdfa01c83dc76/alembic-$portVersion.tar.gz"
|
2018-07-27 20:11:26 +00:00
|
|
|
SOURCE_DIR="alembic-$portVersion"
|
2019-10-22 19:55:56 +00:00
|
|
|
CHECKSUM_SHA256="9f907d7e8b286a1cfb22db9084f9ce4fde7ad7956bb496dc7c952e10ac90e36a"
|
2018-07-27 20:11:26 +00:00
|
|
|
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
$portName = $portVersion
|
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku_devel
|
|
|
|
"
|
|
|
|
|
2019-10-22 19:55:56 +00:00
|
|
|
PYTHON_PACKAGES=(python python36 python3)
|
|
|
|
PYTHON_VERSIONS=(2.7 3.6 3.7)
|
2018-07-27 20:11:26 +00:00
|
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
|
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
2019-10-22 19:55:56 +00:00
|
|
|
eval "PROVIDES_${pythonPackage}=\"\
|
|
|
|
${portName}_$pythonPackage = $portVersion\n\
|
|
|
|
cmd:alembic$pythonVersion\n\
|
|
|
|
\"; \
|
|
|
|
REQUIRES_$pythonPackage=\"\
|
|
|
|
haiku\n\
|
|
|
|
cmd:python$pythonVersion\
|
|
|
|
\""
|
2018-07-27 20:11:26 +00:00
|
|
|
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
|
2019-10-22 19:55:56 +00:00
|
|
|
mv $binDir/alembic $binDir/alembic$pythonVersion
|
|
|
|
|
|
|
|
packageEntries $pythonPackage \
|
|
|
|
$prefix/lib/python* \
|
|
|
|
$binDir
|
2018-07-27 20:11:26 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|