You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.0 KiB

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