mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
docutils, bump version (#8762)
This commit is contained in:
121
dev-python/docutils/docutils-0.20.1.recipe
Normal file
121
dev-python/docutils/docutils-0.20.1.recipe
Normal file
@@ -0,0 +1,121 @@
|
||||
SUMMARY="An open-source text processing system"
|
||||
DESCRIPTION="Docutils is an open-source text processing system for processing \
|
||||
plaintext documentation into useful formats, such as HTML, LaTeX, man-pages, \
|
||||
open-document or XML. It includes reStructuredText, the easy to read, easy to \
|
||||
use, what-you-see-is-what-you-get plaintext markup language."
|
||||
HOMEPAGE="http://docutils.sourceforge.net/"
|
||||
COPYRIGHT="Günter Milde
|
||||
John Gruber
|
||||
Alex Fernández"
|
||||
LICENSE="Public Domain
|
||||
BSD (2-clause)
|
||||
GNU GPL v3
|
||||
Python"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.io/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python38 python39 python310)
|
||||
PYTHON_VERSIONS=(3.8 3.9 3.10)
|
||||
defaultVersion=3.9
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
commandSuffix=${commandSuffixes[$i]}
|
||||
|
||||
eval "PROVIDES_${pythonPackage}=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
cmd:docutils_$pythonVersion.py = $portVersion
|
||||
cmd:rst2html_$pythonVersion.py = $portVersion
|
||||
cmd:rst2html4_$pythonVersion.py = $portVersion
|
||||
cmd:rst2html5_$pythonVersion.py = $portVersion
|
||||
cmd:rst2latex_$pythonVersion.py = $portVersion
|
||||
cmd:rst2man_$pythonVersion.py = $portVersion
|
||||
cmd:rst2newlatex_$pythonVersion.py = $portVersion
|
||||
cmd:rst2odt_prepstyles_$pythonVersion.py = $portVersion
|
||||
cmd:rst2odt_$pythonVersion.py = $portVersion
|
||||
cmd:rst2pseudoxml_$pythonVersion.py = $portVersion
|
||||
cmd:rst2s5_$pythonVersion.py = $portVersion
|
||||
cmd:rst2xetex_$pythonVersion.py = $portVersion
|
||||
cmd:rst2xml_$pythonVersion.py = $portVersion
|
||||
cmd:rstpep2html_$pythonVersion.py = $portVersion
|
||||
\""
|
||||
|
||||
if [ $pythonVersion = $defaultVersion ]; then
|
||||
eval "PROVIDES_${pythonPackage}+=\"
|
||||
cmd:docutils = $portVersion
|
||||
cmd:rst2html = $portVersion
|
||||
cmd:rst2html4 = $portVersion
|
||||
cmd:rst2html5 = $portVersion
|
||||
cmd:rst2latex = $portVersion
|
||||
cmd:rst2man = $portVersion
|
||||
cmd:rst2newlatex = $portVersion
|
||||
cmd:rst2odt_prepstyles = $portVersion
|
||||
cmd:rst2odt = $portVersion
|
||||
cmd:rst2pseudoxml = $portVersion
|
||||
cmd:rst2s5 = $portVersion
|
||||
cmd:rst2xetex = $portVersion
|
||||
cmd:rst2xml = $portVersion
|
||||
cmd:rstpep2html = $portVersion
|
||||
\""
|
||||
fi
|
||||
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
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
|
||||
|
||||
# Version suffix all the scripts
|
||||
for f in $binDir/*; do
|
||||
mv $f ${f%.py}-${pythonVersion}.py
|
||||
done
|
||||
|
||||
# And provide suffix-less symlinks for the default version
|
||||
if [ $pythonVersion = $defaultVersion ]; then
|
||||
for f in $binDir/*; do
|
||||
ln -sr $f ${f%-$pythonVersion.py}
|
||||
done
|
||||
fi
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$binDir
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user