mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
72 lines
1.7 KiB
Bash
72 lines
1.7 KiB
Bash
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="2011–2016 Dmitry Shachnev
|
||
2011–2016 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
|
||
}
|