summaryrefslogtreecommitdiff
path: root/gnu/packages/logging.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/logging.scm')
-rw-r--r--gnu/packages/logging.scm45
1 files changed, 44 insertions, 1 deletions
diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm
index 68af09e08c3..c40d6ebbaf7 100644
--- a/gnu/packages/logging.scm
+++ b/gnu/packages/logging.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> 2;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
3;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
3;;; 4;;;
4;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
5;;; 6;;;
@@ -21,8 +22,10 @@
21 #:use-module (guix packages) 22 #:use-module (guix packages)
22 #:use-module (guix utils) 23 #:use-module (guix utils)
23 #:use-module (guix download) 24 #:use-module (guix download)
25 #:use-module (guix git-download)
24 #:use-module (guix build-system gnu) 26 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages)) 27 #:use-module (gnu packages perl)
28 #:use-module (gnu packages autotools))
26 29
27(define-public log4cpp 30(define-public log4cpp
28 (package 31 (package
@@ -45,3 +48,43 @@ IDSA and other destinations. It is modeled after the Log4j Java library,
45staying as close to their API as is reasonable.") 48staying as close to their API as is reasonable.")
46 (home-page "http://log4cpp.sourceforge.net/") 49 (home-page "http://log4cpp.sourceforge.net/")
47 (license license:lgpl2.1+))) 50 (license license:lgpl2.1+)))
51
52(define-public glog
53 (package
54 (name "glog")
55 (version "0.3.4")
56 (home-page "https://github.com/google/glog")
57 (source (origin
58 (method git-fetch)
59 (uri (git-reference
60 (url home-page)
61 (commit (string-append "v" version))))
62 (sha256
63 (base32
64 "0ym5g15m7c8kjfr2c3zq6bz08ghin2d1r1nb6v2vnkfh1vn945x1"))
65 (file-name (string-append name "-" version "-checkout"))))
66 (build-system gnu-build-system)
67 (native-inputs
68 `(("perl" ,perl) ;for tests
69 ("autoconf" ,(autoconf-wrapper))
70 ("automake" ,automake)
71 ("libtool" ,libtool)))
72 (arguments
73 '(#:phases (modify-phases %standard-phases
74 (add-before 'configure 'add-automake-files
75 (lambda _
76 ;; The 'test-driver' file is a dangling symlink to
77 ;; /usr/share/automake; replace it. We can't just run
78 ;; 'automake -ac' because it complains about version
79 ;; mismatch, so run the whole thing.
80 (delete-file "test-driver")
81 (delete-file "configure") ;it's read-only
82 (zero? (system* "autoreconf" "-vfi")))))))
83 (synopsis "C++ logging library")
84 (description
85 "Google glog is a library that implements application-level logging.
86This library provides logging APIs based on C++-style streams and various
87helper macros. You can log a message by simply streaming things to log at a
88particular severity level. It allows logging to be controlled from the
89command line.")
90 (license license:bsd-3)))