1SUMMARY="Python-powered, cross-platform, Unix-gazing shell"
2DESCRIPTION="xonsh is a Python-powered, cross-platform, Unix-gazing shell \
3language and command prompt.
4
5The language is a superset of Python 3.6+ with additional shell primitives. xonsh \
6(pronounced conch) is meant for the daily use of experts and novices alike."
7HOMEPAGE="https://xon.sh/"
8COPYRIGHT="2015-2023 the xonsh developers"
9LICENSE="BSD (2-clause)"
10REVISION="1"
11SOURCE_URI="https://github.com/xonsh/xonsh/archive/$portVersion.tar.gz"
12CHECKSUM_SHA256="de132cef00df4c7c0d1071dc26538cd266c6110c2b721fa02b933629a3bc9caa"
13PATCHES="xonsh-$portVersion.patchset"
14
15ARCHITECTURES="any"
16
17# Ideally should match Haiku's default Python version.
18pythonVersion=3.10
19pythonPackage=python${pythonVersion//.}
20
21PROVIDES="
22	$portName = $portVersion
23	cmd:xonsh
24	cmd:xonsh_cat
25	cmd:xonsh_uname
26	cmd:xonsh_uptime
27	"
28REQUIRES="
29	haiku
30	prompt_toolkit_$pythonPackage
31	pygments_$pythonPackage
32	cmd:col
33	cmd:python$pythonVersion
34	"
35
36REPLACES="
37	xonsh_python310
38	"
39
40BUILD_REQUIRES="
41	build_$pythonPackage
42	installer_$pythonPackage
43	setuptools_$pythonPackage
44	wheel_$pythonPackage
45	"
46BUILD_PREREQUIRES="
47	cmd:python$pythonVersion
48	"
49
50INSTALL()
51{
52	python=python$pythonVersion
53
54	$python -m build --wheel --skip-dependency-check --no-isolation
55	$python -m installer -p $prefix dist/*.whl
56}
57