mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
tzlocal: remove broken, unused recipe. (#9462)
Use `pip install` if you need tzlocal for your code. Be aware that it will still have limited usefulness, until our Python packages get fixed to correctly use `--with-tzpath=` during configure, and to require the `timezone_data` package.
This commit is contained in:
@@ -1,105 +0,0 @@
|
||||
SUMMARY="A module returning a \"tzinfo\" object for the local timezone"
|
||||
DESCRIPTION="tzlocal is a Python module which returns a \"tzinfo\" object with \
|
||||
the local timezone information."
|
||||
HOMEPAGE="https://github.com/regebro/tzlocal
|
||||
https://pypi.org/project/tzlocal/"
|
||||
COPYRIGHT="2011-2017 Lennart Regebro"
|
||||
LICENSE="MIT"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/regebro/tzlocal/archive/$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="tzlocal-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="72ed8518bfa3506f7fed7f7205f468f70eaa4622b52c82d27fd9b8fb2d817631"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
tzlocal = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39)
|
||||
PYTHON_VERSIONS=(3.9)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
|
||||
BUILD_REQUIRES+="
|
||||
pytz_$pythonPackage
|
||||
"
|
||||
|
||||
TEST_REQUIRES+="
|
||||
funcsigs_$pythonPackage
|
||||
mock_$pythonPackage
|
||||
pbr_$pythonPackage
|
||||
six_$pythonPackage
|
||||
"
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
BUILD()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
rm -rf "$sourceDir"-$pythonPackage
|
||||
cp -a "$sourceDir" "$sourceDir"-$pythonPackage
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
$python setup.py build
|
||||
done
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation
|
||||
mkdir -p "$installLocation"
|
||||
$python setup.py install \
|
||||
--root=/ --prefix="$prefix"
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
"$prefix"/lib/$python
|
||||
done
|
||||
|
||||
install -m 755 -d "$docDir"
|
||||
install -m 644 -t "$docDir" README.rst
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
$python setup.py test
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user