mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
Add some python packages.
Some gertty dependencies, more to come.
This commit is contained in:
59
dev-python/alembic/alembic_python3-1.0.0.recipe
Normal file
59
dev-python/alembic/alembic_python3-1.0.0.recipe
Normal file
@@ -0,0 +1,59 @@
|
||||
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/"
|
||||
COPYRIGHT="2011-2018 Mike Bayer"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/92/41/c01e9a2eaef90348cf7dea5054605c991633b5ca470574efe768b60ad5bc/alembic-$portVersion.tar.gz"
|
||||
SOURCE_DIR="alembic-$portVersion"
|
||||
CHECKSUM_SHA256="52d73b1d750f1414fa90c25a08da47b87de1e4ad883935718a8f36396e19e78e"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
cmd:alembic
|
||||
"
|
||||
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]}
|
||||
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
|
||||
done
|
||||
}
|
||||
|
||||
65
dev-python/sqlalchemy/sqlalchemy-1.2.10.recipe
Normal file
65
dev-python/sqlalchemy/sqlalchemy-1.2.10.recipe
Normal file
@@ -0,0 +1,65 @@
|
||||
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
|
||||
}
|
||||
|
||||
61
dev-python/urwid/urwid-2.0.1.recipe
Normal file
61
dev-python/urwid/urwid-2.0.1.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
SUMMARY="Console user interface library for Python"
|
||||
DESCRIPTION="Urwid offers an alternative to using Python’s curses module \
|
||||
directly and handles many of the difficult and tedious tasks for you."
|
||||
HOMEPAGE="http://urwid.org/"
|
||||
COPYRIGHT="2004-2018 Ian Ward"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.org/packages/source/u/urwid/urwid-2.0.1.tar.gz"
|
||||
CHECKSUM_SHA256="644d3e3900867161a2fc9287a9762753d66bd194754679adb26aede559bcccbc"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user