gnu: python-pandas: Fix build on 32-bit.
[jackhill/guix/guix.git] / gnu / packages / logging.scm
CommitLineData
ce9cf64b
RW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
53d159f8 3;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
ce9cf64b
RW
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages logging)
21 #:use-module ((guix licenses) #:prefix license:)
22 #:use-module (guix packages)
23 #:use-module (guix utils)
24 #:use-module (guix download)
53d159f8 25 #:use-module (guix git-download)
ce9cf64b 26 #:use-module (guix build-system gnu)
53d159f8
LC
27 #:use-module (gnu packages perl)
28 #:use-module (gnu packages autotools))
ce9cf64b
RW
29
30(define-public log4cpp
31 (package
32 (name "log4cpp")
33 (version "1.1.1")
34 (source (origin
35 (method url-fetch)
36 (uri (string-append "mirror://sourceforge/log4cpp/log4cpp-"
37 (version-major+minor version) ".x%20%28new%29"
38 "/log4cpp-" (version-major+minor version)
39 "/log4cpp-" version ".tar.gz"))
40 (sha256
41 (base32
42 "1l5yz5rfzzv6g3ynrj14mxfsk08cp5h1ssr7d74hjs0accrg7arm"))))
43 (build-system gnu-build-system)
44 (synopsis "Log library for C++")
45 (description
46 "Log4cpp is library of C++ classes for flexible logging to files, syslog,
47IDSA and other destinations. It is modeled after the Log4j Java library,
48staying as close to their API as is reasonable.")
49 (home-page "http://log4cpp.sourceforge.net/")
50 (license license:lgpl2.1+)))
53d159f8
LC
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)))