summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorwiz <wiz>2015-02-08 17:31:49 +0000
committerwiz <wiz>2015-02-08 17:31:49 +0000
commitc546f4d0892e8365cdc326a1e7d6dcc5449c4f19 (patch)
tree91dcdd8d87aac547225eba1cf40d5104078e84f2 /shells
parente1b263fd0e3fb65135bae06fc38b70580518d366 (diff)
downloadpkgsrc-c546f4d0892e8365cdc326a1e7d6dcc5449c4f19.tar.gz
Import autojump-22.2.4 as shells/autojump.
autojump is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line. Directories must be visited first before they can be jumped to.
Diffstat (limited to 'shells')
-rw-r--r--shells/autojump/DESCR5
-rw-r--r--shells/autojump/Makefile29
-rw-r--r--shells/autojump/PLIST12
-rw-r--r--shells/autojump/distinfo6
-rw-r--r--shells/autojump/patches/patch-install.py22
5 files changed, 74 insertions, 0 deletions
diff --git a/shells/autojump/DESCR b/shells/autojump/DESCR
new file mode 100644
index 00000000000..d16d326bc5d
--- /dev/null
+++ b/shells/autojump/DESCR
@@ -0,0 +1,5 @@
+autojump is a faster way to navigate your filesystem. It works by
+maintaining a database of the directories you use the most from
+the command line.
+
+Directories must be visited first before they can be jumped to.
diff --git a/shells/autojump/Makefile b/shells/autojump/Makefile
new file mode 100644
index 00000000000..e830d4ab88e
--- /dev/null
+++ b/shells/autojump/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2015/02/08 17:31:49 wiz Exp $
+
+VERSION= 22.2.4
+DISTNAME= autojump-${VERSION}
+CATEGORIES= shells
+MASTER_SITES= -https://github.com/joelthelion/autojump/archive/release-v${VERSION}${EXTRACT_SUFX}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/joelthelion/autojump/
+COMMENT= Change directory command that learns to easily navigate directories
+LICENSE= gnu-gpl-v3
+
+WRKSRC= ${WRKDIR}/autojump-release-v${VERSION}
+
+INSTALLATION_DIRS+= bin share/autojump ${PKGMANDIR}/man1
+
+do-build:
+ # nothing
+
+# the install.py script is not friendly to destdir installation as non-root
+# cd ${WRKSRC} && ${ENV} SHELL=${BASH} ${PYTHONBIN} install.py -fs -p ${PREFIX} -d ${DESTDIR}
+do-install:
+ cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} autojump autojump_argparse.py autojump_data.py autojump_utils.py ${DESTDIR}${PREFIX}/bin
+ cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} icon.png ${DESTDIR}${PREFIX}/share/autojump
+ cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} autojump*sh ${DESTDIR}${PREFIX}/share/autojump
+ cd ${WRKSRC}/docs && ${INSTALL_SCRIPT} autojump.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/shells/autojump/PLIST b/shells/autojump/PLIST
new file mode 100644
index 00000000000..47bff4540f6
--- /dev/null
+++ b/shells/autojump/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2015/02/08 17:31:49 wiz Exp $
+bin/autojump
+bin/autojump_argparse.py
+bin/autojump_data.py
+bin/autojump_utils.py
+man/man1/autojump.1
+share/autojump/autojump.bash
+share/autojump/autojump.fish
+share/autojump/autojump.sh
+share/autojump/autojump.tcsh
+share/autojump/autojump.zsh
+share/autojump/icon.png
diff --git a/shells/autojump/distinfo b/shells/autojump/distinfo
new file mode 100644
index 00000000000..d70c29a699c
--- /dev/null
+++ b/shells/autojump/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/02/08 17:31:49 wiz Exp $
+
+SHA1 (autojump-22.2.4.tar.gz) = df9ff56e128efb8a8e1af574dbac9e4b3c47c1d6
+RMD160 (autojump-22.2.4.tar.gz) = 761710ce83a67059a3abe771c577b111acb77245
+Size (autojump-22.2.4.tar.gz) = 52724 bytes
+SHA1 (patch-install.py) = 74a881c8f86cc2651768828a438d239b5553262c
diff --git a/shells/autojump/patches/patch-install.py b/shells/autojump/patches/patch-install.py
new file mode 100644
index 00000000000..4ed643d75f9
--- /dev/null
+++ b/shells/autojump/patches/patch-install.py
@@ -0,0 +1,22 @@
+$NetBSD: patch-install.py,v 1.1 2015/02/08 17:31:49 wiz Exp $
+
+Remove duplicate mkdirs.
+
+--- install.py.orig 2015-01-25 07:13:20.000000000 +0000
++++ install.py
+@@ -175,7 +175,6 @@ def main(args):
+
+ mkdir(bin_dir, args.dryrun)
+ mkdir(doc_dir, args.dryrun)
+- mkdir(etc_dir, args.dryrun)
+ mkdir(share_dir, args.dryrun)
+
+ cp('./bin/autojump', bin_dir, args.dryrun)
+@@ -197,7 +196,6 @@ def main(args):
+ modify_autojump_lua(args.clinkdir, bin_dir, args.dryrun)
+ else:
+ mkdir(etc_dir, args.dryrun)
+- mkdir(share_dir, args.dryrun)
+ mkdir(zshshare_dir, args.dryrun)
+
+ cp('./bin/autojump.sh', etc_dir, args.dryrun)