import misc/lfm, from Patrikas Kugrinas, ok landry@

Last File Manager is a powerful file manager for the UNIX console.
It has a curses interface and it's written in Python.

Some of the features you can find in lfm:

    console-based file manager for UNIX platforms
    1-pane or 2-pane view
    tabs
    bookmarks
    history
    vfs for compressed files
    dialogs with entry completion
    PowerCLI, a command line interface with advanced features
    fast access to the shell
    direct integration of find/grep, df and other tools
    color files by extension [Andrey Skvortsov]
    support for different file names encodings
    fast file viewer with text and binary modes
    ...and many others
This commit is contained in:
sthen 2011-07-17 20:23:46 +00:00
parent 426e1e3b61
commit 9e5335b247
7 changed files with 134 additions and 0 deletions

31
misc/lfm/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/07/17 20:23:46 sthen Exp $
COMMENT = powerful curses interface python file manager
MODPY_EGG_VERSION = 2.3
DISTNAME = lfm-${MODPY_EGG_VERSION}
CATEGORIES = misc
HOMEPAGE = http://katxi.org/devel/lfm/
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_PYPI:=l/lfm/}
MAINTAINER = Patrikas Kugrinas <pkugrinas@gmail.com>
MODULES = lang/python
NO_REGRESS = Yes
USE_GROFF = Yes
post-install:
${INSTALL_MAN} ${WRKSRC}/lfm.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/pyview.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

5
misc/lfm/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (lfm-2.3.tar.gz) = ozmTBrvWPddYUeaZP96S+w==
RMD160 (lfm-2.3.tar.gz) = wmFJOGA4upJU1sLrAr0kUBHPG14=
SHA1 (lfm-2.3.tar.gz) = p1HH5xu1o9VELHaWoBNIZYzeWKY=
SHA256 (lfm-2.3.tar.gz) = 6N8YjBfU1nbPQcyun2v4KqDF/zlC1arZhZkK0URslQQ=
SIZE (lfm-2.3.tar.gz) = 119120

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-lfm___init___py,v 1.1.1.1 2011/07/17 20:23:46 sthen Exp $
Change default .rar handler
--- lfm/__init__.py.orig Thu Jul 14 11:45:30 2011
+++ lfm/__init__.py Thu Jul 14 11:46:01 2011
@@ -46,7 +46,7 @@ sysprogs = { 'tar': 'tar',
'gzip': 'gzip',
'zip': 'zip',
'unzip': 'unzip',
- 'rar': 'rar',
+ 'rar': 'unrar',
'7z': '7z',
'xz': 'xz',
'grep': 'grep',

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-lfm_compress_py,v 1.1.1.1 2011/07/17 20:23:46 sthen Exp $
Incompatible GNU tar option
--- lfm/compress.py.orig Thu Jul 14 12:19:36 2011
+++ lfm/compress.py Thu Jul 14 12:19:48 2011
@@ -111,7 +111,7 @@ class PackagerTGZ(PackagerBase):
exts = ('.tar.gz', '.tgz', '.tar.Z')
need_tar = True
uncompress_prog = compress_prog = sysprogs['gzip']
- uncompress_cmd = uncompress_prog + ' -d \"%s\" -c | ' + sysprogs['tar'] + ' xfi -'
+ uncompress_cmd = uncompress_prog + ' -d \"%s\" -c | ' + sysprogs['tar'] + ' xf -'
compress_cmd = sysprogs['tar'] + ' cf - \"%s\" | ' + compress_prog + ' > \"%s\"'
compressXXX_cmd = sysprogs['tar'] + ' cf - %s | ' + compress_prog + ' > \"%s\"'

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2011/07/17 20:23:46 sthen Exp $
Fix manpage path
--- setup.py.orig Thu Jul 14 11:45:34 2011
+++ setup.py Thu Jul 14 11:45:45 2011
@@ -57,7 +57,7 @@ setup(name = 'lfm',
'lfm/config', 'lfm/pyview'],
scripts = ['lfm/lfm', 'lfm/pyview'],
data_files = [('share/doc/lfm', DOC_FILES),
- ('share/man/man1', MAN_FILES)]
+ ('man/man1', MAN_FILES)]
# **addargs
)

19
misc/lfm/pkg/DESCR Normal file
View File

@ -0,0 +1,19 @@
Last File Manager is a powerful file manager for the UNIX console.
It has a curses interface and is written in Python.
Some of the features you can find in lfm:
console-based file manager for UNIX platforms
1-pane or 2-pane view
tabs
bookmarks
history
vfs for compressed files
dialogs with entry completion
PowerCLI, a command line interface with advanced features
fast access to the shell
direct integration of find/grep, df and other tools
color files by extension [Andrey Skvortsov]
support for different file names encodings
fast file viewer with text and binary modes
...and many others

34
misc/lfm/pkg/PLIST Normal file
View File

@ -0,0 +1,34 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/07/17 20:23:46 sthen Exp $
bin/lfm
bin/pyview
lib/python${MODPY_VERSION}/site-packages/lfm/
lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/lfm/__init__.py
lib/python${MODPY_VERSION}/site-packages/lfm/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/actions.py
lib/python${MODPY_VERSION}/site-packages/lfm/actions.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/compress.py
lib/python${MODPY_VERSION}/site-packages/lfm/compress.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/config.py
lib/python${MODPY_VERSION}/site-packages/lfm/config.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/files.py
lib/python${MODPY_VERSION}/site-packages/lfm/files.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/lfm.py
lib/python${MODPY_VERSION}/site-packages/lfm/lfm.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/messages.py
lib/python${MODPY_VERSION}/site-packages/lfm/messages.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/pyview.py
lib/python${MODPY_VERSION}/site-packages/lfm/pyview.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/utils.py
lib/python${MODPY_VERSION}/site-packages/lfm/utils.pyc
lib/python${MODPY_VERSION}/site-packages/lfm/vfs.py
lib/python${MODPY_VERSION}/site-packages/lfm/vfs.pyc
@man man/man1/lfm.1
@man man/man1/pyview.1
share/doc/lfm/
share/doc/lfm/COPYING
share/doc/lfm/ChangeLog
share/doc/lfm/NEWS
share/doc/lfm/README
share/doc/lfm/README.pyview
share/doc/lfm/TODO