pkgsrc-WIP-changes archive

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

Import z.lua-ab8277f0 as wip/zlua



Module Name:	pkgsrc-wip
Committed By:	Dean Matzkov <bapabooiee%gmail.com@localhost>
Pushed By:	bapa
Date:		Sat Feb 2 14:17:04 2019 -0700
Changeset:	4553ed6b54f98c317446f32c150e2f55b2c2e71c

Modified Files:
	Makefile
Added Files:
	zlua/DESCR
	zlua/Makefile
	zlua/PLIST
	zlua/TODO
	zlua/distinfo

Log Message:
Import z.lua-ab8277f0 as wip/zlua

z.lua is a tool that helps you navigate your filesystem more quickly
by learning your habits. It's similar to tools like shells/autojump,
but is much lighter on resources and is more suitable for low-end
systems.

Homepage: https://github.com/skywind3000/z.lua

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

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

diffstat:
 Makefile      |  1 +
 zlua/DESCR    | 19 +++++++++++++++++++
 zlua/Makefile | 37 +++++++++++++++++++++++++++++++++++++
 zlua/PLIST    |  6 ++++++
 zlua/TODO     | 11 +++++++++++
 zlua/distinfo |  6 ++++++
 6 files changed, 80 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 728b4c7b90..64a37e01f3 100644
--- a/Makefile
+++ b/Makefile
@@ -4896,6 +4896,7 @@ SUBDIR+=	zinf
 SUBDIR+=	zip-devel
 SUBDIR+=	ziparchive
 SUBDIR+=	zipios
+SUBDIR+=	zlua
 SUBDIR+=	zmap
 SUBDIR+=	zvbi
 
diff --git a/zlua/DESCR b/zlua/DESCR
new file mode 100644
index 0000000000..ffeeef3581
--- /dev/null
+++ b/zlua/DESCR
@@ -0,0 +1,19 @@
+z.lua is a faster way to navigate your filesystem. It tracks your most used
+directories, based on 'frecency'. After a short learning phase, z will take
+you to the most 'frecent' directory that matches ALL of the regexes given
+on the command line, in order.
+
+For example, z foo bar would match /foo/bar but not /bar/foo.
+
+Features:
+
+- 10x times faster than fasd and autojump
+- 3x times faster than z.sh
+- Available for posix shells: bash, zsh, dash, sh, ash, busybox and etc.
+- Supports Windows cmd (with clink) and cmder
+- Supports fish shell (2.4.0 +)
+- Self contained, no dependence on awk/gawk
+- Compatible with lua 5.1, 5.2 and 5.3+
+- New "$_ZL_ADD_ONCE" to allow updating database only if $PWD changed.
+- Enhanced matching mode with "$_ZL_MATCH_MODE" set to 1.
+- Interactive selection enables you to choose where to go before cd.
diff --git a/zlua/Makefile b/zlua/Makefile
new file mode 100644
index 0000000000..6cd2148aa5
--- /dev/null
+++ b/zlua/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+PKGNAME=	zlua-0.0.1
+DISTNAME=	z.lua-${PKGVERSION_NOREV}
+CATEGORIES=		shells
+MASTER_SITES=	${MASTER_SITE_GITHUB:=skywind3000/}
+GITHUB_PROJECT=	z.lua
+GITHUB_TAG=	ab8277f0cd1a0e6c3ef5dc306dec3f8f6718b664
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/skywind3000/z.lua
+COMMENT=	Tool which helps you navigate faster by learning your habits
+LICENSE=	mit
+
+# Upstream has no releases, so we don't use ${DISTNAME} here.
+WRKSRC=	${WRKDIR}/z.lua-${GITHUB_TAG}
+
+INSTALLATION_DIRS+=		bin
+INSTALLATION_DIRS+=		share/${PKGBASE}
+INSTALLATION_DIRS+=		share/doc/${PKGBASE}
+
+
+do-build:
+	# do nothing
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/z.lua ${DESTDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/z.lua.plugin.zsh ${DESTDIR}${PREFIX}/share/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/README.cn.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+	# z.cmd is a Batch/.bat script for Windows users. Not terribly useful for Unix-ey users, so into share/ it goes.
+	${INSTALL_DATA} ${WRKSRC}/z.cmd ${DESTDIR}${PREFIX}/share/${PKGBASE}
+
+.include "../../lang/lua/application.mk"
+#.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/zlua/PLIST b/zlua/PLIST
new file mode 100644
index 0000000000..6dcbd71947
--- /dev/null
+++ b/zlua/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/z.lua
+share/doc/zlua/README.cn.md
+share/doc/zlua/README.md
+share/zlua/z.cmd
+share/zlua/z.lua.plugin.zsh
diff --git a/zlua/TODO b/zlua/TODO
new file mode 100644
index 0000000000..2d3669fefa
--- /dev/null
+++ b/zlua/TODO
@@ -0,0 +1,11 @@
+- The package's real name is "z.lua", not "zlua".
+
+  Using this name for now, until we can evaluate
+  whether such a name will play nice with pkgsrc.
+
+- Upstream has no releases, so the version of 0.0.1 was
+  made up.
+
+- Figure out a better places to install z.lua.plugin.zsh
+  for zsh users.
+
diff --git a/zlua/distinfo b/zlua/distinfo
new file mode 100644
index 0000000000..3a0adf3d47
--- /dev/null
+++ b/zlua/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (z.lua-0.0.1-ab8277f0cd1a0e6c3ef5dc306dec3f8f6718b664.tar.gz) = b172f1c7b38ac0dbe56fd7b1558e899585d98191
+RMD160 (z.lua-0.0.1-ab8277f0cd1a0e6c3ef5dc306dec3f8f6718b664.tar.gz) = cacae14182d16d0e675e2467b4b74986b633eb8b
+SHA512 (z.lua-0.0.1-ab8277f0cd1a0e6c3ef5dc306dec3f8f6718b664.tar.gz) = a611087a606de3af4167e18c9ab09fa047339eac3892bad23eff419ef6985005771f8d0b4f95624ca34f43d42b9ef1795bed9eef6261189cc1ffd2b8230f9e80
+Size (z.lua-0.0.1-ab8277f0cd1a0e6c3ef5dc306dec3f8f6718b664.tar.gz) = 52754 bytes


Home | Main Index | Thread Index | Old Index