From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-util/cscope/files/50cscope-gentoo.el | 34 ++++++++++++++++++++++ dev-util/cscope/files/cscope-15.6-darwin.patch | 11 +++++++ .../cscope/files/cscope-15.7a-ocs-sysdir.patch | 23 +++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 dev-util/cscope/files/50cscope-gentoo.el create mode 100644 dev-util/cscope/files/cscope-15.6-darwin.patch create mode 100644 dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch (limited to 'dev-util/cscope/files') diff --git a/dev-util/cscope/files/50cscope-gentoo.el b/dev-util/cscope/files/50cscope-gentoo.el new file mode 100644 index 000000000000..08fd4b449352 --- /dev/null +++ b/dev-util/cscope/files/50cscope-gentoo.el @@ -0,0 +1,34 @@ +(add-to-list 'load-path "@SITELISP@") + +(autoload 'cscope-minor-mode "xcscope") +(autoload 'cscope-display-buffer "xcscope" + "Display the *cscope* buffer." t) +(autoload 'cscope-display-buffer-toggle "xcscope" + "Toggle cscope-display-cscope-buffer, which corresponds to +\"Auto display *cscope* buffer\"." t) +(autoload 'cscope-next-symbol "xcscope" + "Move to the next symbol in the *cscope* buffer." t) +(autoload 'cscope-next-file "xcscope" + "Move to the next file in the *cscope* buffer." t) +(autoload 'cscope-prev-symbol "xcscope" + "Move to the previous symbol in the *cscope* buffer." t) +(autoload 'cscope-prev-file "xcscope" + "Move to the previous file in the *cscope* buffer." t) +(autoload 'cscope-pop-mark "xcscope" + "Pop back to where cscope was last invoked." t) +(autoload 'cscope-set-initial-directory "xcscope" + "Set the cscope-initial-directory variable." t) +(autoload 'cscope-unset-initial-directory "xcscope" + "Unset the cscope-initial-directory variable." t) +(autoload 'cscope-find-this-symbol "xcscope" + "Locate a symbol in source code." t) +(autoload 'cscope-find-global-definition "xcscope" + "Find a symbol's global definition." t) +(autoload 'cscope-find-global-definition-no-prompting "xcscope" + "Find a symbol's global definition without prompting." t) + +(defun cscope:hook () + (cscope-minor-mode)) +(add-hook 'c-mode-hook 'cscope:hook) +(add-hook 'c++-mode-hook 'cscope:hook) +(add-hook 'dired-mode-hook 'cscope:hook) diff --git a/dev-util/cscope/files/cscope-15.6-darwin.patch b/dev-util/cscope/files/cscope-15.6-darwin.patch new file mode 100644 index 000000000000..e755f3257efd --- /dev/null +++ b/dev-util/cscope/files/cscope-15.6-darwin.patch @@ -0,0 +1,11 @@ +--- a/src/constants.h ++++ b/src/constants.h +@@ -103,7 +103,7 @@ + #define INCLUDES 8 + #define FIELDS 9 + +-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ ++#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__MACH__ + # define TERMINFO 0 /* no terminfo curses */ + #else + # define TERMINFO 1 diff --git a/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch new file mode 100644 index 000000000000..6b4c17fe9145 --- /dev/null +++ b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/269305 + +--- cscope-15.7a-orig/contrib/ocs 2004-06-21 20:13:22.000000000 +0200 ++++ cscope-15.7a/contrib/ocs 2009-05-11 22:33:51.000000000 +0200 +@@ -75,17 +75,10 @@ + + #set the default value for SYSDIR + if [ -z "${SYSDIR}" ]; then +- SYSDIR=/usr/local/lib/cs ++ SYSDIR=/var/lib/cs + echo setting default sysdir + fi + +-#check that SYSDIR exists +-if [ ! -d ${SYSDIR} ]; then +- echo -n $SYSDIR does not exist. +- echo Please create the directory and set SYSDIR appropriately +- exit +-fi +- + # Check that cscope is in PATH + type cscope 1>/dev/null 2>&1 + -- cgit v1.2.3