Summary: | app-emacs/python-mode-6.1.0 should install autopair | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | MATSUI Tetsushi <VED03370> |
Component: | [OLD] Library | Assignee: | GNU Emacs project <gnu-emacs> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | Keywords: | EBUILD, PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | modified ebuild |
Comment on attachment 335572 [details]
modified ebuild
--- python-mode-6.1.0.ebuild 2013-01-04 11:50:38.000000000 +0100
+++ - 2013-01-15 13:33:32.050153076 +0100
@@ -19,6 +19,24 @@
SITEFILE="50${PN}-gentoo.el"
DOCS="NEWS README"
+src_compile() {
+ elisp-compile autopair/*.el || die
+
+ elisp_src_compile
+}
+
+src_install() {
+ # install subdirs
+ ebegin "Installing Elisp files in subdirs for GNU Emacs support"
+ ( # subshell to avoid pollution of calling environment
+ insinto "${SITELISP}/${PN}/autopair"
+ doins autopair/*.el autopair/*.elc
+ )
+ eend $? "elisp-install: doins failed"
+
+ elisp_src_install
+}
+
pkg_postinst() {
elisp-site-regen
elog "Note that doctest and pymacs are in their own packages,"
Newer python-mode versions no longer bundle autopair, therefore closing. |
Created attachment 335572 [details] modified ebuild With app-emacs/python-mode-6.1.0, or with a few older versions, when I open a python script on emacs, I see a warning message about lack of autopair. To stop it, please install autopair included in the python-mode distribution. The attachment is a modified ebuild to install autopair under site-lisp/python-mode.