diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2015-01-27 16:45:57 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2015-01-27 16:45:57 +0000 |
commit | a7507f6544e8f924b221eea5a66402ac924e3c59 (patch) | |
tree | d04de1a30edc631f8e0a3e240fe21284fa853b96 /shells | |
parent | 9d9ae6b8cf99428b8fb4c0cf3c929622b8f3b17a (diff) | |
download | ports-a7507f6544e8f924b221eea5a66402ac924e3c59.tar.gz ports-a7507f6544e8f924b221eea5a66402ac924e3c59.zip |
Notes
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash-completion/Makefile | 4 | ||||
-rw-r--r-- | shells/bash-completion/files/patch-freebsd-update | 56 | ||||
-rw-r--r-- | shells/bash-completion/files/patch-portsnap | 52 | ||||
-rw-r--r-- | shells/bash-completion/pkg-plist | 2 |
4 files changed, 113 insertions, 1 deletions
diff --git a/shells/bash-completion/Makefile b/shells/bash-completion/Makefile index 6cca80d7a307..93ab56223862 100644 --- a/shells/bash-completion/Makefile +++ b/shells/bash-completion/Makefile @@ -3,7 +3,7 @@ PORTNAME= bash-completion PORTVERSION= 2.1 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= shells MASTER_SITES= http://bash-completion.alioth.debian.org/files/ @@ -11,6 +11,8 @@ MASTER_SITES= http://bash-completion.alioth.debian.org/files/ MAINTAINER= adamw@FreeBSD.org COMMENT= Programmable completion library for Bash +LICENSE= GPLv2 + RUN_DEPENDS= bash:${PORTSDIR}/shells/bash USE_AUTOTOOLS= aclocal automake diff --git a/shells/bash-completion/files/patch-freebsd-update b/shells/bash-completion/files/patch-freebsd-update new file mode 100644 index 000000000000..e25f83e14002 --- /dev/null +++ b/shells/bash-completion/files/patch-freebsd-update @@ -0,0 +1,56 @@ +From 5ff5a4e0f875e8d1a49848408cfe72778889cbe8 Mon Sep 17 00:00:00 2001 +From: Peter Dave Hello <hsu@peterdavehello.org> +Date: Tue, 7 Jan 2014 12:29:24 +0800 +Subject: freebsd-update: New completion. + + +diff --git completions/Makefile.am completions/Makefile.am +index 7b8f767..9ef17ea 100644 +--- completions/Makefile.am ++++ completions/Makefile.am +@@ -96,6 +96,7 @@ bashcomp_DATA = 2to3 \ + filesnarf \ + find \ + find_member \ ++ freebsd-update \ + freeciv-gtk2 \ + freeciv-server \ + function \ +diff --git completions/freebsd-update completions/freebsd-update +new file mode 100644 +index 0000000..4cf8650 +--- /dev/null ++++ completions/freebsd-update +@@ -0,0 +1,29 @@ ++# bash completion for FreeBSD update tool - freebsd-update -*- shell-script -*- ++ ++[[ $OSTYPE == *freebsd* ]] || return 1 ++ ++_freebsd_update() ++{ ++ local cur prev words cword ++ _init_completion || return ++ ++ case $prev in ++ -b|-d) ++ _filedir -d ++ return ++ ;; ++ -f) ++ _filedir ++ return ++ ;; ++ -k|-r|-s|-t) ++ return ++ ;; ++ esac ++ ++ COMPREPLY=( $(compgen -W "fetch cron upgrade install rollback IDS" -- \ ++ $cur) ) ++} && ++complete -F _freebsd_update freebsd-update ++ ++# ex: ts=4 sw=4 et filetype=sh +-- +cgit v0.10.2 + diff --git a/shells/bash-completion/files/patch-portsnap b/shells/bash-completion/files/patch-portsnap new file mode 100644 index 000000000000..aeaab80300f4 --- /dev/null +++ b/shells/bash-completion/files/patch-portsnap @@ -0,0 +1,52 @@ +From c3770c17984bb61255db6adb48886b466c335e03 Mon Sep 17 00:00:00 2001 +From: Peter Dave Hello <hsu@peterdavehello.org> +Date: Thu, 2 Jan 2014 03:28:56 +0800 +Subject: portsnap: New completion. + + +diff --git completions/Makefile.am completions/Makefile.am +index be5bc26..7b8f767 100644 +--- completions/Makefile.am ++++ completions/Makefile.am +@@ -261,6 +261,7 @@ bashcomp_DATA = 2to3 \ + pm-is-supported \ + pm-powersave \ + portinstall \ ++ portsnap \ + portupgrade \ + postcat \ + postconf \ +diff --git completions/portsnap completions/portsnap +new file mode 100644 +index 0000000..22937c0 +--- /dev/null ++++ completions/portsnap +@@ -0,0 +1,25 @@ ++# bash completion for Portsnap -*- shell-script -*- ++ ++[[ $OSTYPE == *freebsd* ]] || return 1 ++ ++_portsnap() ++{ ++ local cur prev words cword ++ _init_completion || return ++ ++ case $prev in ++ -d|-p) ++ _filedir -d ++ return ++ ;; ++ -l|-f) ++ _filedir ++ return ++ ;; ++ esac ++ ++ COMPREPLY=( $(compgen -W "fetch cron extract update" -- $cur) ) ++} && ++complete -F _portsnap portsnap ++ ++# ex: ts=4 sw=4 et filetype=sh +-- +cgit v0.10.2 + diff --git a/shells/bash-completion/pkg-plist b/shells/bash-completion/pkg-plist index 7d732c75b740..0c2e3af6f30c 100644 --- a/shells/bash-completion/pkg-plist +++ b/shells/bash-completion/pkg-plist @@ -133,6 +133,7 @@ libdata/pkgconfig/bash-completion.pc %%DATADIR%%/completions/filesnarf %%DATADIR%%/completions/find %%DATADIR%%/completions/find_member +%%DATADIR%%/completions/freebsd-update %%DATADIR%%/completions/freeciv-gtk2 %%DATADIR%%/completions/freeciv-sdl %%DATADIR%%/completions/freeciv-server @@ -369,6 +370,7 @@ libdata/pkgconfig/bash-completion.pc %%DATADIR%%/completions/pm-suspend-hybrid %%DATADIR%%/completions/pmake %%DATADIR%%/completions/portinstall +%%DATADIR%%/completions/portsnap %%DATADIR%%/completions/portupgrade %%DATADIR%%/completions/postalias %%DATADIR%%/completions/postcat |