guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Add cscope


From: Jeff Mickey
Subject: [PATCH] gnu: Add cscope
Date: Tue, 29 Sep 2015 18:13:31 -0700
User-agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu)

Needed this recently, sending upstream :)

The contrib/ folder in cscope yet, but it only includes outdated
versions of tools that should be found elsewhere (cscope-indexer and
xcscope.el)

  //  codemac

>From 64a74d39d1d58c12806f3991afd5443d8d75bcd5 Mon Sep 17 00:00:00 2001
From: Jeff Mickey <address@hidden>
Date: Tue, 29 Sep 2015 18:07:44 -0700
Subject: [PATCH] gnu: Add cscope

* gnu/packages/cscope.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
---
 gnu-system.am           |  1 +
 gnu/packages/cscope.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 gnu/packages/cscope.scm

diff --git a/gnu-system.am b/gnu-system.am
index 98634a0..feb6cf6 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -73,6 +73,7 @@ GNU_SYSTEM_MODULES =                          \
   gnu/packages/cross-base.scm                  \
   gnu/packages/crypto.scm                      \
   gnu/packages/cryptsetup.scm                  \
+  gnu/packages/cscope.scm                      \
   gnu/packages/cups.scm                                \
   gnu/packages/curl.scm                                \
   gnu/packages/cursynth.scm                    \
diff --git a/gnu/packages/cscope.scm b/gnu/packages/cscope.scm
new file mode 100644
index 0000000..890cdfa
--- /dev/null
+++ b/gnu/packages/cscope.scm
@@ -0,0 +1,49 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Jeff Mickey <address@hidden>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+
+(define-module (gnu packages cscope)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system gnu)
+  #:use-module (gnu packages ncurses))
+
+(define-public cscope
+  (package
+    (name "cscope")
+    (version "15.8a")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://downloads.sourceforge.net/";
+                                  name "/" name "-" version ".tar.gz"))
+              (sha256
+               (base32 
"07jdhxvp3dv7acvp0pwsdab1g2ncxjlcf838lj7vxgjs1p26lwzb"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags (list (string-append "--with-ncurses=" (assoc-ref 
%build-inputs "ncurses")))))
+    (inputs `(("ncurses" ,ncurses)))
+    (home-page "http://cscope.sourceforge.net";)
+    (synopsis "Tool for browsing source code, with ncurses and editor 
interfaces")
+    (description "A tool for browsing source code. It has an information
+database generated for faster searches and later reference, a fuzzy parser
+that supports C, but is flexible enough to be useful for C++ and Java, and has
+a command line mode for inclusion in scripts or as a backend to a
+GUI/frontend.")
+    (license license:bsd-3)))
+
-- 
2.5.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]