1 |
commit: f086883f639d5e3a23cccde15d6b2df1a7e7397e |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 21 23:54:55 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Jun 26 02:29:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f086883f |
7 |
|
8 |
app-emacs/yc: new package, add 5.2.1 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
app-emacs/yc/Manifest | 1 + |
13 |
app-emacs/yc/files/50yc-gentoo.el | 1 + |
14 |
app-emacs/yc/files/sample.dot.emacs | 12 +++++++++ |
15 |
app-emacs/yc/files/sample.hosts.canna | 2 ++ |
16 |
app-emacs/yc/files/yc-5.2.1-emacs-26.patch | 11 ++++++++ |
17 |
app-emacs/yc/metadata.xml | 9 +++++++ |
18 |
app-emacs/yc/yc-5.2.1.ebuild | 42 ++++++++++++++++++++++++++++++ |
19 |
7 files changed, 78 insertions(+) |
20 |
|
21 |
diff --git a/app-emacs/yc/Manifest b/app-emacs/yc/Manifest |
22 |
new file mode 100644 |
23 |
index 000000000..c25b225a8 |
24 |
--- /dev/null |
25 |
+++ b/app-emacs/yc/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST yc-5.2.1.el.gz 33305 BLAKE2B 8bed47715f49466425afefd036cf562055025564e50ae219e027848104e3851b6cba29f74bcf81487d2494d314a290eabe27e128968dbba9d475562e248a267b SHA512 11c8d63a9f6cb94118a00976518949ab50496f8b8f994a8e1c352be5deefc549540935e0727b036c2b3c493366cfb8c47f040fcc425174b6668ec9f5e8d499dc |
28 |
|
29 |
diff --git a/app-emacs/yc/files/50yc-gentoo.el b/app-emacs/yc/files/50yc-gentoo.el |
30 |
new file mode 100644 |
31 |
index 000000000..431f7e90a |
32 |
--- /dev/null |
33 |
+++ b/app-emacs/yc/files/50yc-gentoo.el |
34 |
@@ -0,0 +1 @@ |
35 |
+(add-to-list 'load-path "@SITELISP@") |
36 |
|
37 |
diff --git a/app-emacs/yc/files/sample.dot.emacs b/app-emacs/yc/files/sample.dot.emacs |
38 |
new file mode 100644 |
39 |
index 000000000..101532e70 |
40 |
--- /dev/null |
41 |
+++ b/app-emacs/yc/files/sample.dot.emacs |
42 |
@@ -0,0 +1,12 @@ |
43 |
+;;;; -*- mode: lisp-interaction; syntax: elisp; coding: iso-2022-7bit -*- |
44 |
+ |
45 |
+;;;; Configuration for yc |
46 |
+(setq yc-server-host "unix") |
47 |
+;If you use inet socket service, enable the following line. |
48 |
+;(setq yc-server-host "localhost") |
49 |
+(setq yc-use-color t) |
50 |
+(if (eq window-system 'x) |
51 |
+ (setq yc-use-fence nil) |
52 |
+ (setq yc-use-fence t)) |
53 |
+(load "yc") |
54 |
+(global-yc-mode 1) |
55 |
|
56 |
diff --git a/app-emacs/yc/files/sample.hosts.canna b/app-emacs/yc/files/sample.hosts.canna |
57 |
new file mode 100644 |
58 |
index 000000000..960d75f52 |
59 |
--- /dev/null |
60 |
+++ b/app-emacs/yc/files/sample.hosts.canna |
61 |
@@ -0,0 +1,2 @@ |
62 |
+localhost |
63 |
+unix |
64 |
|
65 |
diff --git a/app-emacs/yc/files/yc-5.2.1-emacs-26.patch b/app-emacs/yc/files/yc-5.2.1-emacs-26.patch |
66 |
new file mode 100644 |
67 |
index 000000000..19925c65c |
68 |
--- /dev/null |
69 |
+++ b/app-emacs/yc/files/yc-5.2.1-emacs-26.patch |
70 |
@@ -0,0 +1,11 @@ |
71 |
+--- a/yc.el |
72 |
++++ b/yc.el |
73 |
+@@ -2071,7 +2071,7 @@ |
74 |
+ ;; 文節を指定しない��豺隋���現在の文節が対��櫃箸覆� |
75 |
+ ;; 読みを��萋世靴進言瓩呂修瞭匹澆鬟⑤礇奪轡紊垢� |
76 |
+ ;; cut が 非nil の��豺隋���指定文節以降の読みを削除する |
77 |
+-(defun yc-yomi (&optional idx &optional cut) |
78 |
++(defun yc-yomi (&optional idx cut) |
79 |
+ (if (integerp idx) |
80 |
+ (yc-put-bunsetsu-yomi idx (yc-get-bunsetsu-yomi idx cut) cut) |
81 |
+ (yc-put-bunsetsu-yomi yc-mark (yc-get-bunsetsu-yomi yc-mark cut) cut))) |
82 |
|
83 |
diff --git a/app-emacs/yc/metadata.xml b/app-emacs/yc/metadata.xml |
84 |
new file mode 100644 |
85 |
index 000000000..37185a78f |
86 |
--- /dev/null |
87 |
+++ b/app-emacs/yc/metadata.xml |
88 |
@@ -0,0 +1,9 @@ |
89 |
+<?xml version="1.0" encoding="UTF-8"?> |
90 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
91 |
+<pkgmetadata> |
92 |
+ <maintainer type="person"> |
93 |
+ <description>co-maintainers welcome</description> |
94 |
+ <name>Alessandro Barbieri</name> |
95 |
+ <email>lssndrbarbieri@×××××.com</email> |
96 |
+ </maintainer> |
97 |
+</pkgmetadata> |
98 |
|
99 |
diff --git a/app-emacs/yc/yc-5.2.1.ebuild b/app-emacs/yc/yc-5.2.1.ebuild |
100 |
new file mode 100644 |
101 |
index 000000000..f76978fa9 |
102 |
--- /dev/null |
103 |
+++ b/app-emacs/yc/yc-5.2.1.ebuild |
104 |
@@ -0,0 +1,42 @@ |
105 |
+# Copyright 1999-2022 Gentoo Authors |
106 |
+# Distributed under the terms of the GNU General Public License v2 |
107 |
+ |
108 |
+EAPI=8 |
109 |
+ |
110 |
+inherit elisp |
111 |
+ |
112 |
+DESCRIPTION="Yet another Canna client on Emacsen" |
113 |
+HOMEPAGE="http://www.ceres.dti.ne.jp/~knak/yc.html" |
114 |
+SRC_URI="http://www.ceres.dti.ne.jp/~knak/${P}.el.gz" |
115 |
+ |
116 |
+LICENSE="GPL-2" |
117 |
+SLOT="0" |
118 |
+KEYWORDS="~amd64" |
119 |
+ |
120 |
+RDEPEND="app-i18n/canna" |
121 |
+ |
122 |
+ELISP_PATCHES="${P}-emacs-26.patch" |
123 |
+SITEFILE="50${PN}-gentoo.el" |
124 |
+ |
125 |
+src_install() { |
126 |
+ elisp_src_install |
127 |
+ |
128 |
+ dodoc "${FILESDIR}"/sample.{dot.emacs,hosts.canna} |
129 |
+} |
130 |
+ |
131 |
+pkg_postinst() { |
132 |
+ elisp_pkg_postinst |
133 |
+ |
134 |
+ elog "See the sample.dot.emacs in ${EPREFIX}/usr/share/doc/${PF}." |
135 |
+ elog |
136 |
+ elog "And If you use unix domain socket for connecting the canna server," |
137 |
+ elog "please confirm that there's *no* following line in your ~/.emacs:" |
138 |
+ elog ' (setq yc-server-host "localhost")' |
139 |
+ elog |
140 |
+ elog "If you use inet domain socket for connecting the canna server," |
141 |
+ elog "please modify as following in ${EPREFIX}/etc/conf.d/canna:" |
142 |
+ elog ' CANNASERVER_OPTS="-inet"' |
143 |
+ elog |
144 |
+ elog "And create ${EPREFIX}/etc/hosts.canna." |
145 |
+ elog "See the sample.hosts.canna in ${EPREFIX}/usr/share/doc/${PF}." |
146 |
+} |