gnu: libdvdcss: Update to 1.4.3.
[jackhill/guix/guix.git] / gnu / packages / libidn.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
5 ;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;;
9 ;;; This file is part of GNU Guix.
10 ;;;
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
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 ;;;
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
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
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24 (define-module (gnu packages libidn)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages compression)
27 #:use-module (gnu packages libunistring)
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")
36 (version "1.35")
37 (source (origin
38 (method url-fetch)
39 (uri (string-append "mirror://gnu/libidn/libidn-" version
40 ".tar.gz"))
41 (sha256
42 (base32
43 "07pyy0afqikfq51z5kbzbj9ldbd12mri0zvx0mfv3ds6bc0g26pi"))))
44 (build-system gnu-build-system)
45 ;; FIXME: No Java and C# libraries are currently built.
46 (arguments
47 `(#:configure-flags '("--disable-static")))
48 (synopsis "Internationalized string processing library")
49 (description
50 "libidn is a library implementing of the Stringprep, Punycode and IDNA
51 specifications. These are used to encode and decode internationalized domain
52 names according to the IDNA2003 specifications. It includes native C, C# and
53 Java libraries.")
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+))
57 (home-page "https://www.gnu.org/software/libidn/")))
58
59 (define-public libidn2
60 (package
61 (name "libidn2")
62 (version "2.3.0")
63 (source (origin
64 (method url-fetch)
65 (uri (string-append "mirror://gnu/libidn/" name "-" version
66 ".tar.lz"))
67 (sha256
68 (base32
69 "14yw4w37ya6rcqa7h6p44x6711dwgq2j22xg6k79ybbf04sj88kb"))))
70 (native-inputs
71 `(("lzip" ,lzip)))
72 (inputs
73 `(("libunistring" ,libunistring)))
74 (build-system gnu-build-system)
75 (arguments
76 `(#:configure-flags '("--disable-static")))
77 (synopsis "Internationalized domain name library for IDNA2008")
78 (description "Libidn2 is an internationalized domain library implementing
79 the IDNA2008 specifications. Libidn2 is believed to be a complete IDNA2008
80 implementation, but has yet to be as extensively used as the original Libidn
81 library.")
82 (home-page "https://www.gnu.org/software/libidn/#libidn2")
83 (properties '((ftp-directory . "/gnu/libidn")))
84 ;; The command-line tool 'idn2' is GPL3+, while the library is dual-licensed
85 ;; GPL2+ or LGPL3+.
86 (license (list gpl2+ gpl3+ lgpl3+))))