kumquat-buildroot/package/ranger/ranger.mk
Fabrice Fontaine c4c555bd57 package/ranger: bump to version 1.9.3
- Switch to github to get latest release
- Drop patch (already in version)
- Update RANGER_DO_NOT_GENERATE_BYTECODE_AT_RUNTIME as scripts/ranger
  symlink to ranger.py has been removed
- Update hash of AUTHORS and add LICENSE file:
  8263cbac88

https://github.com/ranger/ranger/blob/v1.9.3/CHANGELOG.md

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-11-06 20:39:19 +01:00

27 lines
864 B
Makefile

################################################################################
#
# ranger
#
################################################################################
RANGER_VERSION = 1.9.3
RANGER_SITE = https://ranger.github.io
RANGER_SETUP_TYPE = setuptools
RANGER_LICENSE = GPL-3.0
RANGER_LICENSE_FILES = AUTHORS LICENSE
# The ranger script request python to be called with -O (optimize generated
# bytecode slightly; also PYTHONOPTIMIZE=x). This implicitly requires the python
# source files to be present. Therefore, the -O flag is removed when only the .pyc
# files are installed.
define RANGER_DO_NOT_GENERATE_BYTECODE_AT_RUNTIME
$(SED) 's%/usr/bin/python -O%/usr/bin/python%g' $(@D)/ranger.py
endef
ifeq ($(BR2_PACKAGE_PYTHON3_PYC_ONLY),y)
RANGER_POST_PATCH_HOOKS += RANGER_DO_NOT_GENERATE_BYTECODE_AT_RUNTIME
endif
$(eval $(python-package))