1 |
commit: 277855dd855ec7383e33e91e5d00d8cb443ce901 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 8 23:21:50 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 8 23:23:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=277855dd |
7 |
|
8 |
app-emacs/emojify: new package; add version 1.2 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
app-emacs/emojify/Manifest | 1 + |
13 |
app-emacs/emojify/emojify-1.2.ebuild | 40 +++++++++++++++++++++++++ |
14 |
app-emacs/emojify/files/50emojify-gentoo.el | 5 ++++ |
15 |
app-emacs/emojify/files/emojify-json-data.patch | 25 ++++++++++++++++ |
16 |
app-emacs/emojify/metadata.xml | 13 ++++++++ |
17 |
5 files changed, 84 insertions(+) |
18 |
|
19 |
diff --git a/app-emacs/emojify/Manifest b/app-emacs/emojify/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..cbeb30832c8a |
22 |
--- /dev/null |
23 |
+++ b/app-emacs/emojify/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST emojify-1.2.tar.gz 1196775 BLAKE2B 5802e391771f93b5181584287a73d6e02b42796a065ab91c0f085debcabb8a7da3bc575e7913b754b1754d0ee5d296fd31196009bdb937babcccc29ae97cdb18 SHA512 a02249d8474f02af1f43058061fa4cfcbccdaa71e632934c6466277eef44f306ea44e0c91dcb83218d6f1f01f3e7379b6d4d82b086113b1a9a41ee5ea3971e39 |
26 |
|
27 |
diff --git a/app-emacs/emojify/emojify-1.2.ebuild b/app-emacs/emojify/emojify-1.2.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..b00b264af3f2 |
30 |
--- /dev/null |
31 |
+++ b/app-emacs/emojify/emojify-1.2.ebuild |
32 |
@@ -0,0 +1,40 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+NEED_EMACS=24.3 |
39 |
+ |
40 |
+inherit elisp |
41 |
+ |
42 |
+DESCRIPTION="Display emojis in Emacs, like :smile: or plain ASCII ones like :)" |
43 |
+HOMEPAGE="https://github.com/iqbalansari/emacs-emojify/" |
44 |
+SRC_URI="https://github.com/iqbalansari/emacs-${PN}/archive/v${PV}.tar.gz |
45 |
+ -> ${P}.tar.gz" |
46 |
+S="${WORKDIR}"/emacs-${P} |
47 |
+ |
48 |
+LICENSE="GPL-3+" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+RESTRICT="test" # requires some (5) unpackaged Emacs testing tools |
52 |
+ |
53 |
+RDEPEND="app-emacs/ht" |
54 |
+BDEPEND="${RDEPEND}" |
55 |
+ |
56 |
+DOCS=( CHANGELOG.org README.org screenshots ) |
57 |
+PATCHES=( "${FILESDIR}"/${PN}-json-data.patch ) |
58 |
+ELISP_REMOVE=".dir-locals.el" |
59 |
+SITEFILE="50${PN}-gentoo.el" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ elisp_src_prepare |
63 |
+ |
64 |
+ sed -i "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|g" ${PN}.el || die |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ elisp_src_install |
69 |
+ |
70 |
+ insinto ${SITEETC}/${PN} |
71 |
+ doins -r data |
72 |
+} |
73 |
|
74 |
diff --git a/app-emacs/emojify/files/50emojify-gentoo.el b/app-emacs/emojify/files/50emojify-gentoo.el |
75 |
new file mode 100644 |
76 |
index 000000000000..e76565b0655a |
77 |
--- /dev/null |
78 |
+++ b/app-emacs/emojify/files/50emojify-gentoo.el |
79 |
@@ -0,0 +1,5 @@ |
80 |
+(add-to-list 'load-path "@SITELISP@") |
81 |
+(autoload 'emojify-mode "emojify" |
82 |
+ "Emojify mode" t) |
83 |
+(autoload 'global-emojify-mode "emojify" |
84 |
+ "Toggle Emojify mode in all buffers." t) |
85 |
|
86 |
diff --git a/app-emacs/emojify/files/emojify-json-data.patch b/app-emacs/emojify/files/emojify-json-data.patch |
87 |
new file mode 100644 |
88 |
index 000000000000..50f53f243c88 |
89 |
--- /dev/null |
90 |
+++ b/app-emacs/emojify/files/emojify-json-data.patch |
91 |
@@ -0,0 +1,25 @@ |
92 |
+index 033c2f5..ca83044 100644 |
93 |
+--- a/emojify.el |
94 |
++++ b/emojify.el |
95 |
+@@ -290,9 +290,7 @@ current window too." |
96 |
+ |
97 |
+ (defcustom emojify-emoji-json |
98 |
+ (expand-file-name "data/emoji.json" |
99 |
+- (cond (load-file-name (file-name-directory load-file-name)) |
100 |
+- ((locate-library "emojify") (file-name-directory (locate-library "emojify"))) |
101 |
+- (t default-directory))) |
102 |
++ "@SITEETC@") |
103 |
+ "The path to JSON file containing the configuration for displaying emojis." |
104 |
+ :type 'file |
105 |
+ :group 'emojify) |
106 |
+@@ -301,9 +299,7 @@ current window too." |
107 |
+ (let ((json-array-type 'list) |
108 |
+ (json-object-type 'hash-table)) |
109 |
+ (json-read-file (expand-file-name "data/emoji-sets.json" |
110 |
+- (cond (load-file-name (file-name-directory load-file-name)) |
111 |
+- ((locate-library "emojify") (file-name-directory (locate-library "emojify"))) |
112 |
+- (t default-directory)))))) |
113 |
++ "@SITEETC@")))) |
114 |
+ |
115 |
+ (defcustom emojify-emoji-set "emojione-v2.2.6-22" |
116 |
+ "The emoji set used to display emojis." |
117 |
|
118 |
diff --git a/app-emacs/emojify/metadata.xml b/app-emacs/emojify/metadata.xml |
119 |
new file mode 100644 |
120 |
index 000000000000..92ccec1e632d |
121 |
--- /dev/null |
122 |
+++ b/app-emacs/emojify/metadata.xml |
123 |
@@ -0,0 +1,13 @@ |
124 |
+<?xml version="1.0" encoding="UTF-8"?> |
125 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
126 |
+ |
127 |
+<pkgmetadata> |
128 |
+ <maintainer type="project"> |
129 |
+ <email>gnu-emacs@g.o</email> |
130 |
+ <name>Gentoo GNU Emacs project</name> |
131 |
+ </maintainer> |
132 |
+ <upstream> |
133 |
+ <bugs-to>https://github.com/iqbalansari/emacs-emojify/issues/</bugs-to> |
134 |
+ <remote-id type="github">iqbalansari/emacs-emojify</remote-id> |
135 |
+ </upstream> |
136 |
+</pkgmetadata> |