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

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte
2024-01-06 21:07:57 +00:00
parent 1c430f70d2
commit 14040a3e08
4 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST zsh-autocomplete-23.07.13.tar.gz 1711775 BLAKE2B a7067a1a54bb957c7e7141de976bd0931eea2f665853c0bf1711a73ccdb132e7b146b516ed1272f6936bc75600b59ff297716c3660d8b65cc70ebb93b4cb75a2 SHA512 a84d4fbd454d1304794fd8f45109e7ecb85d5e59ab46e5bcd1061a9a6f6c998fa21c4674fd1031bd848d9de862e4391667827ad526c70bc6e3f14e156b84af99

View File

@@ -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>gonegrier.duarte@gmail.com</email>
<name>Gonçalo Negrier Duarte</name>
</maintainer>
<upstream>
<remote-id type="github">marlonrichert/zsh-autocomplete</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}

View File

@@ -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
}