mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
python module updates (#6583)
chardet: update to 4.0.0 imagesize_py: update to 1.3.0 packaging: update to 21.3 pygments: update to 2.11.2 pyparsing: update to 3.0.7 pytz: update to 2021.3 requests: update to 2.27.1 zipp: update to 3.7.0 docutils: update to 0.18.1
This commit is contained in:
61
dev-python/imagesize_py/imagesize_py-1.3.0.recipe
Normal file
61
dev-python/imagesize_py/imagesize_py-1.3.0.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
SUMMARY="Getting image size from png/jpeg/jpeg2000/gif file"
|
||||
DESCRIPTION="This module analyzes JPEG/JPEG 2000/PNG/GIF/TIFF/SVG \
|
||||
image headers and returns image size."
|
||||
HOMEPAGE="https://github.com/shibukawa/imagesize_py"
|
||||
COPYRIGHT="2016-2021 Yoshiki Shibukawa"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/shibukawa/imagesize_py/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="58f441d6201e6090204aa1198d9b71d7c1317b5243d8be983700a1d71bd48682"
|
||||
SOURCE_DIR="imagesize_py-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3 python38 python39)
|
||||
PYTHON_VERSIONS=(3.7 3.8 3.9)
|
||||
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