diff options
Diffstat (limited to '.vim/UltiSnips/ebuild.snippets')
| -rw-r--r-- | .vim/UltiSnips/ebuild.snippets | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.vim/UltiSnips/ebuild.snippets b/.vim/UltiSnips/ebuild.snippets new file mode 100644 index 0000000..ef736ab --- /dev/null +++ b/.vim/UltiSnips/ebuild.snippets @@ -0,0 +1,25 @@ +snippet eapi7 "eapi7" +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="$2" +HOMEPAGE="$3" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/$1/${PN}.git" +else + SRC_URI="https://github.com/$1/${PN}/releases/download/v${PV}/${P}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="" + +DEPEND="$0" +RDEPEND="${DEPEND}" +BDEPEND="" +endsnippet |