summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-06-02 21:56:20 +0200
committerUlrich Müller <ulm@gentoo.org>2018-06-02 22:02:41 +0200
commitecb88dfaf3b82ead2dac1114eba007ed819fca4c (patch)
tree5f18c29272041706dc947ae93ffe64cb069e218a /app-emacs/yasnippet-snippets
parentapp-emacs/yasnippet: Version bump. (diff)
downloadgentoo-ecb88dfaf3b82ead2dac1114eba007ed819fca4c.tar.gz
gentoo-ecb88dfaf3b82ead2dac1114eba007ed819fca4c.tar.bz2
gentoo-ecb88dfaf3b82ead2dac1114eba007ed819fca4c.zip
app-emacs/yasnippet-snippets: Initial import.
Package split off from app-emacs/yasnippet. Ebuild contributed by me. Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-emacs/yasnippet-snippets')
-rw-r--r--app-emacs/yasnippet-snippets/Manifest1
-rw-r--r--app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el4
-rw-r--r--app-emacs/yasnippet-snippets/metadata.xml11
-rw-r--r--app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild27
4 files changed, 43 insertions, 0 deletions
diff --git a/app-emacs/yasnippet-snippets/Manifest b/app-emacs/yasnippet-snippets/Manifest
new file mode 100644
index 000000000000..50e0de93d6f0
--- /dev/null
+++ b/app-emacs/yasnippet-snippets/Manifest
@@ -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
index 000000000000..2db51796990b
--- /dev/null
+++ b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el
@@ -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
index 000000000000..c95e9b9f3b90
--- /dev/null
+++ b/app-emacs/yasnippet-snippets/metadata.xml
@@ -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
index 000000000000..693935e3fecf
--- /dev/null
+++ b/app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild
@@ -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
+}