* [gentoo-commits] repo/gentoo:master commit in: app-emacs/yasnippet-snippets/files/, app-emacs/yasnippet-snippets/
@ 2018-06-02 20:02 Ulrich Müller
0 siblings, 0 replies; only message in thread
From: Ulrich Müller @ 2018-06-02 20:02 UTC (permalink / raw
To: gentoo-commits
commit: ecb88dfaf3b82ead2dac1114eba007ed819fca4c
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 2 19:56:20 2018 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 2 20:02:41 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecb88dfa
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
app-emacs/yasnippet-snippets/Manifest | 1 +
.../files/50yasnippet-snippets-gentoo.el | 4 ++++
app-emacs/yasnippet-snippets/metadata.xml | 11 +++++++++
.../yasnippet-snippets-0.3.ebuild | 27 ++++++++++++++++++++++
4 files changed, 43 insertions(+)
diff --git a/app-emacs/yasnippet-snippets/Manifest b/app-emacs/yasnippet-snippets/Manifest
new file mode 100644
index 00000000000..50e0de93d6f
--- /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 00000000000..2db51796990
--- /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 00000000000..c95e9b9f3b9
--- /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 00000000000..693935e3fec
--- /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
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-02 20:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-02 20:02 [gentoo-commits] repo/gentoo:master commit in: app-emacs/yasnippet-snippets/files/, app-emacs/yasnippet-snippets/ Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox