summaryrefslogtreecommitdiff
path: root/app-emacs/emojify
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-04-16 13:07:24 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-04-16 13:07:24 +0100
commit0c100b7dd2b30e75b799d806df4ef899fd98e1ea (patch)
tree464c922e949c7e4d5d891fb2cdda5daee5612537 /app-emacs/emojify
parente68d405c5d712af4387159df07e226217bdda049 (diff)
gentoo resync : 16.04.2022
Diffstat (limited to 'app-emacs/emojify')
-rw-r--r--app-emacs/emojify/Manifest5
-rw-r--r--app-emacs/emojify/emojify-1.2.ebuild40
-rw-r--r--app-emacs/emojify/files/50emojify-gentoo.el5
-rw-r--r--app-emacs/emojify/files/emojify-json-data.patch25
-rw-r--r--app-emacs/emojify/metadata.xml13
5 files changed, 88 insertions, 0 deletions
diff --git a/app-emacs/emojify/Manifest b/app-emacs/emojify/Manifest
new file mode 100644
index 000000000000..c17e9ff7ed39
--- /dev/null
+++ b/app-emacs/emojify/Manifest
@@ -0,0 +1,5 @@
+AUX 50emojify-gentoo.el 176 BLAKE2B 6197ebe5ec99f5ec86d9d9c0b14a8d08695e45ee47ed762bee10a5f31690be5f92a0279a1e1867678b59a25faed0ec589a75d48a3dd783fb558dcf5b42e6e9bf SHA512 4215127c648ad36eae6e8903cc86943e03809c88b97093a8051ca99b2ff9d4c922cea2bd11efe2fad5dcdb6ed325e1cb4ea6819ae15a7553d01910dba791d88c
+AUX emojify-json-data.patch 1184 BLAKE2B ce22ba183077ff5f9e160b477ca2b71f5d19e7bab0e82dd4b3e8791c372b0d762adcb21ea491b265a99cc6f878296c78a0ecf1068be595b63573d08b0e4a8eab SHA512 e75080643ea7058e3630468c1bc2006cef4a339f20dd68dad5a436728731c13d0b246f6442db5ed84b404e1ea2c1bc675deee510d4dd1812e0e2967a73e71b78
+DIST emojify-1.2.tar.gz 1196775 BLAKE2B 5802e391771f93b5181584287a73d6e02b42796a065ab91c0f085debcabb8a7da3bc575e7913b754b1754d0ee5d296fd31196009bdb937babcccc29ae97cdb18 SHA512 a02249d8474f02af1f43058061fa4cfcbccdaa71e632934c6466277eef44f306ea44e0c91dcb83218d6f1f01f3e7379b6d4d82b086113b1a9a41ee5ea3971e39
+EBUILD emojify-1.2.ebuild 899 BLAKE2B 4655b0b733773f3624f1d207269f296ca32148430bc776caee6c8002b431493fdc6428c6f5635e01052cfaf5d66fae800daab64e5605082f3efc74364c9cdc2f SHA512 06ffdf6ba613cf455d3396956054273f07c131af5ee56c37599ad8a03c2a6d7052808c17432004acd2b11d188ac0154fd8dbc61e5676b46324b80ef8aae799f3
+MISC metadata.xml 439 BLAKE2B ba89fe91967745e01dc07b5070618fcb33d6ba19f12b41bab0a3a30051c2f5d191ab7bcc9524e439cc939e0e87d24544889227201c91bf0602188721c634af99 SHA512 7c2a496354e1113d0a16d9acf9fa6472ddcaf7c2163d9520c01e9bb103dde350baaf6c4859ede3e2ed3bf3c5c50b094a905c3b1cc377221463d04dc741d9f581
diff --git a/app-emacs/emojify/emojify-1.2.ebuild b/app-emacs/emojify/emojify-1.2.ebuild
new file mode 100644
index 000000000000..b00b264af3f2
--- /dev/null
+++ b/app-emacs/emojify/emojify-1.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=24.3
+
+inherit elisp
+
+DESCRIPTION="Display emojis in Emacs, like :smile: or plain ASCII ones like :)"
+HOMEPAGE="https://github.com/iqbalansari/emacs-emojify/"
+SRC_URI="https://github.com/iqbalansari/emacs-${PN}/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}"/emacs-${P}
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="test" # requires some (5) unpackaged Emacs testing tools
+
+RDEPEND="app-emacs/ht"
+BDEPEND="${RDEPEND}"
+
+DOCS=( CHANGELOG.org README.org screenshots )
+PATCHES=( "${FILESDIR}"/${PN}-json-data.patch )
+ELISP_REMOVE=".dir-locals.el"
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ elisp_src_prepare
+
+ sed -i "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|g" ${PN}.el || die
+}
+
+src_install() {
+ elisp_src_install
+
+ insinto ${SITEETC}/${PN}
+ doins -r data
+}
diff --git a/app-emacs/emojify/files/50emojify-gentoo.el b/app-emacs/emojify/files/50emojify-gentoo.el
new file mode 100644
index 000000000000..e76565b0655a
--- /dev/null
+++ b/app-emacs/emojify/files/50emojify-gentoo.el
@@ -0,0 +1,5 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'emojify-mode "emojify"
+ "Emojify mode" t)
+(autoload 'global-emojify-mode "emojify"
+ "Toggle Emojify mode in all buffers." t)
diff --git a/app-emacs/emojify/files/emojify-json-data.patch b/app-emacs/emojify/files/emojify-json-data.patch
new file mode 100644
index 000000000000..50f53f243c88
--- /dev/null
+++ b/app-emacs/emojify/files/emojify-json-data.patch
@@ -0,0 +1,25 @@
+index 033c2f5..ca83044 100644
+--- a/emojify.el
++++ b/emojify.el
+@@ -290,9 +290,7 @@ current window too."
+
+ (defcustom emojify-emoji-json
+ (expand-file-name "data/emoji.json"
+- (cond (load-file-name (file-name-directory load-file-name))
+- ((locate-library "emojify") (file-name-directory (locate-library "emojify")))
+- (t default-directory)))
++ "@SITEETC@")
+ "The path to JSON file containing the configuration for displaying emojis."
+ :type 'file
+ :group 'emojify)
+@@ -301,9 +299,7 @@ current window too."
+ (let ((json-array-type 'list)
+ (json-object-type 'hash-table))
+ (json-read-file (expand-file-name "data/emoji-sets.json"
+- (cond (load-file-name (file-name-directory load-file-name))
+- ((locate-library "emojify") (file-name-directory (locate-library "emojify")))
+- (t default-directory))))))
++ "@SITEETC@"))))
+
+ (defcustom emojify-emoji-set "emojione-v2.2.6-22"
+ "The emoji set used to display emojis."
diff --git a/app-emacs/emojify/metadata.xml b/app-emacs/emojify/metadata.xml
new file mode 100644
index 000000000000..92ccec1e632d
--- /dev/null
+++ b/app-emacs/emojify/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/iqbalansari/emacs-emojify/issues/</bugs-to>
+ <remote-id type="github">iqbalansari/emacs-emojify</remote-id>
+ </upstream>
+</pkgmetadata>