Let 2.5 install python-mode for emacs.
ok mbalmer@
This commit is contained in:
parent
07ecc1cd79
commit
fb45a35004
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2008/03/27 14:31:31 merdely Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2008/05/10 17:10:24 deanna Exp $
|
||||
|
||||
VERSION= 2.5
|
||||
PATCHLEVEL= .2
|
||||
PKG_PATCHLEVEL= p0
|
||||
PKG_PATCHLEVEL= p1
|
||||
SHARED_LIBS= python2.5 0.0
|
||||
|
||||
# PSUBDIR= python/${VERSION}
|
||||
|
@ -2,3 +2,10 @@ If you want to use this package as your default system python, as root
|
||||
create symbolic links like so (overwriting any previous default):
|
||||
ln -sf ${PREFIX}/bin/python2.5 ${PREFIX}/bin/python
|
||||
ln -sf ${PREFIX}/bin/pydoc2.5 ${PREFIX}/bin/pydoc
|
||||
|
||||
You may wish to add the following to your .emacs:
|
||||
|
||||
(autoload 'python-mode "python-mode" "Python Mode." t)
|
||||
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
|
||||
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.5 2008/03/27 14:31:31 merdely Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.6 2008/05/10 17:10:24 deanna Exp $
|
||||
@option no-default-conflict
|
||||
@conflict python->=2.5,<2.6
|
||||
@pkgpath lang/python/2.5
|
||||
@ -1860,3 +1860,6 @@ share/doc/python2.5/
|
||||
share/doc/python2.5/CHANGES.OpenBSD
|
||||
%%mm%%
|
||||
%%ctypes%%
|
||||
share/emacs/
|
||||
share/emacs/site-lisp/
|
||||
share/emacs/site-lisp/python-mode.el
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.54 2008/02/27 00:30:47 djm Exp $
|
||||
# $OpenBSD: Makefile.inc,v 1.55 2008/05/10 17:10:24 deanna Exp $
|
||||
|
||||
# IMPORTANT! If you make any changes to the Python ports, be sure
|
||||
# to also update files/CHANGES.OpenBSD for your change. This is a
|
||||
@ -188,3 +188,9 @@ post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/python${VERSION}
|
||||
${INSTALL_DATA} ${FILESDIR}/CHANGES.OpenBSD \
|
||||
${PREFIX}/share/doc/python${VERSION}/CHANGES.OpenBSD
|
||||
.if ${VERSION} == 2.5
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
|
||||
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el \
|
||||
${PREFIX}/share/emacs/site-lisp
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user