From dc1c804a6c4292b4797ef2af4b008f0d566eb0eb Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Tue, 10 Mar 2015 15:21:30 -0500 Subject: [PATCH] gnu: Add Apache-LogFormat-Compiler. * gnu/packages/web.scm (perl-apache-logformat-compiler): New variable. --- gnu/packages/web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 07fcc21c31..e245bc6cd9 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -496,6 +496,33 @@ from streaming URLs. It is a command-line wrapper for the libquvi library.") (license l:lgpl2.1+))) +(define-public perl-apache-logformat-compiler + (package + (name "perl-apache-logformat-compiler") + (version "0.32") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/K/KA/KAZEBURO/" + "Apache-LogFormat-Compiler-" version ".tar.gz")) + (sha256 + (base32 + "0zyx4r2bxc6d48m70fhcq80nw0q9wnfz6qgn1g0r6bigqgdjq4dw")))) + (build-system perl-build-system) + (native-inputs + `(("perl-http-message" ,perl-http-message) + ("perl-test-mocktime" ,perl-test-mocktime) + ("perl-try-tiny" ,perl-try-tiny) + ("perl-uri" ,perl-uri))) + (propagated-inputs + `(("perl-posix-strftime-compiler" ,perl-posix-strftime-compiler))) + (arguments `(#:tests? #f)) ;TODO: Timezone test failures + (home-page "http://search.cpan.org/dist/Apache-LogFormat-Compiler") + (synopsis "Compile a log format string to perl-code") + (description "This module provides methods to compile a log format string +to perl-code, for faster generation of access_log lines.") + (license (package-license perl)))) + (define-public perl-encode-locale (package (name "perl-encode-locale")