unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Foo Chuan Wei <chuanwei.foo@hotmail.com>
To: 51182@debbugs.gnu.org
Subject: [bug#51182] [PATCH] gnu: Add cscope
Date: Wed, 13 Oct 2021 14:42:41 +0000	[thread overview]
Message-ID: <SG2PR01MB21605B1B8CCF75598E6EC1948DB79@SG2PR01MB2160.apcprd01.prod.exchangelabs.com> (raw)

* gnu/packages/code.scm (cscope): New variable.
---
 gnu/packages/code.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 7551b31e85..ce30946874 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -936,3 +936,43 @@ extensions over the standard utility.")
       (description "amalgamate.py aims to make it easy to use SQLite-style C
 source and header amalgamation in projects.")
       (license license:bsd-3))))
+
+(define-public cscope
+  (package
+    (name "cscope")
+    (version "15.9")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/cscope/cscope/"
+                                  "v" version "/cscope-" version ".tar.gz"))
+              (sha256
+                (base32
+                  "0ngiv4aj3rr35k3q3wjx0y19gh7i1ydqa0cqip6sjwd8fph5ll65"))))
+    (build-system gnu-build-system)
+    (inputs `(("ncurses" ,ncurses)))
+    (arguments `(#:configure-flags
+                 ;; Specify the correct ncurses directory to prevent incorrect
+                 ;; fallback on SysV curses.
+                 (list (string-append "--with-ncurses="
+                                      (assoc-ref %build-inputs "ncurses")))))
+    (home-page "http://cscope.sourceforge.net")
+    (synopsis "Tool for browsing source code")
+    (description
+      "Cscope is a text screen based source browsing tool. Although it is
+primarily designed to search C code (including lex and yacc files), it can also
+be used for C++ code.
+
+Using cscope, you can easily search for where symbols are used and defined.
+Cscope is designed to answer questions like:
+
+@itemize
+@item Where is this variable used?
+@item What is the value of this preprocessor symbol?
+@item Where is this function in the source files?
+@item What functions call this function?
+@item What functions are called by this function?
+@item Where does the message \"out of space\" come from?
+@item Where is this source file in the directory structure?
+@item What files include this header file?
+@end itemize")
+    (license license:bsd-3)))

base-commit: ac60f71215dbb327d3581b2a31b88de5a87abd06
-- 
2.25.1





             reply	other threads:[~2021-10-13 14:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-13 14:42 Foo Chuan Wei [this message]
2021-10-13 14:56 ` bug#51182: [PATCH] gnu: Add cscope Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SG2PR01MB21605B1B8CCF75598E6EC1948DB79@SG2PR01MB2160.apcprd01.prod.exchangelabs.com \
    --to=chuanwei.foo@hotmail.com \
    --cc=51182@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).