pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-ranger: Add some options to be able to preview files



Module Name:	pkgsrc-wip
Committed By:	nahra <nahra%unseen.is@localhost>
Pushed By:	nahra
Date:		Tue Jan 3 23:09:14 2017 +0000
Changeset:	ffa0af1c2ffec59157520f29b4ec2d937a36e476

Modified Files:
	py-ranger/DESCR
	py-ranger/Makefile
	py-ranger/TODO
Added Files:
	py-ranger/options.mk

Log Message:
py-ranger: Add some options to be able to preview files

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ffa0af1c2ffec59157520f29b4ec2d937a36e476

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-ranger/DESCR      |   5 ++-
 py-ranger/Makefile   |  26 +++++++----
 py-ranger/TODO       |   4 +-
 py-ranger/options.mk | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 146 insertions(+), 12 deletions(-)

diffs:
diff --git a/py-ranger/DESCR b/py-ranger/DESCR
index 7f33539..888bc31 100644
--- a/py-ranger/DESCR
+++ b/py-ranger/DESCR
@@ -1 +1,4 @@
-VIM-inspiredfilemanager forthe console.
+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.
diff --git a/py-ranger/Makefile b/py-ranger/Makefile
index 48cd821..d18da17 100644
--- a/py-ranger/Makefile
+++ b/py-ranger/Makefile
@@ -6,7 +6,7 @@ CATEGORIES=	sysutils
 MASTER_SITES=	http://ranger.nongnu.org/
 
 MAINTAINER=	nahra%unseen.is@localhost
-HOMEPAGE=	http://ranger.nongnu.org/
+HOMEPAGE=	http://ranger.github.io/
 COMMENT=	VIM-inspired filemanager for the console
 LICENSE=	gnu-gpl-v3
 
@@ -16,15 +16,21 @@ BUILD_TARGET=	compile
 
 CHECK_PORTABILITY_SKIP+=	examples/rifle_sxiv.sh
 
-SUBST_CLASSES+=		install
-SUBST_STAGE.install=	pre-install
-SUBST_MESSAGE.install=	Fixing installation path.
-SUBST_FILES.install=	${WRKSRC}/setup.py
-SUBST_SED.install=	-e 's,share/man,man,g'
+SUBST_CLASSES+=			install
+SUBST_STAGE.install=		pre-install
+SUBST_MESSAGE.install=		Fixing installation path
+SUBST_FILES.install=		${WRKSRC}/setup.py
+SUBST_SED.install=		-e 's,share/man,man,g'
+
+SUBST_CLASSES+=			fix-gfmt
+SUBST_STAGE.fix-gfmt=		post-patch
+SUBST_MESSAGE.fix-gfmt=		Fixing fmt's binary name
+SUBST_FILES.fix-gfmt=		${WRKSRC}/doc/config/scope.sh
+SUBST_SED.fix-gfmt=		-e 's,fmt,gfmt,g'
 
 SUBST_CLASSES+=			fix-paths
 SUBST_STAGE.fix-paths=		pre-configure
-SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
+SUBST_MESSAGE.fix-paths=	Fixing absolute paths
 SUBST_FILES.fix-paths=		${WRKSRC}/doc/ranger.1
 SUBST_SED.fix-paths=		-e 's,/usr/share,${PREFIX}/share,g'
 SUBST_SED.fix-paths+=		-e 's,/usr/lib,${PREFIX}/libexec,g'
@@ -33,7 +39,9 @@ REPLACE_PYTHON+=	*/*.py	*/*/*.py	*/*/*.py
 
 USE_LANGUAGES=	# none
 
+PKG_OPTIONS.libcaca+=	imlib2
+
+.include	"options.mk"
 .include	"../../lang/python/distutils.mk"
 .include	"../../lang/python/application.mk"
-
-.include "../../mk/bsd.pkg.mk"
+.include	"../../mk/bsd.pkg.mk"
diff --git a/py-ranger/TODO b/py-ranger/TODO
index 9cc6b78..5de71c6 100644
--- a/py-ranger/TODO
+++ b/py-ranger/TODO
@@ -1,6 +1,6 @@
 Add optional features:
 
-" The "file" program for determining file types
+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
@@ -13,5 +13,5 @@ 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)"
+odt2txt for OpenDocument text files (odt, ods, odp and sxw)
 
diff --git a/py-ranger/options.mk b/py-ranger/options.mk
new file mode 100644
index 0000000..0430771
--- /dev/null
+++ b/py-ranger/options.mk
@@ -0,0 +1,123 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.py-ranger
+
+PKG_SUPPORTED_OPTIONS+=	caca
+PKG_SUPPORTED_OPTIONS+=	py-chardet
+PKG_SUPPORTED_OPTIONS+=	w3m
+PKG_SUPPORTED_OPTIONS+=	elinks
+PKG_SUPPORTED_OPTIONS+=	lynx
+PKG_SUPPORTED_OPTIONS+=	sudo
+PKG_SUPPORTED_OPTIONS+=	highlight
+PKG_SUPPORTED_OPTIONS+=	atool
+PKG_SUPPORTED_OPTIONS+=	bsdtar
+PKG_SUPPORTED_OPTIONS+=	unrar
+PKG_SUPPORTED_OPTIONS+=	mediainfo
+PKG_SUPPORTED_OPTIONS+=	exiftool
+PKG_SUPPORTED_OPTIONS+=	poppler
+PKG_SUPPORTED_OPTIONS+=	odt2txt
+
+PLIST_VARS+=	${PKG_SUPPORTED_OPTIONS}
+
+DEPENDS+=	coreutils-[0-9]*:../../sysutils/coreutils
+
+.include "../../mk/bsd.options.mk"
+
+###
+### libcaca support.
+###
+.if !empty(PKG_OPTIONS:Mcaca)
+.include "../../graphics/libcaca/buildlink3.mk"
+.include "../../mk/pkg-build-options.mk"                                                                                                                                                                                                                                                                                       .if !empty(PKG_BUILD_OPTIONS.libcaca:Mimlib2)                                                                                                                                                                                                                                                                                  CONFIGURE_ARGS+=        --enable-imlib2                                                                                                                                                                                                                                                                                        .endif
+.endif
+
+###
+### py-chardet support.
+###
+.if !empty(PKG_OPTIONS:Mpy-chardet)
+DEPENDS+=	${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
+.endif
+
+###
+### w3m support.
+###
+.if !empty(PKG_OPTIONS:Mw3m)
+DEPENDS+=	w3m-img-[0-9]*:../../www/w3m-img
+.endif
+
+###
+### pdf2txt support.
+###
+.if !empty(PKG_OPTIONS:Mpoppler)
+DEPENDS+=	poppler-utils-[0-9]*:../../print/poppler-utils
+.endif
+
+###
+### sudo support.
+###
+.if !empty(PKG_OPTIONS:Msudo)
+DEPENDS+=	sudo-[0-9]*:../../security/sudo
+.endif
+
+###
+### lynxam support.
+###
+.if !empty(PKG_OPTIONS:Mlynx)
+DEPENDS+=	lynx-[0-9]*:../../www/lynx
+.endif
+
+###
+### mediainfo support.
+###
+.if !empty(PKG_OPTIONS:Mmediainfo)
+DEPENDS+=	mediainfo-[0-9]*:../../multimedia/mediainfo
+.endif
+
+###
+### highlight support.
+###
+.if !empty(PKG_OPTIONS:Mhighlight)
+DEPENDS+=	highlight-[0-9]*:../../textproc/highlight
+.endif
+
+###
+### atool support.
+###
+.if !empty(PKG_OPTIONS:Matool)
+DEPENDS+=	atool-[0-9]*:../../wip/atool
+.endif
+
+###
+### bsdtar support.
+###
+.if !empty(PKG_OPTIONS:Mbsdtar)
+DEPENDS+=	bsdtar-[0-9]*:../../archivers/bsdtar
+.endif
+
+###
+### unrar support.
+###
+.if !empty(PKG_OPTIONS:Munrar)
+DEPENDS+=	unrar-[0-9]*:../../archivers/unrar
+.endif
+
+###
+### elinks support.
+###
+.if !empty(PKG_OPTIONS:Melinks)
+DEPENDS+=	elinks-[0-9]*:../../www/elinks
+.endif
+
+###
+### exiftool support.
+###
+.if !empty(PKG_OPTIONS:Mexiftool)
+DEPENDS+=	p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool
+.endif
+
+###
+### odt2txt support.
+###
+.if !empty(PKG_OPTIONS:Modt2txt)
+DEPENDS+=	odt2txt-[0-9]*:../../converters/odt2txt
+.endif


Home | Main Index | Thread Index | Old Index