public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-emacs/yc/, app-emacs/yc/files/
@ 2017-07-20 13:44 Akinori Hattori
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori @ 2017-07-20 13:44 UTC (permalink / raw
  To: gentoo-commits

commit:     d91658c607b4d4147e5c75c65b7f1baed5dd8776
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 20 13:41:30 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Thu Jul 20 13:41:30 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d91658c6

app-emacs/yc: update to EAPI 6

Gentoo-Bug: 621518

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-emacs/yc/files/50yc-gentoo.el                  |  3 --
 .../files/{sample.dot.emacs-4 => sample.dot.emacs} |  0
 app-emacs/yc/metadata.xml                          | 16 ++++----
 app-emacs/yc/yc-4.0.13.ebuild                      | 48 +++++++++++-----------
 4 files changed, 31 insertions(+), 36 deletions(-)

diff --git a/app-emacs/yc/files/50yc-gentoo.el b/app-emacs/yc/files/50yc-gentoo.el
index 33bd4a72a45..431f7e90ae7 100644
--- a/app-emacs/yc/files/50yc-gentoo.el
+++ b/app-emacs/yc/files/50yc-gentoo.el
@@ -1,4 +1 @@
-
-;;; YC site-lisp configuration
-
 (add-to-list 'load-path "@SITELISP@")

diff --git a/app-emacs/yc/files/sample.dot.emacs-4 b/app-emacs/yc/files/sample.dot.emacs
similarity index 100%
rename from app-emacs/yc/files/sample.dot.emacs-4
rename to app-emacs/yc/files/sample.dot.emacs

diff --git a/app-emacs/yc/metadata.xml b/app-emacs/yc/metadata.xml
index 02fb2539160..2c9ca3c416d 100644
--- a/app-emacs/yc/metadata.xml
+++ b/app-emacs/yc/metadata.xml
@@ -1,12 +1,12 @@
 <?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>
-<maintainer type="project">
-  <email>cjk@gentoo.org</email>
-  <name>Cjk</name>
-</maintainer>
+  <maintainer type="project">
+    <email>gnu-emacs@gentoo.org</email>
+    <name>Gentoo GNU Emacs project</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>cjk@gentoo.org</email>
+    <name>Cjk</name>
+  </maintainer>
 </pkgmetadata>

diff --git a/app-emacs/yc/yc-4.0.13.ebuild b/app-emacs/yc/yc-4.0.13.ebuild
index f2724d97396..a8179e6426b 100644
--- a/app-emacs/yc/yc-4.0.13.ebuild
+++ b/app-emacs/yc/yc-4.0.13.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=3
+EAPI="6"
 
 inherit elisp toolchain-funcs
 
@@ -14,42 +14,40 @@ SLOT="0"
 KEYWORDS="alpha ~amd64 ppc x86"
 IUSE=""
 
-DEPEND=""
-RDEPEND=">=app-i18n/canna-3.6"
+RDEPEND="app-i18n/canna"
 
 SITEFILE="50${PN}-gentoo.el"
 
 src_prepare() {
-	sed -e 's:$(CC) -o $(PROGRAM) $(OBJS):$(CC) ${CFLAGS} ${LDFLAGS} -o $(PROGRAM) $(OBJS):' -i Makefile || die
+	sed -i '/$(CC)/s/ -o / $(CFLAGS) $(LDFLAGS) -o /' Makefile
+
+	default
 }
 
 src_compile() {
-	emake CC="$(tc-getCC)" || die
+	emake CC="$(tc-getCC)"
 }
 
 src_install() {
-	elisp-install ${PN} *.el *.elc || die
-	elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
-	dobin icanna || die
-	newdoc "${FILESDIR}"/sample.dot.emacs-4 sample.dot.emacs || die
-	dodoc "${FILESDIR}"/sample.hosts.canna || die
+	elisp_src_install
+
+	dobin icanna
+	dodoc "${FILESDIR}"/sample.{dot.emacs,hosts.canna}
 }
 
 pkg_postinst() {
-	elisp-site-regen
-	elog "See the sample.dot.emacs file in /usr/share/doc/${PF}/."
+	elisp_pkg_postinst
+
+	elog "See the sample.dot.emacs in ${EPREFIX}/usr/share/doc/${PF}."
 	elog
-	elog "And If you use unix domain socket for connecting the canna server, "
-	elog "  please confirm that there's *no* following line in your .emacs ."
-	elog "  (setq yc-server-host \"localhost\")"
+	elog "And If you use unix domain socket for connecting the canna server,"
+	elog "please confirm that there's *no* following line in your ~/.emacs:"
+	elog '  (setq yc-server-host "localhost")'
 	elog
-	elog "If you use inet domain socket for connecting the canna server, "
-	elog "  please modify as following in /etc/conf.d/canna."
-	elog "  CANNASERVER_OPTS=\"-inet\""
-	elog "  And create /etc/hosts.canna."
-	elog "  (see the sample.hosts.canna file in /usr/share/doc/${PF}/)"
-}
-
-pkg_postrm() {
-	elisp-site-regen
+	elog "If you use inet domain socket for connecting the canna server,"
+	elog "please modify as following in ${EPREFIX}/etc/conf.d/canna:"
+	elog '  CANNASERVER_OPTS="-inet"'
+	elog
+	elog "And create ${EPREFIX}/etc/hosts.canna."
+	elog "See the sample.hosts.canna in ${EPREFIX}/usr/share/doc/${PF}."
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-emacs/yc/, app-emacs/yc/files/
@ 2018-06-11 16:29 Ulrich Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2018-06-11 16:29 UTC (permalink / raw
  To: gentoo-commits

commit:     68bc333509848bad6a24628582a77313bfffb713
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 11 16:27:18 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jun 11 16:28:54 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68bc3335

app-emacs/yc: Fix byte-compilation with Emacs 26.

Closes: https://bugs.gentoo.org/657914
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-emacs/yc/files/yc-5.2.1-emacs-26.patch | 11 +++++++++++
 app-emacs/yc/yc-5.2.1.ebuild               |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)

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
new file mode 100644
index 00000000000..19925c65c45
--- /dev/null
+++ b/app-emacs/yc/files/yc-5.2.1-emacs-26.patch
@@ -0,0 +1,11 @@
+--- a/yc.el
++++ b/yc.el
+@@ -2071,7 +2071,7 @@
+ ;; ^[$BJ8@a$r;XDj$7$J$$>l9g!"8=:_$NJ8@a$,BP>]$H$J$k^[(B
+ ;; ^[$BFI$_$r<hF@$7$?J8@a$O$=$NFI$_$r%-%c%C%7%e$9$k^[(B
+ ;; cut ^[$B$,^[(B ^[$BHs^[(Bnil ^[$B$N>l9g!";XDjJ8@a0J9_$NFI$_$r:o=|$9$k^[(B
+-(defun yc-yomi (&optional idx &optional cut)
++(defun yc-yomi (&optional idx cut)
+   (if (integerp idx)
+       (yc-put-bunsetsu-yomi idx (yc-get-bunsetsu-yomi idx cut) cut)
+     (yc-put-bunsetsu-yomi yc-mark (yc-get-bunsetsu-yomi yc-mark cut) cut)))

diff --git a/app-emacs/yc/yc-5.2.1.ebuild b/app-emacs/yc/yc-5.2.1.ebuild
index eb6992a1aa2..22ccd0a3230 100644
--- a/app-emacs/yc/yc-5.2.1.ebuild
+++ b/app-emacs/yc/yc-5.2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -16,6 +16,7 @@ IUSE=""
 
 RDEPEND="app-i18n/canna"
 
+ELISP_PATCHES="${P}-emacs-26.patch"
 SITEFILE="50${PN}-gentoo.el"
 
 src_install() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-11 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-20 13:44 [gentoo-commits] repo/gentoo:master commit in: app-emacs/yc/, app-emacs/yc/files/ Akinori Hattori
  -- strict thread matches above, loose matches on Subject: below --
2018-06-11 16:29 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