app-emacs/yasnippet-snippets: Initial import.
authorUlrich Müller <ulm@gentoo.org>
Sat, 2 Jun 2018 19:56:20 +0000 (21:56 +0200)
committerUlrich Müller <ulm@gentoo.org>
Sat, 2 Jun 2018 20:02:41 +0000 (22:02 +0200)
Package split off from app-emacs/yasnippet.
Ebuild contributed by me.

Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-emacs/yasnippet-snippets/Manifest [new file with mode: 0644]
app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el [new file with mode: 0644]
app-emacs/yasnippet-snippets/metadata.xml [new file with mode: 0644]
app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild [new file with mode: 0644]

diff --git a/app-emacs/yasnippet-snippets/Manifest b/app-emacs/yasnippet-snippets/Manifest
new file mode 100644 (file)
index 0000000..50e0de9
--- /dev/null
@@ -0,0 +1 @@
+DIST yasnippet-snippets-0.3.tar.gz 97229 BLAKE2B 26fe83c35be1b20b6a1e414144149cf1feaf4463833634bbd0a3db6f56b1da46d8e379c3dd19217cfd36f12cb9dc796eac4efef5c2ba472ce79f8c8b8d816969 SHA512 4aaac9d7c880642a1e802abb98bd6d6c94557fe0e609db5ce5b4ce2af921235d3e6bb2488c052adbe2940d41e85297520081ae0847b52642bc97610e6614727f
diff --git a/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el
new file mode 100644 (file)
index 0000000..2db5179
--- /dev/null
@@ -0,0 +1,4 @@
+(eval-after-load "yasnippet"
+  '(let ((snippets-dir "@SITEETC@"))
+     (add-to-list 'yas-snippet-dirs snippets-dir t)
+     (yas-load-directory snippets-dir t)))
diff --git a/app-emacs/yasnippet-snippets/metadata.xml b/app-emacs/yasnippet-snippets/metadata.xml
new file mode 100644 (file)
index 0000000..c95e9b9
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+  <email>gnu-emacs@gentoo.org</email>
+  <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<upstream>
+  <remote-id type="github">AndreaCrotti/yasnippet-snippets</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild b/app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild
new file mode 100644 (file)
index 0000000..693935e
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit elisp
+
+DESCRIPTION="A collection of yasnippet snippets for many languages"
+HOMEPAGE="https://github.com/AndreaCrotti/yasnippet-snippets"
+SRC_URI="https://github.com/AndreaCrotti/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="app-emacs/yasnippet"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_compile() { :; }
+
+src_install() {
+       elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       insinto "${SITEETC}/${PN}"
+       doins -r snippets/.
+       dodoc README.md
+}