pypandoc: drop outdated, unused, and disabled recipe. (#11940)

Originally added as dep of gertty, but never actually used by it, AFAICT.

We don't have `cmd:pandoc` (requires haskell), so no point in having this
anyway.
This commit is contained in:
OscarL
2025-03-13 02:25:04 -03:00
committed by GitHub
parent 668a0cf78f
commit 44b38628da

View File

@@ -1,65 +0,0 @@
SUMMARY="Thin wrapper for pandoc"
DESCRIPTION="thin wrapper for pandoc, a universal document converter"
HOMEPAGE="https://pypi.org/project/pypandoc/"
COPYRIGHT="2011-2017 Juho Vepsäläinen"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/p/pypandoc/pypandoc-$portVersion.tar.gz"
CHECKSUM_SHA256="7f6d68db0e57e0f6961bec2190897118c4d305fc2d31c22cd16037f22ee084a5"
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
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
pip_$pythonPackage
setuptools_$pythonPackage
"
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
}