Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From 654e3116825c4d12340613196279fb13a5662113 Mon Sep 17 00:00:00 2001
|
||||
From: Thijs Vermeir <thijsvermeir@gmail.com>
|
||||
Date: Tue, 20 Oct 2015 18:13:36 +0200
|
||||
Subject: [PATCH] colorscheme: check for compiled python files
|
||||
|
||||
Some systems only provide *.pyc files
|
||||
|
||||
Patch accepted upstream:
|
||||
https://github.com/hut/ranger/commit/d69f1ed3207c785d1a39ddd2992f6abb021b7540
|
||||
|
||||
Signed-off-by: Thijs Vermeir <thijsvermeir@gmail.com>
|
||||
---
|
||||
ranger/gui/colorscheme.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
|
||||
index d6afcac..d2b3b2d 100644
|
||||
--- a/ranger/gui/colorscheme.py
|
||||
+++ b/ranger/gui/colorscheme.py
|
||||
@@ -86,7 +86,7 @@ def _colorscheme_name_to_class(signal):
|
||||
usecustom = not ranger.arg.clean
|
||||
|
||||
def exists(colorscheme):
|
||||
- return os.path.exists(colorscheme + '.py')
|
||||
+ return os.path.exists(colorscheme + '.py') or os.path.exists(colorscheme + '.pyc')
|
||||
|
||||
def is_scheme(x):
|
||||
try:
|
||||
--
|
||||
2.6.1
|
||||
|
||||
21
deprecated/firmware/buildroot/package/ranger/Config.in
Normal file
21
deprecated/firmware/buildroot/package/ranger/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_RANGER
|
||||
bool "ranger"
|
||||
depends on BR2_USE_MMU # python3
|
||||
depends on BR2_USE_WCHAR # python3
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # python3
|
||||
depends on !BR2_STATIC_LIBS # python3
|
||||
select BR2_PACKAGE_PYTHON3 if !BR2_PACKAGE_PYTHON
|
||||
select BR2_PACKAGE_PYTHON_CURSES if BR2_PACKAGE_PYTHON
|
||||
select BR2_PACKAGE_PYTHON3_CURSES if BR2_PACKAGE_PYTHON3
|
||||
help
|
||||
ranger is a console file manager with VI key bindings. It
|
||||
provides a minimalistic and nice curses interface with a
|
||||
view on the directory hierarchy. It ships with "rifle", a
|
||||
file launcher that is good at automatically finding out
|
||||
which program to use for what file type.
|
||||
|
||||
http://ranger.nongnu.org
|
||||
|
||||
comment "ranger needs a toolchain w/ wchar, threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
2
deprecated/firmware/buildroot/package/ranger/ranger.hash
Normal file
2
deprecated/firmware/buildroot/package/ranger/ranger.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 94f6e342daee4445f15db5a7440a11138487c49cc25da0c473bbf1b8978f5b79 ranger-1.7.2.tar.gz
|
||||
26
deprecated/firmware/buildroot/package/ranger/ranger.mk
Normal file
26
deprecated/firmware/buildroot/package/ranger/ranger.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# ranger
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RANGER_VERSION = 1.7.2
|
||||
RANGER_SITE = http://ranger.nongnu.org
|
||||
RANGER_SETUP_TYPE = distutils
|
||||
RANGER_LICENSE = GPLv3
|
||||
RANGER_LICENSE_FILES = AUTHORS
|
||||
|
||||
# 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)/scripts/ranger
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_PYC_ONLY)$(BR2_PACKAGE_PYTHON_PYC_ONLY),y)
|
||||
RANGER_POST_PATCH_HOOKS += RANGER_DO_NOT_GENERATE_BYTECODE_AT_RUNTIME
|
||||
endif
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user