gnu: grep: Update to 3.1.
[jackhill/guix/guix.git] / gnu / packages / libidn.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Andreas Enge <andreas@enge.fr>
f98adb1c 3;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
77c5d63f 4;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
2ee8edc4 5;;;
233e7676 6;;; This file is part of GNU Guix.
2ee8edc4 7;;;
233e7676 8;;; GNU Guix is free software; you can redistribute it and/or modify it
2ee8edc4
AE
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
233e7676 13;;; GNU Guix is distributed in the hope that it will be useful, but
2ee8edc4
AE
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
233e7676 19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
2ee8edc4 20
1ffa7090 21(define-module (gnu packages libidn)
59a43334 22 #:use-module (gnu packages)
9b5fccbc 23 #:use-module (gnu packages compression)
0418ff7a 24 #:use-module (gnu packages libunistring)
2ee8edc4
AE
25 #:use-module (guix licenses)
26 #:use-module (guix packages)
27 #:use-module (guix download)
28 #:use-module (guix build-system gnu))
29
30(define-public libidn
31 (package
32 (name "libidn")
4f81d527 33 (version "1.33")
2ee8edc4
AE
34 (source (origin
35 (method url-fetch)
36 (uri (string-append "mirror://gnu/libidn/libidn-" version
37 ".tar.gz"))
4f81d527
LF
38 (sha256
39 (base32
40 "068fjg2arlppjqqpzd714n1lf6gxkpac9v5yyvp1qwmv6nvam9s4"))))
2ee8edc4
AE
41 (build-system gnu-build-system)
42;; FIXME: No Java and C# libraries are currently built.
f50d2669 43 (synopsis "Internationalized string processing library")
2ee8edc4 44 (description
12bcf94a 45 "libidn is a library implementing of the Stringprep, Punycode and IDNA
79c311b8 46specifications. These are used to encode and decode internationalized domain
c2f4cab9
LF
47names according to the IDNA2003 specifications. It includes native C, C# and
48Java libraries.")
74dd0e48
EF
49 ;; The C code is dual-licensed gpl2+ lgpl3+, the manual is fdl1.3+,
50 ;; the command line tool is gpl3+.
51 (license (list gpl2+ gpl3+ lgpl3+ fdl1.3+))
6fd52309 52 (home-page "https://www.gnu.org/software/libidn/")))
d058708e 53
250a8abc
LF
54(define-public libidn2
55 (package
56 (name "libidn2")
9b5fccbc 57 (version "2.0.2")
250a8abc
LF
58 (source (origin
59 (method url-fetch)
f98adb1c 60 (uri (string-append "mirror://gnu/libidn/" name "-" version
9b5fccbc 61 ".tar.lz"))
250a8abc
LF
62 (sha256
63 (base32
9b5fccbc
MB
64 "0pqaj8d01aj4i110669fincqs10kgynyqcrmq2q7pss8v9dcd1jq"))))
65 (native-inputs
66 `(("lzip" ,lzip)))
0418ff7a
LF
67 (inputs
68 `(("libunistring" ,libunistring)))
250a8abc
LF
69 (build-system gnu-build-system)
70 (synopsis "Internationalized domain name library for IDNA2008")
71 (description "Libidn2 is an internationalized domain library implementing
72the IDNA2008 specifications. Libidn2 is believed to be a complete IDNA2008
73implementation, but has yet to be as extensively used as the original Libidn
74library.")
75 (home-page "https://www.gnu.org/software/libidn/#libidn2")
76 ;; The command-line tool 'idn2' is GPL3+, while the library is dual-licensed
77 ;; GPL2+ or LGPL3+.
78 (license (list gpl2+ gpl3+ lgpl3+))))