Files
haikuports/app-misc/ranger/ranger-1.9.3.recipe
OscarL 6b90e87c90 ranger. update to version 1.9.3 (#8721)
* ranger. update to version 1.9.3

Only build it for the default Python version (3.9 at the moment),
as this is just intended to be used as a command line utility.

* ranger: further recipe/package simplification.
2023-05-24 09:34:36 +02:00

79 lines
1.9 KiB
Bash

SUMMARY="A simple, vim-like file manager"
DESCRIPTION="Ranger is a console file manager that gives you greater \
flexibility and a good overview of your files without having to leave your \
console. It visualizes the directory tree in two dimensions: the directory \
hierarchy on one, lists of files on the other, with a preview to the right so \
you know where you'll be going."
HOMEPAGE="https://ranger.github.io/"
COPYRIGHT="2009-2018 Roman Zimbelmann
2010 David Barnett
2010 Lucas de Vries
2010 Sitaram Chamarty
2011 David Pugnasse
2011 ornicar
2011-2012 Abdó Roig-Maranges
2011-2012 M Rawash
2012 Serge Broslavsky
2012 joe
2013 Emanuel Guevel
2013 Joseph Tannhuber
2013-2014 GermainZ
2014 Célestin Matte
2014 Milan Svoboda
2014 rukai
2015 Alexander Buddenbrock
2015 Delisa Mason
2015 No Suck
2015 Randy Nance
2015 Ryan Burns
2015 anekos
2015 bastorran
2015-2017 nfnty
2015-2018 Wojciech Siewierski
2016-2018 Toon Nolten"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://ranger.github.io/$portVersionedName.tar.gz"
CHECKSUM_SHA256="ce088a04c91c25263a9675dc5c43514b7ec1b38c8ea43d9a9d00923ff6cdd251"
ARCHITECTURES="any"
# It only makes sense to package this one just for the default Python version.
pythonVersion=3.9
pythonPackage=python${pythonVersion//.}
PROVIDES="
$portName = $portVersion
cmd:ranger = $portVersion
cmd:rifle = $portVersion
"
REQUIRES="
haiku
cmd:python$pythonVersion
"
BUILD_REQUIRES="
haiku_devel
setuptools_$pythonPackage
"
BUILD_PREREQUIRES="
cmd:python$pythonVersion
"
INSTALL()
{
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$python setup.py build install --root=/ --prefix=$prefix
install -d -m 755 $docDir $manDir
mv $prefix/share/doc/ranger/* $docDir
mv $prefix/share/man/* $manDir
rm -rf $prefix/share
}