libidn2: new package

Libidn2 is an implementation of the IDNA2008 + TR46
specifications (RFC 5890, RFC 5891, RFC 5892, RFC 5893,
TR 46).

http://www.gnu.org/software/libidn/

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Thomas:
 - Use positive logic to test the BR2_PACKAGE_LIBIDN2_BINARY
   condition.
 - Put the definition of LIBIDN2_REMOVE_BINARY inside the
   BR2_PACKAGE_LIBIDN2_BINARY condition, as suggested by Arnout.
 - Adjust license details: library is under GPL-2.0+ or LGPL-3.0+,
   while the command line tool is under GPL-3.0+.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2018-05-01 22:40:32 +02:00 committed by Thomas Petazzoni
parent b8f19aae29
commit ffb85a4a16
5 changed files with 57 additions and 0 deletions

View file

@ -689,6 +689,7 @@ F: package/libglib2/
F: package/libgtk2/
F: package/libgtk3/
F: package/libidn/
F: package/libidn2/
F: package/libjpeg/
F: package/libmatroska/
F: package/libmpdclient/

View file

@ -1411,6 +1411,7 @@ menu "Networking"
source "package/libgsasl/Config.in"
source "package/libhttpparser/Config.in"
source "package/libidn/Config.in"
source "package/libidn2/Config.in"
source "package/libiscsi/Config.in"
source "package/libkrb5/Config.in"
source "package/libldns/Config.in"

17
package/libidn2/Config.in Normal file
View file

@ -0,0 +1,17 @@
config BR2_PACKAGE_LIBIDN2
bool "libidn2"
help
Libidn2 is an implementation of the IDNA2008 + TR46
specifications (RFC 5890, RFC 5891, RFC 5892, RFC 5893,
TR 46).
http://www.gnu.org/software/libidn/
if BR2_PACKAGE_LIBIDN2
config BR2_PACKAGE_LIBIDN2_BINARY
bool "idn2 binary"
help
Install idn2 command line tool
endif

View file

@ -0,0 +1,8 @@
# From Calculated locally after checking signature
sha256 644b6b03b285fb0ace02d241d59483d98bc462729d8bb3608d5cad5532f3d2f0 libidn2-2.0.4.tar.gz
# Hash for license files:
sha256 4fa501e804195b4136c9cec4bc510365b8cbaf4bc075d6401a77ae0213370457 COPYING
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYINGv2
sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 COPYING.LESSERv3
sha256 01d621eef165cf4d3d3dbb737aa0699178d94c6f18cf87e9dde6db3ca7790f46 COPYING.unicode

View file

@ -0,0 +1,30 @@
################################################################################
#
# libidn2
#
################################################################################
LIBIDN2_VERSION = 2.0.4
LIBIDN2_SITE = $(BR2_GNU_MIRROR)/libidn
LIBIDN2_LICENSE := GPL-2.0+ or LGPL-3.0+ (library)
LIBIDN2_LICENSE_FILES = COPYING COPYINGv2 COPYING.LESSERv3 COPYING.unicode
LIBIDN2_DEPENDENCIES = \
host-pkgconf \
$(TARGET_NLS_DEPENDENCIES) \
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
LIBIDN2_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_LIBUNISTRING),y)
LIBIDN2_DEPENDENCIES += libunistring
endif
ifeq ($(BR2_PACKAGE_LIBIDN2_BINARY),)
define LIBIDN2_REMOVE_BINARY
rm -f $(TARGET_DIR)/usr/bin/idn2
endef
LIBIDN2_POST_INSTALL_TARGET_HOOKS += LIBIDN2_REMOVE_BINARY
else
LIBIDN2_LICENSE := $(LIBIDN2_LICENSE), GPL-3.0+ (program)
endif
$(eval $(autotools-package))