SUBST_CLASSES+= install
SUBST_STAGE.install= pre-install
-SUBST_MESSAGE.install= correcting installation path
+SUBST_MESSAGE.install= Fixing installation path.
SUBST_FILES.install= ${WRKSRC}/setup.py
SUBST_SED.install= -e 's,share/man,man,g'
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= pre-configure
+SUBST_MESSAGE.fix-paths= Fixing absolute paths.
+SUBST_FILES.fix-paths= ${WRKSRC}/doc/ranger.1
+SUBST_SED.fix-paths= -e 's,/usr/share,/usr/pkg/share,g'
+SUBST_SED.fix-paths+= -e 's,/usr/lib,/usr/pkg/libexec,g'
+
REPLACE_PYTHON+= .py */*.py */*/*.py */*/*.py
USE_LANGUAGES= # none
.include "../../lang/python/distutils.mk"
.include "../../lang/python/application.mk"
-USE_LANGUAGES= # none
-
.include "../../mk/bsd.pkg.mk"
--- /dev/null
+Add optional features:
+
+" The "file" program for determining file types
+The python module "chardet", in case of encoding detection problems
+"sudo" to use the "run as root"-feature
+w3m for the "w3mimgdisplay" program to preview images
+Optional, for enhanced file previews (with "scope.sh"):
+
+img2txt (from caca-utils) for ASCII-art image previews
+highlight or pygmentize for syntax highlighting of code
+atool, acat, bsdtar and/or unrar for previews of archives
+lynx, w3m or elinks for previews of html pages
+pdftotext for pdf previews
+transmission-show for viewing bit-torrent information
+mediainfo or exiftool for viewing information about media files
+odt2txt for OpenDocument text files (odt, ods, odp and sxw)"
+