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>
9 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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))
39 (uri (string-append "mirror://gnu/libidn/libidn-" version
43 "07pyy0afqikfq51z5kbzbj9ldbd12mri0zvx0mfv3ds6bc0g26pi"))))
44 (build-system gnu-build-system)
45 ;; FIXME: No Java and C# libraries are currently built.
47 `(#:configure-flags '("--disable-static")))
48 (synopsis "Internationalized string processing library")
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
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/")))
59 (define-public libidn2
65 (uri (string-append "mirror://gnu/libidn/" name "-" version
69 "14yw4w37ya6rcqa7h6p44x6711dwgq2j22xg6k79ybbf04sj88kb"))))
73 `(("libunistring" ,libunistring)))
74 (build-system gnu-build-system)
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
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
86 (license (list gpl2+ gpl3+ lgpl3+))))