mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
64 lines
1.4 KiB
Bash
64 lines
1.4 KiB
Bash
SUMMARY="Math extension for Python-Markdown"
|
|
DESCRIPTION="This extension adds math formulas support to Python-Markdown."
|
|
HOMEPAGE="https://github.com/mitya57/python-markdown-math/"
|
|
COPYRIGHT="2015-2017 Dmitry Shachnev"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="4"
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/source/p/python-markdown-math/python-markdown-math-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="8564212af679fc18d53f38681f16080fcd3d186073f23825c7ce86fadd3e3635"
|
|
SOURCE_DIR="python-markdown-math-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_VERSIONS=(3.10)
|
|
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
eval "PROVIDES_$pythonPackage=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
\""
|
|
|
|
BUILD_REQUIRES+="
|
|
setuptools_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
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
|
|
}
|