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.

74 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2015-2018 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-pyopenssl
  9. PKG_VERSION:=18.0.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pyOpenSSL-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.io/packages/source/p/pyOpenSSL
  13. PKG_HASH:=6488f1423b00f73b7ad5167885312bb0ce410d3312eb212393795b53c8caa580
  14. PKG_LICENSE:=Apache-2.0
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyopenssl-$(PKG_VERSION)
  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-pyopenssl/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. URL:=https://github.com/pyca/pyopenssl
  27. endef
  28. define Package/python-pyopenssl
  29. $(call Package/python-pyopenssl/Default)
  30. TITLE:=python-pyopenssl
  31. VARIANT:=python
  32. DEPENDS:= \
  33. +PACKAGE_python-pyopenssl:python-light \
  34. +PACKAGE_python-pyopenssl:python-cryptography \
  35. +PACKAGE_python-pyopenssl:python-six
  36. endef
  37. define Package/python3-pyopenssl
  38. $(call Package/python-pyopenssl/Default)
  39. TITLE:=python3-pyopenssl
  40. VARIANT:=python3
  41. DEPENDS:= \
  42. +PACKAGE_python3-pyopenssl:python3-light \
  43. +PACKAGE_python3-pyopenssl:python3-cryptography \
  44. +PACKAGE_python3-pyopenssl:python3-six
  45. endef
  46. define Package/python-pyopenssl/description
  47. Python wrapper module around the OpenSSL library
  48. endef
  49. define Package/python3-pyopenssl/description
  50. $(call Package/python-pyopenssl/description)
  51. .
  52. (Variant for Python3).
  53. endef
  54. $(eval $(call PyPackage,python-pyopenssl))
  55. $(eval $(call BuildPackage,python-pyopenssl))
  56. $(eval $(call BuildPackage,python-pyopenssl-src))
  57. $(eval $(call Py3Package,python3-pyopenssl))
  58. $(eval $(call BuildPackage,python3-pyopenssl))
  59. $(eval $(call BuildPackage,python3-pyopenssl-src))