summary refs log tree commit diff
path: root/.vim/UltiSnips/ebuild.snippets
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-01-26 17:16:07 +0100
committerRobert Günzler <r@gnzler.io>2020-01-26 18:00:59 +0100
commitf5d56602df70950de6b7d40966b00c9939c81763 (patch)
treeb50ffeb5496fe3525cc1bab2629389ced95435b7 /.vim/UltiSnips/ebuild.snippets
Intial commit of v2
See https://drewdevault.com/2019/12/30/dotfiles.html
Diffstat (limited to '.vim/UltiSnips/ebuild.snippets')
-rw-r--r--.vim/UltiSnips/ebuild.snippets25
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