mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 05:40:07 +02:00
Alembic: bump, rename, pyversions (#4224)
This commit is contained in:
@@ -9,18 +9,17 @@ 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/"
|
||||
COPYRIGHT="2011-2018 Mike Bayer"
|
||||
COPYRIGHT="2011-2019 Mike Bayer"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/92/41/c01e9a2eaef90348cf7dea5054605c991633b5ca470574efe768b60ad5bc/alembic-$portVersion.tar.gz"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/6f/42/48447bf41287bc577e4f340e7c28578e322567f5622a915bdfa01c83dc76/alembic-$portVersion.tar.gz"
|
||||
SOURCE_DIR="alembic-$portVersion"
|
||||
CHECKSUM_SHA256="52d73b1d750f1414fa90c25a08da47b87de1e4ad883935718a8f36396e19e78e"
|
||||
CHECKSUM_SHA256="9f907d7e8b286a1cfb22db9084f9ce4fde7ad7956bb496dc7c952e10ac90e36a"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
cmd:alembic
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
@@ -30,11 +29,19 @@ BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3)
|
||||
PYTHON_VERSIONS=(3.6)
|
||||
PYTHON_PACKAGES=(python python36 python3)
|
||||
PYTHON_VERSIONS=(2.7 3.6 3.7)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\n\
|
||||
cmd:alembic$pythonVersion\n\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
@@ -54,6 +61,11 @@ INSTALL()
|
||||
rm -rf build
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
mv $binDir/alembic $binDir/alembic$pythonVersion
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$binDir
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user