Files
haikuports/app-editors/retext/retext-8.0.2.recipe
Jérôme Duval fdfc876581 retext: bump version
switch to pyqt6
2024-12-09 21:07:57 +01:00

72 lines
1.7 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="Simple but powerful editor for Markdown and reStructuredText"
DESCRIPTION="ReText is a simple but powerful editor for Markdown and \
reStructuredText markup languages."
HOMEPAGE="https://github.com/retext-project/retext"
COPYRIGHT="20112016 Dmitry Shachnev
20112016 Maurice van der Pot"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="e40a1243767a9455870a86920f8ba4f35dff90d08bfe43da038a617136328d2b"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
retext$secondaryArchSuffix = $portVersion
cmd:retext = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
chardet_python310
docutils_python310
markdown_python310
markups_python310
pygments_python310
pyqt6_python310
cmd:python3.10
lib:libxcb$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
pyqt6_python310
setuptools_python310
"
BUILD_PREREQUIRES="
qt6_tools$secondaryArchSuffix >= 6 # for lrelease
cmd:python3.10
"
TEST_REQUIRES="
markups_python310
python_markdown_math_python310
qthaikuplugins$secondaryArchSuffix
"
BUILD()
{
$portPackageLinksDir/cmd~python3.10/bin/python3.10 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3.10/bin/python3.10
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c4)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$python setup.py install \
--root=/ --prefix=$prefix
mkdir -p $(dirname $dataDir)
mv $prefix/share $dataDir
}
TEST()
{
python3.10 setup.py test
}