mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
polib: drop outdated and unused recipe. (#11939)
Not required on-tree since e777491cec.
Users should try to `pip install` this, if they need it.
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
SUMMARY="A library to manipulate"
|
||||
DESCRIPTION="polib is a library to manipulate, create, modify gettext files \
|
||||
(pot, po and mo files). You can load existing files, iterate through it's \
|
||||
entries, add, modify entries, comments or metadata, etc... or create new po \
|
||||
files from scratch."
|
||||
HOMEPAGE="https://pypi.org/project/polib/"
|
||||
COPYRIGHT="2006-2015 David Jean Louis."
|
||||
LICENSE="MIT"
|
||||
REVISION="5"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/p/polib/polib-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="fad87d13696127ffb27ea0882d6182f1a9cf8a5e2b37a587751166c51e5a332a"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\n\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\n\
|
||||
setuptools_$pythonPackage\n\
|
||||
\""
|
||||
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
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
python3 tests/tests.py
|
||||
}
|
||||
Reference in New Issue
Block a user