* [PATCH] gnu: Add the-silver-searcher.
@ 2015-03-19 13:45 Tomáš Čech
2015-03-20 20:22 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Tomáš Čech @ 2015-03-19 13:45 UTC (permalink / raw)
To: guix-devel
* gnu/packages/code.scm (the-silver-searcher): New variable.
---
gnu/packages/code.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 48 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 5446812..b1a7c72 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -20,9 +20,12 @@
(define-module (gnu packages code)
#:use-module (guix packages)
#:use-module (guix download)
- #:use-module (guix licenses)
+ #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system gnu)
+ #:use-module (gnu packages compression)
#:use-module (gnu packages emacs)
+ #:use-module (gnu packages pcre)
+ #:use-module (gnu packages pkg-config)
#:use-module (gnu packages perl)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages autogen)
@@ -54,7 +57,7 @@
control flow of the program. It can output the graph in several styles and
in either the POSIX format or in an extended GNU format. cflow also includes
a major mode for Emacs for examining the flowcharts that it produces.")
- (license gpl3+)))
+ (license license:gpl3+)))
(define-public complexity
(package
@@ -78,7 +81,7 @@ a major mode for Emacs for examining the flowcharts that it produces.")
convoluted, overly long or otherwise difficult to understand. This
may help in learning or reviewing unfamiliar code or perhaps
highlighting your own code that seemed comprehensible when you wrote it.")
- (license gpl3+)))
+ (license license:gpl3+)))
(define-public global ; a global variable
(package
@@ -119,7 +122,7 @@ highlighting your own code that seemed comprehensible when you wrote it.")
across a wide array of environments, such as different text editors, shells
and web browsers. The resulting tags are useful for quickly moving around in
a large, deeply nested project.")
- (license gpl3+)))
+ (license license:gpl3+)))
(define-public sloccount
(package
@@ -175,4 +178,44 @@ code (SLOC) in large software systems. It can automatically identify and
measure a wide range of programming languages. It automatically estimates the
effort, time, and money it would take to develop the software, using the
COCOMO model or user-provided parameters.")
- (license gpl2+)))
+ (license license:gpl2+)))
+
+(define-public the-silver-searcher
+ (package
+ (name "the-silver-searcher")
+ (version "0.29.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/ggreer/the_silver_searcher/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0ah7vcqprl9hhafi68bvzaiywy7dfm28zf7kpw3xrlqzfn0vg7kp"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("pcre" ,pcre)
+ ("xz" ,xz)
+ ("zlib" ,zlib)))
+ (arguments
+ `(#:phases
+ ;; there is no configure yet, so lets create it, but let configure and
+ ;; make do the work in later phases
+ (alist-cons-before 'configure 'autoconf
+ (lambda _
+ (substitute* "build.sh" (("./configure") "true")
+ (("make -j4") "true"))
+ (zero? (system* "sh" "build.sh")))
+ %standard-phases)))
+ (home-page "http://geoff.greer.fm/ag/")
+ (synopsis "Fast code searching tool")
+ (description
+ "The silver searcher - shortly ag - is tool for quickly searching through
+files, but compared to grep is much faster and respects files like .gitignore,
+.hgignore, etc.")
+ (license license:asl2.0)))
--
2.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add the-silver-searcher.
2015-03-19 13:45 [PATCH] gnu: Add the-silver-searcher Tomáš Čech
@ 2015-03-20 20:22 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-03-20 20:22 UTC (permalink / raw)
To: Tomáš Čech; +Cc: guix-devel
Tomáš Čech <sleep_walker@gnu.org> skribis:
> * gnu/packages/code.scm (the-silver-searcher): New variable.
[...]
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> + "https://github.com/ggreer/the_silver_searcher/archive/"
> + version ".tar.gz"))
Indentation.
> + (sha256
> + (base32
> + "0ah7vcqprl9hhafi68bvzaiywy7dfm28zf7kpw3xrlqzfn0vg7kp"))))
Please add this field to the origin:
(file-name (string-append name "-" version ".tar.gz"))
so the source tarball in the store has a more meaningful name.
> + ;; there is no configure yet, so lets create it, but let configure and
> + ;; make do the work in later phases
“There” and “let’s” plus final period.
> + (alist-cons-before 'configure 'autoconf
> + (lambda _
> + (substitute* "build.sh" (("./configure") "true")
> + (("make -j4") "true"))
Please indent the ‘substitute*’ form as is done in the other files.
> + (description
> + "The silver searcher - shortly ag - is tool for quickly searching through
“The silver search, or 'ag', is a tool”
OK to push with these changes, thank you!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-20 20:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 13:45 [PATCH] gnu: Add the-silver-searcher Tomáš Čech
2015-03-20 20:22 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.