gnu: emacs-svg-icon: Fix grammar.
[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>
b8b0f536 5;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
acc2dab7 6;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
f9bb942a 7;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
2ee8edc4 8;;;
233e7676 9;;; This file is part of GNU Guix.
2ee8edc4 10;;;
233e7676 11;;; GNU Guix is free software; you can redistribute it and/or modify it
2ee8edc4
AE
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
233e7676 16;;; GNU Guix is distributed in the hope that it will be useful, but
2ee8edc4
AE
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
233e7676 22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
2ee8edc4 23
1ffa7090 24(define-module (gnu packages libidn)
59a43334 25 #:use-module (gnu packages)
9b5fccbc 26 #:use-module (gnu packages compression)
0418ff7a 27 #:use-module (gnu packages libunistring)
2ee8edc4
AE
28 #:use-module (guix licenses)
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix build-system gnu))
32
33(define-public libidn
34 (package
35 (name "libidn")
f9bb942a 36 (version "1.35")
2ee8edc4
AE
37 (source (origin
38 (method url-fetch)
39 (uri (string-append "mirror://gnu/libidn/libidn-" version
40 ".tar.gz"))
4f81d527
LF
41 (sha256
42 (base32
f9bb942a 43 "07pyy0afqikfq51z5kbzbj9ldbd12mri0zvx0mfv3ds6bc0g26pi"))))
2ee8edc4 44 (build-system gnu-build-system)
f9bb942a 45 ;; FIXME: No Java and C# libraries are currently built.
85b44823
MB
46 (arguments
47 `(#:configure-flags '("--disable-static")))
f50d2669 48 (synopsis "Internationalized string processing library")
2ee8edc4 49 (description
12bcf94a 50 "libidn is a library implementing of the Stringprep, Punycode and IDNA
79c311b8 51specifications. These are used to encode and decode internationalized domain
c2f4cab9
LF
52names according to the IDNA2003 specifications. It includes native C, C# and
53Java libraries.")
74dd0e48
EF
54 ;; The C code is dual-licensed gpl2+ lgpl3+, the manual is fdl1.3+,
55 ;; the command line tool is gpl3+.
56 (license (list gpl2+ gpl3+ lgpl3+ fdl1.3+))
6fd52309 57 (home-page "https://www.gnu.org/software/libidn/")))
d058708e 58
250a8abc
LF
59(define-public libidn2
60 (package
61 (name "libidn2")
86b38e4a 62 (version "2.3.0")
250a8abc
LF
63 (source (origin
64 (method url-fetch)
f98adb1c 65 (uri (string-append "mirror://gnu/libidn/" name "-" version
9b5fccbc 66 ".tar.lz"))
250a8abc
LF
67 (sha256
68 (base32
86b38e4a 69 "14yw4w37ya6rcqa7h6p44x6711dwgq2j22xg6k79ybbf04sj88kb"))))
9b5fccbc
MB
70 (native-inputs
71 `(("lzip" ,lzip)))
0418ff7a
LF
72 (inputs
73 `(("libunistring" ,libunistring)))
250a8abc 74 (build-system gnu-build-system)
cd9ad095
MB
75 (arguments
76 `(#:configure-flags '("--disable-static")))
250a8abc
LF
77 (synopsis "Internationalized domain name library for IDNA2008")
78 (description "Libidn2 is an internationalized domain library implementing
79the IDNA2008 specifications. Libidn2 is believed to be a complete IDNA2008
80implementation, but has yet to be as extensively used as the original Libidn
81library.")
82 (home-page "https://www.gnu.org/software/libidn/#libidn2")
bed19695 83 (properties '((ftp-directory . "/gnu/libidn")))
250a8abc
LF
84 ;; The command-line tool 'idn2' is GPL3+, while the library is dual-licensed
85 ;; GPL2+ or LGPL3+.
86 (license (list gpl2+ gpl3+ lgpl3+))))