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.

69 lines
1.7 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.9
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=idna
  12. PKG_HASH:=7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE.rst
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-idna/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=IDNA library
  25. URL:=https://github.com/kjd/idna
  26. endef
  27. define Package/python-idna
  28. $(call Package/python-idna/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-idna:python-light \
  31. +PACKAGE_python-idna:python-codecs
  32. VARIANT:=python
  33. endef
  34. define Package/python3-idna
  35. $(call Package/python-idna/Default)
  36. DEPENDS:= \
  37. +PACKAGE_python3-idna:python3-light \
  38. +PACKAGE_python3-idna:python3-codecs
  39. VARIANT:=python3
  40. endef
  41. define Package/python-idna/description
  42. A library to support the Internationalised Domain Names in Applications
  43. (IDNA) protocol as specified in RFC 5891. This version of the protocol
  44. is often referred to as "IDNA2008" and can produce different results
  45. from the earlier standard from 2003.
  46. endef
  47. define Package/python3-idna/description
  48. $(call Package/python-idna/description)
  49. .
  50. (Variant for Python3)
  51. endef
  52. $(eval $(call PyPackage,python-idna))
  53. $(eval $(call BuildPackage,python-idna))
  54. $(eval $(call BuildPackage,python-idna-src))
  55. $(eval $(call Py3Package,python3-idna))
  56. $(eval $(call BuildPackage,python3-idna))
  57. $(eval $(call BuildPackage,python3-idna-src))