From 24b3c0533d600d157bf9ec1cd0f5cf78a47348a3 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Sat, 7 Dec 2013 22:42:18 +0100 Subject: gnu: Add perl-lwp-mediatypes. * gnu/packages/web.scm (perl-lwp-mediatypes): New variable. --- gnu/packages/web.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 0bfa784717..2ed9d5e2d0 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -150,3 +150,25 @@ used by the HTTP protocol (and then some more).") represent \"Uniform Resource Identifier references\" as specified in RFC 2396 (and updated by RFC 2732).") (home-page "http://search.cpan.org/~gaas/URI/"))) + +(define-public perl-lwp-mediatypes + (package + (name "perl-lwp-mediatypes") + (version "6.02") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/G/GA/GAAS/LWP-MediaTypes-" + version ".tar.gz")) + (sha256 + (base32 + "0xmnblp962qy02akah30sji8bxrqcyqlff2w95l199ghql60ny8q")))) + (build-system perl-build-system) + (license (package-license perl)) + (synopsis "Perl module to guess the media type for a file or a URL") + (description + "The LWP::MediaTypes module provides functions for handling media (also +known as MIME) types and encodings. The mapping from file extensions to +media types is defined by the media.types file. If the ~/.media.types file +exists it is used instead.") + (home-page "http://search.cpan.org/~gaas/LWP-MediaTypes/"))) -- cgit 1.4.1