Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 2020 00:09:37 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r554996 - in head/devel: . cscope xcscope.el
Message-ID:  <202011130009.0AD09bwb032555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb (src,doc committer)
Date: Fri Nov 13 00:09:36 2020
New Revision: 554996
URL: https://svnweb.freebsd.org/changeset/ports/554996

Log:
  Switch xcscope.el to a separately-maintained version.
  
  The version of xcscope.el bundled with cscope does not work with emacs
  27 as it uses a deprecated function.  Switch to using a newer fork of
  xcscope.el which works with emacs 27 and includes several other fixes
  such as working over tramp-mode.  Since the newer fork is hosted
  independently, add it as a new port which depends on cscope.
  
  PR:		251029
  Reviewed by:	maintainer (devel/cscope)
  Approved by:	swills
  Differential Revision:	https://reviews.freebsd.org/D27172

Added:
  head/devel/xcscope.el/
  head/devel/xcscope.el/Makefile   (contents, props changed)
  head/devel/xcscope.el/distinfo   (contents, props changed)
  head/devel/xcscope.el/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile
  head/devel/cscope/Makefile
  head/devel/cscope/pkg-plist

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu Nov 12 23:16:53 2020	(r554995)
+++ head/devel/Makefile	Fri Nov 13 00:09:36 2020	(r554996)
@@ -6831,6 +6831,7 @@
     SUBDIR += xa65
     SUBDIR += xbyak
     SUBDIR += xc3sprog
+    SUBDIR += xcscope.el
     SUBDIR += xdg-user-dirs
     SUBDIR += xdg-utils
     SUBDIR += xdgpaths

Modified: head/devel/cscope/Makefile
==============================================================================
--- head/devel/cscope/Makefile	Thu Nov 12 23:16:53 2020	(r554995)
+++ head/devel/cscope/Makefile	Fri Nov 13 00:09:36 2020	(r554996)
@@ -14,16 +14,4 @@ USES=		ncurses
 
 GNU_CONFIGURE=	yes
 
-OPTIONS_DEFINE=	XCSCOPE
-OPTIONS_SUB=	yes
-
-XCSCOPE_DESC=	Install Emacs package
-
-EMACSLISPDIR=	${PREFIX}/share/emacs/site-lisp
-
-post-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/contrib/xcscope/cscope-indexer ${STAGEDIR}${PREFIX}/bin
-	${MKDIR} ${STAGEDIR}${EMACSLISPDIR}
-	${INSTALL_DATA} ${WRKSRC}/contrib/xcscope/xcscope.el ${STAGEDIR}${EMACSLISPDIR}
-
 .include <bsd.port.mk>

Modified: head/devel/cscope/pkg-plist
==============================================================================
--- head/devel/cscope/pkg-plist	Thu Nov 12 23:16:53 2020	(r554995)
+++ head/devel/cscope/pkg-plist	Fri Nov 13 00:09:36 2020	(r554996)
@@ -1,5 +1,3 @@
 bin/cscope
 bin/ocs
 man/man1/cscope.1.gz
-%%XCSCOPE%%bin/cscope-indexer
-%%XCSCOPE%%share/emacs/site-lisp/xcscope.el

Added: head/devel/xcscope.el/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/xcscope.el/Makefile	Fri Nov 13 00:09:36 2020	(r554996)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	xcscope.el
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.5
+CATEGORIES=	devel
+
+MAINTAINER=	jhb@FreeBSD.org
+COMMENT=	Emacs minor mode for using cscope
+
+LICENSE=	GPLv2+
+
+RUN_DEPENDS=	cscope:devel/cscope
+
+USES=		emacs
+EMACS_NO_DEPENDS=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	dkogan
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	${EMACS_SITE_LISPDIR}/xcscope.el
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/xcscope.el \
+		${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}
+
+.include <bsd.port.mk>

Added: head/devel/xcscope.el/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/xcscope.el/distinfo	Fri Nov 13 00:09:36 2020	(r554996)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1605054294
+SHA256 (dkogan-xcscope.el-v1.5_GH0.tar.gz) = 463c100e6291a698d262962ac69b1de53d58cb5bc67bab73d958eda926a6803d
+SIZE (dkogan-xcscope.el-v1.5_GH0.tar.gz) = 30161

Added: head/devel/xcscope.el/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/xcscope.el/pkg-descr	Fri Nov 13 00:09:36 2020	(r554996)
@@ -0,0 +1,4 @@
+xcscope is a wrapper around cscope that can be used to navigate source
+files in GNU Emacs.
+
+WWW: https://github.com/dkogan/xcscope.el



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011130009.0AD09bwb032555>