Files
haikuports/app-editors/retext/retext-7.0.1.recipe
2021-02-06 17:44:03 +01:00

70 lines
1.6 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="4"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="c32ccdbcf31094258c792bc0589ff3ff212dea85466d776b7f60fa7b39da4b6c"
PATCHES="retext-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
retext$secondaryArchSuffix = $portVersion
cmd:retext = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
markdown_python38
markups_python38
pyqt5_python38
cmd:python3.8
lib:libxcb$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
pyqt5_python38
setuptools_python38
"
BUILD_PREREQUIRES="
cmd:lrelease$secondaryArchSuffix >= 5
cmd:python3.8
"
TEST_REQUIRES="
markups_python38
python_markdown_math_python38
qthaikuplugins$secondaryArchSuffix
"
BUILD()
{
$portPackageLinksDir/cmd~python3.8/bin/python3.8 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3.8/bin/python3.8
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
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.8 setup.py test
}