Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451990 - app-emacs/python-mode-6.1.0 should install autopair
Summary: app-emacs/python-mode-6.1.0 should install autopair
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2013-01-14 08:33 UTC by MATSUI Tetsushi
Modified: 2019-10-01 15:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
modified ebuild (python-mode-6.1.0.ebuild,1.21 KB, text/plain)
2013-01-14 08:33 UTC, MATSUI Tetsushi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2013-01-14 08:33:32 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-15 12:33:41 UTC
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,"
Comment 2 Ulrich Müller gentoo-dev 2019-10-01 15:36:07 UTC
Newer python-mode versions no longer bundle autopair, therefore closing.