summary refs log tree commit diff
path: root/.vim/after/snippets/ebuild.snippets.todo
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/snippets/ebuild.snippets.todo')
-rw-r--r--.vim/after/snippets/ebuild.snippets.todo25
1 files changed, 25 insertions, 0 deletions
diff --git a/.vim/after/snippets/ebuild.snippets.todo b/.vim/after/snippets/ebuild.snippets.todo
new file mode 100644
index 0000000..6856c61
--- /dev/null
+++ b/.vim/after/snippets/ebuild.snippets.todo
@@ -0,0 +1,25 @@
+snippet eapi7 "eapi7"
+# Copyright `!v strftime('%Y')` 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}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+DEPEND="$0"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+endsnippet