Files
haikuports/app-editors/retext/retext-7.0.0.recipe
Jerome Duval 282a03c8e8 dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-17 10:08:41 +02:00

57 lines
1.4 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="7df3fcdad1d1f9a046ae33591b54dd7a6894de64eb0370f2dabf4cd75eb66586"
PATCHES="retext-$portVersion.patchset"
ARCHITECTURES="any"
PROVIDES="
retext$secondaryArchSuffix = $portVersion
cmd:retext$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:python3
markdown_python3
markups_python3
pyqt_python3
lib:libxcb$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
pyqt_python3 >= 5
setuptools_python3
"
BUILD_PREREQUIRES="
cmd:python3
"
BUILD()
{
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3/bin/python3
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
}