From 7c30086d16e0b0b3cdcb668d1b32efa4cc9f25cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20V=C3=A4th?= Date: Sat, 6 Feb 2016 15:23:38 +0100 Subject: app-shells/zsh-completions: Version bump --- app-shells/zsh-completions/Manifest | 2 +- app-shells/zsh-completions/metadata.xml | 4 +- .../zsh-completions-0.12.0-r2.ebuild | 134 -------------------- .../zsh-completions/zsh-completions-0.14.0.ebuild | 137 +++++++++++++++++++++ .../zsh-completions-99999999.ebuild | 29 +++-- 5 files changed, 157 insertions(+), 149 deletions(-) delete mode 100644 app-shells/zsh-completions/zsh-completions-0.12.0-r2.ebuild create mode 100644 app-shells/zsh-completions/zsh-completions-0.14.0.ebuild (limited to 'app-shells') diff --git a/app-shells/zsh-completions/Manifest b/app-shells/zsh-completions/Manifest index 61cc9121..774ffaaf 100644 --- a/app-shells/zsh-completions/Manifest +++ b/app-shells/zsh-completions/Manifest @@ -1 +1 @@ -DIST zsh-completions-0.12.0.tar.gz 193410 SHA256 770d92749b11b22192595b207208508f8bfa319d5d03210a71bc44c8b9cfa0d5 +DIST zsh-completions-0.14.0.tar.gz 193410 SHA256 770d92749b11b22192595b207208508f8bfa319d5d03210a71bc44c8b9cfa0d5 diff --git a/app-shells/zsh-completions/metadata.xml b/app-shells/zsh-completions/metadata.xml index c34961d5..476a83d4 100644 --- a/app-shells/zsh-completions/metadata.xml +++ b/app-shells/zsh-completions/metadata.xml @@ -16,12 +16,14 @@ Install zsh completions for Android-related programs Install zsh completions for googlecl Install zsh completion for unix system tools + Install zsh completions for backup programs Install zsh completions for database programs Install zsh completions for development (build systems, editors, web) Install zsh completions for disk tools Install zsh completions for tools for distributing tasks to machines - Install zsh completions for filesystem tools Install zsh completions for special git tools + Install zsh completions for go-related tools + Install zsh completions for gtk-related tools Install zsh completions for low-level hardware tools Install zsh completions for Haskell tools Install zsh completions for package managers (not portage) diff --git a/app-shells/zsh-completions/zsh-completions-0.12.0-r2.ebuild b/app-shells/zsh-completions/zsh-completions-0.12.0-r2.ebuild deleted file mode 100644 index dd4f5453..00000000 --- a/app-shells/zsh-completions/zsh-completions-0.12.0-r2.ebuild +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -case ${PV} in -99999999*) - LIVE=: - EGIT_REPO_URI="git://github.com/zsh-users/${PN}.git" - inherit git-r3 - PROPERTIES="live" - KEYWORDS="" - SRC_URI="";; -*) - LIVE=false - #RESTRICT="mirror" - TARBALL_VERSION='0.12.0' - SRC_URI="https://github.com/zsh-users/${PN}/archive/${TARBALL_VERSION}.tar.gz -> ${PN}-${PV}.tar.gz" - KEYWORDS="~amd64 ~x86" - S="${WORKDIR}/${PN}-${TARBALL_VERSION}" -esac - -DESCRIPTION="Additional completion definitions for Zsh" -HOMEPAGE="https://gentoo.org/zsh-users/zsh-completions/" -LICENSE="ZSH" -SLOT="0" -if ${LIVE} -then DEPEND="" -else DEPEND="" -fi - -IUSE="" -declare -a FILES -FILES=() -declare -A USEFILE FILEINDEX -USEFILE=() -FILEINDEX=() -used_value() { - case ${!1} in - '#'*) - eval "${1}=\${${1}#?}" - ${LIVE};; - '/'*) - eval "${1}=\${${1}#?}" - ! ${LIVE};; - esac -} -calculate_data() { - local comp curr currfile used - for comp - do curr="${comp%% *}" - used_value curr || continue - case ${curr} in - '+'*) - curr="completion_${curr#?}" - IUSE="${IUSE}${IUSE:+ }+${curr}";; - *) - curr="completion_${curr}" - IUSE="${IUSE}${IUSE:+ }${curr}";; - esac - for currfile in ${comp#* } - do used_value currfile - used=${?} - USEFILE["${currfile}"]="${curr}" - [[ -z ${FILEINDEX["${currfile}"]} ]] || die "${currfile} listed twice" - [ ${used} -ne 0 ] && continue - FILEINDEX["${currfile}"]="${#FILES[@]}" - FILES+=("${currfile}") - done - done -} -calculate_data \ - '+Android _adb _android _emulator' \ - '+Google _google' \ - '+Unix _cmake _dzen2 _logger _nl _ps _shutdown _watch _xinput' \ - '+database _redis-cli _pgsql_utils' \ - '+dev _artisan _choc _console _gradle _geany _phing _manage.py _mvn _pear _play _symfony _thor _vagrant _veewee' \ - '+disk _sdd _smartmontools _srm' \ - '+distribute _celery /_envoy _fab _glances _kitchen _knife _mina _mussh' \ - '+filesystem _zfs' \ - '+git _git-flow _git-pulls' \ - '+hardware _optirun _perf _primus' \ - '+haskell _cabal _ghc #_stack' \ - '+managers #_ansible #_ansible-galaxy #_ansible-playbook _bower _brew #_cask _debuild _lein _pactree _pkcon _port _yaourt' \ - '+multimedia _id3 _id3v2 _showoff' \ - '+net _dget _dhcpcd _httpie _iw _mosh _rfkill _socat _ssh-copy-id _vpnc _vnstat' \ - '+nfs _exportfs' \ - '+perl _cpanm' \ - '+python _bpython _pygmentize _setup.py' \ - '+ruby _bundle _cap _ditz _gas _gem _gist _github _git-wtf _jekyll _lunchy _rails _rspec _rubocop _rvm' \ - '+search _ack _ag _jq' \ - '+session _atach _teamocil _tmuxinator _wemux' \ - '+subtitles _language_codes _periscope _subliminal' \ - '+virtualization _boot2docker #_docker-compose #_docker-machine _virtualbox _virsh' \ - '+web _coffee _composer _docpad _drush _heroku #_hledger _jonas _jmeter _jmeter-plugins _lunar _middleman _node _nvm _ralio /_salt _sbt _scala _svm' - -src_prepare() { - # Remove colliding completions - if ${LIVE} - then mv src/_docker . || eerror "mv failed" - else mv src/_docker src/_pip . || die - fi - eapply_user -} - -src_install() { - insinto /usr/share/zsh/site-functions - local i j u - for i in src/* - do j=${i#src/} - u=${USEFILE["${j}"]} - if [ -z "${u}" ] - then elog "installing unknown completion ${i#*/}" - doins "${i}" - continue - fi - ! use "${u}" || doins "${i}" - u=${FILEINDEX["${j}"]} - FILES[${u}]= - done - for i in ${FILES[*]} - do elog "listed file ${i} not found" - done - dodoc README.md zsh-completions-howto.org -} - -pkg_postinst() { - elog - elog "If you happen to compile your functions, you may need to delete" - elog "~/.zcompdump{,.zwc} and recompile to make the new completions available" - elog "to your shell." - elog -} diff --git a/app-shells/zsh-completions/zsh-completions-0.14.0.ebuild b/app-shells/zsh-completions/zsh-completions-0.14.0.ebuild new file mode 100644 index 00000000..9ac61f18 --- /dev/null +++ b/app-shells/zsh-completions/zsh-completions-0.14.0.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +case ${PV} in +99999999*) + LIVE=: + EGIT_REPO_URI="git://github.com/zsh-users/${PN}.git" + inherit git-r3 + PROPERTIES="live" + KEYWORDS="" + SRC_URI="";; +*) + LIVE=false + #RESTRICT="mirror" + TARBALL_VERSION='0.12.0' + SRC_URI="https://github.com/zsh-users/${PN}/archive/${TARBALL_VERSION}.tar.gz -> ${PN}-${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${TARBALL_VERSION}" +esac + +DESCRIPTION="Additional completion definitions for Zsh" +HOMEPAGE="https://gentoo.org/zsh-users/zsh-completions/" +LICENSE="ZSH" +SLOT="0" +if ${LIVE} +then DEPEND="" +else DEPEND="" +fi + +IUSE="" +declare -a FILES +FILES=() +declare -A USEFILE FILEINDEX +USEFILE=() +FILEINDEX=() +used_value() { + case ${!1} in + '#'*) + eval "${1}=\${${1}#?}" + ${LIVE};; + '/'*) + eval "${1}=\${${1}#?}" + ! ${LIVE};; + esac +} +calculate_data() { + local comp curr currfile used + for comp + do curr="${comp%% *}" + used_value curr || continue + case ${curr} in + '+'*) + curr="completion_${curr#?}" + IUSE="${IUSE}${IUSE:+ }+${curr}";; + *) + curr="completion_${curr}" + IUSE="${IUSE}${IUSE:+ }${curr}";; + esac + for currfile in ${comp#* } + do used_value currfile + used=${?} + USEFILE["${currfile}"]="${curr}" + [[ -z ${FILEINDEX["${currfile}"]} ]] || die "${currfile} listed twice" + [ ${used} -ne 0 ] && continue + FILEINDEX["${currfile}"]="${#FILES[@]}" + FILES+=("${currfile}") + done + done +} +# Prepend # or / to mark only live/-nonlive categories or files +calculate_data \ + '+Android _adb _android _emulator' \ + '+Google _google' \ + '+Unix _cmake _dzen2 _logger /_nl /_ps #_rebar #_setcap _shutdown /_watch _xinput /_zfs' \ + '#+backup _tarsnap' \ + '+database _redis-cli _pgsql_utils' \ + '+dev _artisan _choc _console _geany /_gradle _phing _manage.py _mvn _pear _play _symfony _thor _vagrant _veewee' \ + '+disk _sdd _smartmontools _srm' \ + '+distribute _celery /_envoy _fab #_fleetctl _glances _kitchen _knife _mina _mussh' \ + '+git _git-flow _git-pulls' \ + '#+go _go' \ + '#+gtk _gtk-launch' \ + '+hardware _optirun _perf _primus' \ + '+haskell /_cabal _ghc #_stack' \ + '+managers #_ansible #_ansible-galaxy #_ansible-playbook #_ansible-vault _bower /_brew #_cask _debuild _lein _pactree _pkcon _port #_supervisorctl _yaourt' \ + '+multimedia _id3 _id3v2 _showoff' \ + '+net _dget _dhcpcd _httpie _iw /_mosh _rfkill _socat _ssh-copy-id _vpnc _vnstat' \ + '+nfs _exportfs' \ + '+perl _cpanm' \ + '+python /_bpython _pygmentize _setup.py' \ + '+ruby _bundle _cap _ditz _gas _gem _gist _github _git-wtf _jekyll _lunchy _rails _rspec _rubocop _rvm' \ + '+search _ack _ag _jq' \ + '+session _atach _teamocil _tmuxinator _wemux' \ + '+subtitles _language_codes _periscope _subliminal' \ + '+virtualization _boot2docker #_docker-machine _virtualbox _virsh' \ + '+web _coffee _composer _docpad _drush _heroku #_hledger #_homestead _jonas _jmeter _jmeter-plugins _lunar _middleman #_mix _node _nvm _ralio /_salt _sbt _scala _svm' + +src_prepare() { + # Remove colliding completions + if ! ${LIVE} + then mv src/_docker src/_pip . || die + fi + chmod a-x src/* + eapply_user +} + +src_install() { + insinto /usr/share/zsh/site-functions + local i j u + for i in src/* + do j=${i#src/} + u=${USEFILE["${j}"]} + if [ -z "${u}" ] + then elog "installing unknown completion ${i#*/}" + doins "${i}" + continue + fi + ! use "${u}" || doins "${i}" + u=${FILEINDEX["${j}"]} + FILES[${u}]= + done + for i in ${FILES[*]} + do elog "listed file ${i} not found" + done + dodoc README.md zsh-completions-howto.org +} + +pkg_postinst() { + elog + elog "If you happen to compile your functions, you may need to delete" + elog "~/.zcompdump{,.zwc} and recompile to make the new completions available" + elog "to your shell." + elog +} diff --git a/app-shells/zsh-completions/zsh-completions-99999999.ebuild b/app-shells/zsh-completions/zsh-completions-99999999.ebuild index dd4f5453..9ac61f18 100644 --- a/app-shells/zsh-completions/zsh-completions-99999999.ebuild +++ b/app-shells/zsh-completions/zsh-completions-99999999.ebuild @@ -70,37 +70,40 @@ calculate_data() { done done } +# Prepend # or / to mark only live/-nonlive categories or files calculate_data \ '+Android _adb _android _emulator' \ '+Google _google' \ - '+Unix _cmake _dzen2 _logger _nl _ps _shutdown _watch _xinput' \ + '+Unix _cmake _dzen2 _logger /_nl /_ps #_rebar #_setcap _shutdown /_watch _xinput /_zfs' \ + '#+backup _tarsnap' \ '+database _redis-cli _pgsql_utils' \ - '+dev _artisan _choc _console _gradle _geany _phing _manage.py _mvn _pear _play _symfony _thor _vagrant _veewee' \ + '+dev _artisan _choc _console _geany /_gradle _phing _manage.py _mvn _pear _play _symfony _thor _vagrant _veewee' \ '+disk _sdd _smartmontools _srm' \ - '+distribute _celery /_envoy _fab _glances _kitchen _knife _mina _mussh' \ - '+filesystem _zfs' \ + '+distribute _celery /_envoy _fab #_fleetctl _glances _kitchen _knife _mina _mussh' \ '+git _git-flow _git-pulls' \ + '#+go _go' \ + '#+gtk _gtk-launch' \ '+hardware _optirun _perf _primus' \ - '+haskell _cabal _ghc #_stack' \ - '+managers #_ansible #_ansible-galaxy #_ansible-playbook _bower _brew #_cask _debuild _lein _pactree _pkcon _port _yaourt' \ + '+haskell /_cabal _ghc #_stack' \ + '+managers #_ansible #_ansible-galaxy #_ansible-playbook #_ansible-vault _bower /_brew #_cask _debuild _lein _pactree _pkcon _port #_supervisorctl _yaourt' \ '+multimedia _id3 _id3v2 _showoff' \ - '+net _dget _dhcpcd _httpie _iw _mosh _rfkill _socat _ssh-copy-id _vpnc _vnstat' \ + '+net _dget _dhcpcd _httpie _iw /_mosh _rfkill _socat _ssh-copy-id _vpnc _vnstat' \ '+nfs _exportfs' \ '+perl _cpanm' \ - '+python _bpython _pygmentize _setup.py' \ + '+python /_bpython _pygmentize _setup.py' \ '+ruby _bundle _cap _ditz _gas _gem _gist _github _git-wtf _jekyll _lunchy _rails _rspec _rubocop _rvm' \ '+search _ack _ag _jq' \ '+session _atach _teamocil _tmuxinator _wemux' \ '+subtitles _language_codes _periscope _subliminal' \ - '+virtualization _boot2docker #_docker-compose #_docker-machine _virtualbox _virsh' \ - '+web _coffee _composer _docpad _drush _heroku #_hledger _jonas _jmeter _jmeter-plugins _lunar _middleman _node _nvm _ralio /_salt _sbt _scala _svm' + '+virtualization _boot2docker #_docker-machine _virtualbox _virsh' \ + '+web _coffee _composer _docpad _drush _heroku #_hledger #_homestead _jonas _jmeter _jmeter-plugins _lunar _middleman #_mix _node _nvm _ralio /_salt _sbt _scala _svm' src_prepare() { # Remove colliding completions - if ${LIVE} - then mv src/_docker . || eerror "mv failed" - else mv src/_docker src/_pip . || die + if ! ${LIVE} + then mv src/_docker src/_pip . || die fi + chmod a-x src/* eapply_user } -- cgit v1.2.3