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.

67 lines
1.9 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-idna
  9. PKG_VERSION:=2.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=idna-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/d8/82/28a51052215014efc07feac7330ed758702fc0581347098a81699b5281cb
  13. PKG_HASH:=3cb5ce08046c4e3a560fc02f138d0ac63e00f8ce5901a56b32ec8b7994082aab
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=LICENSE.rst
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-idna-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. $(call include_mk, 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. URL:=https://github.com/kjd/idna
  27. endef
  28. define Package/python-idna
  29. $(call Package/python-idna/Default)
  30. TITLE:=python-idna
  31. DEPENDS:=+PACKAGE_python-idna:python-light
  32. VARIANT:=python
  33. endef
  34. define Package/python3-idna
  35. $(call Package/python-idna/Default)
  36. TITLE:=python3-idna
  37. DEPENDS:=+PACKAGE_python3-idna:python3-light
  38. VARIANT:=python3
  39. endef
  40. define Package/python-idna/description
  41. A library to support the Internationalised Domain Names in Applications
  42. (IDNA) protocol as specified in RFC 5891. This version of the protocol
  43. is often referred to as "IDNA2008" and can produce different results
  44. from the earlier standard from 2003.
  45. endef
  46. define Package/python3-idna/description
  47. $(call define Package/python-idna/description)
  48. .
  49. (Variant for Python3)
  50. endef
  51. $(eval $(call PyPackage,python-idna))
  52. $(eval $(call BuildPackage,python-idna))
  53. $(eval $(call Py3Package,python3-idna))
  54. $(eval $(call BuildPackage,python3-idna))