1SUMMARY="A simple, vim-like file manager"
2DESCRIPTION="Ranger is a console file manager that gives you greater \
3flexibility and a good overview of your files without having to leave your \
4console. It visualizes the directory tree in two dimensions: the directory \
5hierarchy on one, lists of files on the other, with a preview to the right so \
6you know where you'll be going."
7HOMEPAGE="https://ranger.github.io/"
8COPYRIGHT="2009-2018 Roman Zimbelmann
9	2010 David Barnett
10	2010 Lucas de Vries
11	2010 Sitaram Chamarty
12	2011 David Pugnasse
13	2011 ornicar
14	2011-2012 Abd�� Roig-Maranges
15	2011-2012 M Rawash
16	2012 Serge Broslavsky
17	2012 joe
18	2013 Emanuel Guevel
19	2013 Joseph Tannhuber
20	2013-2014 GermainZ
21	2014 C��lestin Matte
22	2014 Milan Svoboda
23	2014 rukai
24	2015 Alexander Buddenbrock
25	2015 Delisa Mason
26	2015 No Suck
27	2015 Randy Nance
28	2015 Ryan Burns
29	2015 anekos
30	2015 bastorran
31	2015-2017 nfnty
32	2015-2018 Wojciech Siewierski
33	2016-2018 Toon Nolten"
34LICENSE="GNU GPL v3"
35REVISION="1"
36SOURCE_URI="https://ranger.github.io/$portVersionedName.tar.gz"
37CHECKSUM_SHA256="ce088a04c91c25263a9675dc5c43514b7ec1b38c8ea43d9a9d00923ff6cdd251"
38
39ARCHITECTURES="any"
40
41# It only makes sense to package this one just for the default Python version.
42pythonVersion=3.9
43pythonPackage=python${pythonVersion//.}
44
45PROVIDES="
46	$portName = $portVersion
47	cmd:ranger = $portVersion
48	cmd:rifle = $portVersion
49	"
50REQUIRES="
51	haiku
52	cmd:python$pythonVersion
53	"
54
55BUILD_REQUIRES="
56	haiku_devel
57	setuptools_$pythonPackage
58	"
59BUILD_PREREQUIRES="
60	cmd:python$pythonVersion
61	"
62
63INSTALL()
64{
65	python=python$pythonVersion
66	installLocation=$prefix/lib/$python/vendor-packages/
67	export PYTHONPATH=$installLocation:$PYTHONPATH
68
69	mkdir -p $installLocation
70
71	$python setup.py build install --root=/ --prefix=$prefix
72
73	install -d -m 755 $docDir $manDir
74
75	mv $prefix/share/doc/ranger/* $docDir
76	mv $prefix/share/man/* $manDir
77	rm -rf $prefix/share
78}
79