python-idna: update to version 2.6
[feed/packages.git] / lang / python / python-idna / Makefile
1 #
2 # Copyright (C) 2015-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-idna
11 PKG_VERSION:=2.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=idna-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/f4/bd/0467d62790828c23c47fc1dfa1b1f052b24efdf5290f071c7a91d0d82fd3
16 PKG_HASH:=2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f
17
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=LICENSE.rst
20 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-idna-$(PKG_VERSION)
23
24 include $(INCLUDE_DIR)/package.mk
25 $(call include_mk, python-package.mk)
26 $(call include_mk, python3-package.mk)
27
28 PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
29
30 define Package/python-idna/Default
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 URL:=https://github.com/kjd/idna
35 endef
36
37 define Package/python-idna
38 $(call Package/python-idna/Default)
39 TITLE:=python-idna
40 DEPENDS:=+PACKAGE_python-idna:python-light
41 VARIANT:=python
42 endef
43
44 define Package/python3-idna
45 $(call Package/python-idna/Default)
46 TITLE:=python3-idna
47 DEPENDS:=+PACKAGE_python3-idna:python3-light
48 VARIANT:=python3
49 endef
50
51 define Package/python-idna/description
52 A library to support the Internationalised Domain Names in Applications
53 (IDNA) protocol as specified in RFC 5891. This version of the protocol
54 is often referred to as "IDNA2008" and can produce different results
55 from the earlier standard from 2003.
56 endef
57
58 define Package/python3-idna/description
59 $(call define Package/python-idna/description)
60 .
61 (Variant for Python3)
62 endef
63
64 $(eval $(call PyPackage,python-idna))
65 $(eval $(call BuildPackage,python-idna))
66 $(eval $(call Py3Package,python3-idna))
67 $(eval $(call BuildPackage,python3-idna))