mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 09:40:05 +02:00
chardet: enable 3.8, 3.9, remove 3.6
This commit is contained in:
@@ -3,7 +3,7 @@ DESCRIPTION="Python module for character encoding auto-detection."
|
||||
HOMEPAGE="https://github.com/chardet/chardet"
|
||||
COPYRIGHT="2011-2017 Mark Pilgrim, Dan Blanchard"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://pypi.io/packages/source/c/chardet/chardet-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
|
||||
|
||||
@@ -20,8 +20,8 @@ BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python python36 python3)
|
||||
PYTHON_VERSIONS=(2.7 3.6 3.7)
|
||||
PYTHON_PACKAGES=(python python3 python38 python39)
|
||||
PYTHON_VERSIONS=(2.7 3.7 3.8 3.9)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
@@ -44,8 +44,11 @@ PROVIDES_python="$PROVIDES_python
|
||||
PROVIDES_python3="$PROVIDES_python3
|
||||
cmd:chardetect3
|
||||
"
|
||||
PROVIDES_python36="$PROVIDES_python36
|
||||
cmd:chardetect3.6
|
||||
PROVIDES_python38="$PROVIDES_python38
|
||||
cmd:chardetect3.8
|
||||
"
|
||||
PROVIDES_python39="$PROVIDES_python39
|
||||
cmd:chardetect3.9
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
@@ -68,9 +71,15 @@ INSTALL()
|
||||
done
|
||||
fi
|
||||
|
||||
if [ $pythonPackage = python36 ]; then
|
||||
if [ $pythonPackage = python38 ]; then
|
||||
for f in $binDir/*; do
|
||||
mv $f ${f}3.6
|
||||
mv $f ${f}3.8
|
||||
done
|
||||
fi
|
||||
|
||||
if [ $pythonPackage = python39 ]; then
|
||||
for f in $binDir/*; do
|
||||
mv $f ${f}3.9
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user