From 33e64cbf8b9f576a82fbcd7933ddcfd28dd260d1 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 8 Feb 2015 17:31:49 +0000 Subject: 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. --- shells/autojump/DESCR | 5 +++++ shells/autojump/Makefile | 29 +++++++++++++++++++++++++++++ shells/autojump/PLIST | 12 ++++++++++++ shells/autojump/distinfo | 6 ++++++ shells/autojump/patches/patch-install.py | 22 ++++++++++++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 shells/autojump/DESCR create mode 100644 shells/autojump/Makefile create mode 100644 shells/autojump/PLIST create mode 100644 shells/autojump/distinfo create mode 100644 shells/autojump/patches/patch-install.py (limited to 'shells') 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) -- cgit v1.2.3