commit:     14040a3e08d1c916d05afb5f853409e1af06e917
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sat Jan  6 21:07:57 2024 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sat Jan  6 21:42:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=14040a3e

app-shells/zsh-autocomplete: new package, add 23.07.13, 9999

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 app-shells/zsh-autocomplete/Manifest               |  1 +
 app-shells/zsh-autocomplete/metadata.xml           | 11 ++++++
 .../zsh-autocomplete-23.07.13.ebuild               | 41 ++++++++++++++++++++++
 .../zsh-autocomplete/zsh-autocomplete-9999.ebuild  | 41 ++++++++++++++++++++++
 4 files changed, 94 insertions(+)

diff --git a/app-shells/zsh-autocomplete/Manifest 
b/app-shells/zsh-autocomplete/Manifest
new file mode 100644
index 0000000000..0f0c3f257a
--- /dev/null
+++ b/app-shells/zsh-autocomplete/Manifest
@@ -0,0 +1 @@
+DIST zsh-autocomplete-23.07.13.tar.gz 1711775 BLAKE2B 
a7067a1a54bb957c7e7141de976bd0931eea2f665853c0bf1711a73ccdb132e7b146b516ed1272f6936bc75600b59ff297716c3660d8b65cc70ebb93b4cb75a2
 SHA512 
a84d4fbd454d1304794fd8f45109e7ecb85d5e59ab46e5bcd1061a9a6f6c998fa21c4674fd1031bd848d9de862e4391667827ad526c70bc6e3f14e156b84af99

diff --git a/app-shells/zsh-autocomplete/metadata.xml 
b/app-shells/zsh-autocomplete/metadata.xml
new file mode 100644
index 0000000000..4915ff68b6
--- /dev/null
+++ b/app-shells/zsh-autocomplete/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <maintainer type="person">
+        <email>[email protected]</email>
+        <name>Gonçalo Negrier Duarte</name>
+    </maintainer>
+    <upstream>
+        <remote-id type="github">marlonrichert/zsh-autocomplete</remote-id>
+    </upstream>
+</pkgmetadata>

diff --git a/app-shells/zsh-autocomplete/zsh-autocomplete-23.07.13.ebuild 
b/app-shells/zsh-autocomplete/zsh-autocomplete-23.07.13.ebuild
new file mode 100644
index 0000000000..42a4d55042
--- /dev/null
+++ b/app-shells/zsh-autocomplete/zsh-autocomplete-23.07.13.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="Real-time type-ahead completion for Zsh."
+HOMEPAGE="https://github.com/marlonrichert/zsh-autocomplete";
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/marlonrichert/zsh-autocomplete.git";
+else
+       
SRC_URI="https://github.com/marlonrichert/zsh-autocomplete/archive/refs/tags/${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND=">=app-shells/zsh-5.8"
+
+DISABLE_AUTOFORMATTING="true"
+DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
+. /usr/share/zsh/site-functions/${PN}/${PN}.plugin.zsh
+at the end of your ~/.zshrc"
+
+src_install() {
+       # Move repo/tarball folder to zsh "plugin folder"
+       # Remove .git in 9999 (update using portage)
+       [[ ${PV} == 9999 ]] && rm -r "${S}/.git" ||die
+       mkdir -p "${ED}/usr/share/zsh/site-functions/" || die
+       mv "${S}" "${ED}/usr/share/zsh/site-functions/${PN}"
+
+       readme.gentoo_create_doc
+       einstalldocs
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}

diff --git a/app-shells/zsh-autocomplete/zsh-autocomplete-9999.ebuild 
b/app-shells/zsh-autocomplete/zsh-autocomplete-9999.ebuild
new file mode 100644
index 0000000000..42a4d55042
--- /dev/null
+++ b/app-shells/zsh-autocomplete/zsh-autocomplete-9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="Real-time type-ahead completion for Zsh."
+HOMEPAGE="https://github.com/marlonrichert/zsh-autocomplete";
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/marlonrichert/zsh-autocomplete.git";
+else
+       
SRC_URI="https://github.com/marlonrichert/zsh-autocomplete/archive/refs/tags/${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND=">=app-shells/zsh-5.8"
+
+DISABLE_AUTOFORMATTING="true"
+DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
+. /usr/share/zsh/site-functions/${PN}/${PN}.plugin.zsh
+at the end of your ~/.zshrc"
+
+src_install() {
+       # Move repo/tarball folder to zsh "plugin folder"
+       # Remove .git in 9999 (update using portage)
+       [[ ${PV} == 9999 ]] && rm -r "${S}/.git" ||die
+       mkdir -p "${ED}/usr/share/zsh/site-functions/" || die
+       mv "${S}" "${ED}/usr/share/zsh/site-functions/${PN}"
+
+       readme.gentoo_create_doc
+       einstalldocs
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}

Reply via email to