* [PATCH] gnu: Add colordiff.
@ 2015-03-17 23:06 Tomáš Čech
2015-03-19 9:09 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Tomáš Čech @ 2015-03-17 23:06 UTC (permalink / raw)
To: guix-devel
* gnu/packages/patchutils.scm (colordiff): New variable.
---
gnu/packages/patchutils.scm | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index 48f4d29..5fe4a17 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -28,7 +28,8 @@
#:use-module (gnu packages file)
#:use-module (gnu packages gawk)
#:use-module (gnu packages less)
- #:use-module (gnu packages perl))
+ #:use-module (gnu packages perl)
+ #:use-module (gnu packages xml))
(define-public patchutils
(package
@@ -140,3 +141,33 @@ listing the files modified by a patch.")
track of the changes each patch makes. Patches can be applied, un-applied,
refreshed, and more.")
(license gpl2)))
+
+(define-public colordiff
+ (package
+ (name "colordiff")
+ (version "1.0.13")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://www.colordiff.org/colordiff-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "0akcz1p3klsjnhwcqdfq4grs6paljc5c0jzr3mqla5f862hhaa6f"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f
+ #:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
+ "INSTALL_DIR=/bin" "MAN_DIR=/share/man/man1")
+ #:phases
+ (alist-delete 'configure
+ (alist-delete 'build %standard-phases))))
+ (inputs
+ `(("perl" ,perl)
+ ("xmlto" ,xmlto)))
+ (home-page "http://www.colordiff.org")
+ (synopsis "Perl wrapper for coloring diff output")
+ (description
+ "Colordiff is perl script wrapper on top of diff command which provides
+'syntax highlighting' for various patch formats.")
+ (license gpl2+)))
+
--
2.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add colordiff.
2015-03-17 23:06 [PATCH] gnu: Add colordiff Tomáš Čech
@ 2015-03-19 9:09 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-03-19 9:09 UTC (permalink / raw)
To: Tomáš Čech; +Cc: guix-devel
Tomáš Čech <sleep_walker@gnu.org> skribis:
> * gnu/packages/patchutils.scm (colordiff): New variable.
[...]
> + (synopsis "Perl wrapper for coloring diff output")
What about “Display diff output with colors”?
> + (description
> + "Colordiff is perl script wrapper on top of diff command which provides
s/perl/Perl/
OK to push with these changes, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-19 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 23:06 [PATCH] gnu: Add colordiff Tomáš Čech
2015-03-19 9:09 ` 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.