ports/151830: [patch] devel/cmake: install cmake-mode.el
Anonymous
swell.k at gmail.com
Sat Oct 30 13:00:20 UTC 2010
>Number: 151830
>Category: ports
>Synopsis: [patch] devel/cmake: install cmake-mode.el
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Oct 30 13:00:19 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
emacs-24.0.50.102155,1
>Description:
GNU Emacs unlike Vim doesn't bundle cmake-mode in their distribution. So,
install it from the same tarball as cmake itself to avoid the case when
user has an outdated cmake-mode.el in site-lisp.
>How-To-Repeat:
;; put following to ~/.emacs and try to open a cmake file
(autoload 'cmake-mode "cmake-mode" nil t)
(add-to-list 'auto-mode-alist '("CMakeLists\\.txt" . cmake-mode))
(add-to-list 'auto-mode-alist '("\\.cmake$" . cmake-mode))
>Fix:
--- a.diff begins here ---
Index: devel/cmake/Makefile
===================================================================
RCS file: /a/.cvsup/ports/devel/cmake/Makefile,v
retrieving revision 1.42
diff -u -p -r1.42 Makefile
--- devel/cmake/Makefile 21 Oct 2010 20:28:22 -0000 1.42
+++ devel/cmake/Makefile 30 Oct 2010 12:10:04 -0000
@@ -50,4 +50,7 @@ post-patch:
${WRKSRC}/Modules/FindKDE4.cmake
@${FIND} ${WRKSRC} -name "*.bak" -delete -o -name "*.orig" -delete
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/Docs/*.el ${PREFIX}/share/emacs/site-lisp
+
.include <bsd.port.mk>
Index: devel/cmake/pkg-plist
===================================================================
RCS file: /a/.cvsup/ports/devel/cmake/pkg-plist,v
retrieving revision 1.25
diff -u -p -r1.25 pkg-plist
--- devel/cmake/pkg-plist 24 Jul 2010 07:45:08 -0000 1.25
+++ devel/cmake/pkg-plist 30 Oct 2010 12:09:59 -0000
@@ -507,6 +507,7 @@ bin/ctest
%%DATADIR%%/Templates/staticLibFooter.dsptemplate
%%DATADIR%%/Templates/staticLibHeader.dsptemplate
%%DATADIR%%/include/cmCPluginAPI.h
+share/emacs/site-lisp/cmake-mode.el
%%DOCSDIR%%/Copyright.txt
%%DOCSDIR%%/ccmake.docbook
%%DOCSDIR%%/ccmake.html
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list