From b8bc839419cc88f46d3ec95f3c3dc8171cfdde84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 13 Sep 2020 11:40:31 +0200 Subject: app-shells/lxd-zsh-completions: update to latest commit --- app-shells/lxd-zsh-completions/Manifest | 2 +- ...completions-20190522-fix-awk-syntax-error.patch | 34 ---------------------- .../lxd-zsh-completions-20190522-r1.ebuild | 27 ----------------- .../lxd-zsh-completions-20200823-r1.ebuild | 23 +++++++++++++++ 4 files changed, 24 insertions(+), 62 deletions(-) delete mode 100644 app-shells/lxd-zsh-completions/files/lxd-zsh-completions-20190522-fix-awk-syntax-error.patch delete mode 100644 app-shells/lxd-zsh-completions/lxd-zsh-completions-20190522-r1.ebuild create mode 100644 app-shells/lxd-zsh-completions/lxd-zsh-completions-20200823-r1.ebuild (limited to 'app-shells/lxd-zsh-completions') diff --git a/app-shells/lxd-zsh-completions/Manifest b/app-shells/lxd-zsh-completions/Manifest index 173ac21..6ec710b 100644 --- a/app-shells/lxd-zsh-completions/Manifest +++ b/app-shells/lxd-zsh-completions/Manifest @@ -1 +1 @@ -DIST lxd-zsh-completions-20190522.tar.gz 7339 BLAKE2B 13984b973ddbf1d17c9e038fdba1829644aa87e91548488aec16539d35db91c145489f8bd8f37beaaddff95c27b551162d3e8f6f943608d8adca0b9e133b1757 SHA512 7da379dd6025663e986c1c25b41c84bbc5d9dbb018526d95d5cd4e536f03537505fa7ad0d49549050e659826c428bdee4081f381837baf06ff9cb5f8ad8af3d3 +DIST lxd-zsh-completions-20200823.tar.gz 9123 BLAKE2B 51bf6af9d2c8fc1423c50c707b3e3d18a19eb24325be8fc6168000fa4bf1fe8d2a6b73476ba3194f5a5c923985fccfbbe46eccf8477d46b8f338b4195624cd35 SHA512 ce0ec1306ef1c5eec951874a3d460ccccf2e76c24adbc4c27ef57e5b6f5b18c56378a72a9be91fded385c3b682dbb6be16a89c461939003bbdc1ecc3cbf7eb36 diff --git a/app-shells/lxd-zsh-completions/files/lxd-zsh-completions-20190522-fix-awk-syntax-error.patch b/app-shells/lxd-zsh-completions/files/lxd-zsh-completions-20190522-fix-awk-syntax-error.patch deleted file mode 100644 index 1884e68..0000000 --- a/app-shells/lxd-zsh-completions/files/lxd-zsh-completions-20190522-fix-awk-syntax-error.patch +++ /dev/null @@ -1,34 +0,0 @@ -From d33f60339259e5e8a345b8b1091e3e4158758b27 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= -Date: Wed, 18 Sep 2019 09:53:10 +0200 -Subject: [PATCH] Fix awk script syntax error - -Space does not have to be escaped and awk is annoyingly producing -warning about it to terminal. -This just removes unnecessary escape of spaces in regexp. ---- - _lxc | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/_lxc b/_lxc -index e9ef9f1..420be6d 100644 ---- a/_lxc -+++ b/_lxc -@@ -837,12 +837,12 @@ __lxc_containers_all () { - - __lxc_images_as_fingerprint () { - local -a _l -- _l=(${(@f)"$(_call_program images lxc image list | tail -n +4 | egrep -e '^\|' | awk '{split($0,a,"|"); for(i in a){ sub(/^[\ \t]+/,"",a[i]);sub(/[\ \t]+$/,"",a[i]);}; (a[2]=="") ? b=" (not aliased)" : b=" (aliased as " a[2] ")" ; print a[3] ":" a[5] b }' )"}) -+ _l=(${(@f)"$(_call_program images lxc image list | tail -n +4 | egrep -e '^\|' | awk '{split($0,a,"|"); for(i in a){ sub(/^[ \t]+/,"",a[i]);sub(/[ \t]+$/,"",a[i]);}; (a[2]=="") ? b=" (not aliased)" : b=" (aliased as " a[2] ")" ; print a[3] ":" a[5] b }' )"}) - _describe -t images_as_fingerprint 'Images as fingerprint' _l - } - - __lxc_images_as_alias () { -- _l=(${(@f)"$(_call_program images lxc image alias list | tail -n +4 | egrep -e '^\|' | awk '{split($0,a,"|"); for(i in a){ sub(/^[\ \t]+/,"",a[i]);sub(/[\ \t]+$/,"",a[i]);}; (a[4]=="") ? b="" : b=" - " a[4] ;print a[2] ":" a[3] b }' )"}) -+ _l=(${(@f)"$(_call_program images lxc image alias list | tail -n +4 | egrep -e '^\|' | awk '{split($0,a,"|"); for(i in a){ sub(/^[ \t]+/,"",a[i]);sub(/[ \t]+$/,"",a[i]);}; (a[4]=="") ? b="" : b=" - " a[4] ;print a[2] ":" a[3] b }' )"}) - _describe -t images_as_alias 'Images as alias' _l - } - --- -2.27.0 - diff --git a/app-shells/lxd-zsh-completions/lxd-zsh-completions-20190522-r1.ebuild b/app-shells/lxd-zsh-completions/lxd-zsh-completions-20190522-r1.ebuild deleted file mode 100644 index d3a485a..0000000 --- a/app-shells/lxd-zsh-completions/lxd-zsh-completions-20190522-r1.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="A Zsh completion for lxc command of LXD" -HOMEPAGE="https://github.com/endaaman/lxd-completion-zsh" -SRC_HASH="87d20cb0c5d5261cdc469a2d16a679f577038204" -SRC_URI="https://github.com/endaaman/lxd-completion-zsh/archive/${SRC_HASH}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/lxd-completion-zsh-${SRC_HASH}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="app-shells/zsh" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}/${P}-fix-awk-syntax-error.patch" -) - -src_install() { - insinto /usr/share/zsh/site-functions - doins _lxc -} diff --git a/app-shells/lxd-zsh-completions/lxd-zsh-completions-20200823-r1.ebuild b/app-shells/lxd-zsh-completions/lxd-zsh-completions-20200823-r1.ebuild new file mode 100644 index 0000000..13e7ec0 --- /dev/null +++ b/app-shells/lxd-zsh-completions/lxd-zsh-completions-20200823-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A Zsh completion for lxc command of LXD" +HOMEPAGE="https://github.com/endaaman/lxd-completion-zsh" +SRC_HASH="eaf92077179ec52a56c088cf4462967f190eabfc" +SRC_URI="https://github.com/endaaman/lxd-completion-zsh/archive/${SRC_HASH}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/lxd-completion-zsh-${SRC_HASH}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-shells/zsh" +RDEPEND="${DEPEND}" + +src_install() { + insinto /usr/share/zsh/site-functions + doins _lxc +} -- cgit v1.2.3