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