From swell.k@gmail.com  Sat Oct 30 12:56:37 2010
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DFA991065670
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Oct 2010 12:56:37 +0000 (UTC)
	(envelope-from swell.k@gmail.com)
Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54])
	by mx1.freebsd.org (Postfix) with ESMTP id 9B6778FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Oct 2010 12:56:37 +0000 (UTC)
Received: by ywh2 with SMTP id 2so2020433ywh.13
        for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Oct 2010 05:56:36 -0700 (PDT)
Received: by 10.229.105.17 with SMTP id r17mr12744961qco.187.1288443396060;
        Sat, 30 Oct 2010 05:56:36 -0700 (PDT)
Received: from localhost ([208.53.142.42])
        by mx.google.com with ESMTPS id p22sm1329005vcf.44.2010.10.30.05.56.32
        (version=SSLv3 cipher=RC4-MD5);
        Sat, 30 Oct 2010 05:56:35 -0700 (PDT)
Message-Id: <867hgz6dqg.fsf@gmail.com>
Date: Sat, 30 Oct 2010 16:56:23 +0400
From: Anonymous <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] devel/cmake: install cmake-mode.el

>Number:         151830
>Category:       ports
>Synopsis:       [patch] devel/cmake: install cmake-mode.el
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 30 13:00:19 UTC 2010
>Closed-Date:    Wed Nov 09 23:26:41 UTC 2011
>Last-Modified:  Wed Nov  9 23:30:12 UTC 2011
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Oct 30 13:00:29 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151830 
State-Changed-From-To: open->closed 
State-Changed-By: rakuco 
State-Changed-When: Wed Nov 9 23:26:40 UTC 2011 
State-Changed-Why:  
Committed, explicitly mentioning cmake-mode.el in the Makefile and 
ordering the plist. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151830 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/151830: commit references a PR
Date: Wed,  9 Nov 2011 23:25:31 +0000 (UTC)

 rakuco      2011-11-09 23:25:19 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/cmake          Makefile pkg-plist 
   Log:
   - Install cmake-mode.el [1].
   - Set LICENSE.
   
   PR:             ports/151830 [1]
   Submitted by:   Anonymous <swell.k AT gmail.com> [1]
   Approved by:    makc (mentor)
   
   Revision  Changes    Path
   1.51      +6 -0      ports/devel/cmake/Makefile
   1.29      +1 -0      ports/devel/cmake/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
