mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
69 lines
1.5 KiB
Bash
69 lines
1.5 KiB
Bash
SUMMARY="A wrapper around various text markups"
|
|
DESCRIPTION="Markups provides a wrapper around various text markup languages.
|
|
Available by default are Markdown, reStructuredText and Textile, but you can \
|
|
easily add your own markups.
|
|
"
|
|
HOMEPAGE="http://python-requests.org/
|
|
http://pypi.python.org/pypi/markups"
|
|
COPYRIGHT="2012-2015 Dmitry Shachnev"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="5"
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/source/M/Markups/Markups-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ab9747a72c1c6457418eb4276c79871977c13a654618e4f12e2a1f0990fbf2fc"
|
|
SOURCE_DIR="Markups-$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
|
|
python_markdown_math_$pythonPackage
|
|
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
|
|
}
|