1 |
commit: ecb88dfaf3b82ead2dac1114eba007ed819fca4c |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 2 19:56:20 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 2 20:02:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecb88dfa |
7 |
|
8 |
app-emacs/yasnippet-snippets: Initial import. |
9 |
|
10 |
Package split off from app-emacs/yasnippet. |
11 |
Ebuild contributed by me. |
12 |
|
13 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
14 |
|
15 |
app-emacs/yasnippet-snippets/Manifest | 1 + |
16 |
.../files/50yasnippet-snippets-gentoo.el | 4 ++++ |
17 |
app-emacs/yasnippet-snippets/metadata.xml | 11 +++++++++ |
18 |
.../yasnippet-snippets-0.3.ebuild | 27 ++++++++++++++++++++++ |
19 |
4 files changed, 43 insertions(+) |
20 |
|
21 |
diff --git a/app-emacs/yasnippet-snippets/Manifest b/app-emacs/yasnippet-snippets/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..50e0de93d6f |
24 |
--- /dev/null |
25 |
+++ b/app-emacs/yasnippet-snippets/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST yasnippet-snippets-0.3.tar.gz 97229 BLAKE2B 26fe83c35be1b20b6a1e414144149cf1feaf4463833634bbd0a3db6f56b1da46d8e379c3dd19217cfd36f12cb9dc796eac4efef5c2ba472ce79f8c8b8d816969 SHA512 4aaac9d7c880642a1e802abb98bd6d6c94557fe0e609db5ce5b4ce2af921235d3e6bb2488c052adbe2940d41e85297520081ae0847b52642bc97610e6614727f |
28 |
|
29 |
diff --git a/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el |
30 |
new file mode 100644 |
31 |
index 00000000000..2db51796990 |
32 |
--- /dev/null |
33 |
+++ b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el |
34 |
@@ -0,0 +1,4 @@ |
35 |
+(eval-after-load "yasnippet" |
36 |
+ '(let ((snippets-dir "@SITEETC@")) |
37 |
+ (add-to-list 'yas-snippet-dirs snippets-dir t) |
38 |
+ (yas-load-directory snippets-dir t))) |
39 |
|
40 |
diff --git a/app-emacs/yasnippet-snippets/metadata.xml b/app-emacs/yasnippet-snippets/metadata.xml |
41 |
new file mode 100644 |
42 |
index 00000000000..c95e9b9f3b9 |
43 |
--- /dev/null |
44 |
+++ b/app-emacs/yasnippet-snippets/metadata.xml |
45 |
@@ -0,0 +1,11 @@ |
46 |
+<?xml version="1.0" encoding="UTF-8"?> |
47 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
48 |
+<pkgmetadata> |
49 |
+<maintainer type="project"> |
50 |
+ <email>gnu-emacs@g.o</email> |
51 |
+ <name>Gentoo GNU Emacs project</name> |
52 |
+</maintainer> |
53 |
+<upstream> |
54 |
+ <remote-id type="github">AndreaCrotti/yasnippet-snippets</remote-id> |
55 |
+</upstream> |
56 |
+</pkgmetadata> |
57 |
|
58 |
diff --git a/app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild b/app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..693935e3fec |
61 |
--- /dev/null |
62 |
+++ b/app-emacs/yasnippet-snippets/yasnippet-snippets-0.3.ebuild |
63 |
@@ -0,0 +1,27 @@ |
64 |
+# Copyright 1999-2018 Gentoo Foundation |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=7 |
68 |
+ |
69 |
+inherit elisp |
70 |
+ |
71 |
+DESCRIPTION="A collection of yasnippet snippets for many languages" |
72 |
+HOMEPAGE="https://github.com/AndreaCrotti/yasnippet-snippets" |
73 |
+SRC_URI="https://github.com/AndreaCrotti/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
74 |
+ |
75 |
+LICENSE="GPL-3+" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64 ~x86" |
78 |
+ |
79 |
+RDEPEND="app-emacs/yasnippet" |
80 |
+ |
81 |
+SITEFILE="50${PN}-gentoo.el" |
82 |
+ |
83 |
+src_compile() { :; } |
84 |
+ |
85 |
+src_install() { |
86 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
87 |
+ insinto "${SITEETC}/${PN}" |
88 |
+ doins -r snippets/. |
89 |
+ dodoc README.md |
90 |
+} |