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
2.1 KiB

  1. #
  2. # Copyright (C) 2006-2011, 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-zope-interface
  9. PKG_VERSION:=4.6.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=zope.interface-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/z/zope.interface
  13. PKG_HASH:=1b3d0dcabc7c90b470e59e38a9acaa361be43b3a6ea644c0063951964717f0e5
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-zope-interface-$(PKG_VERSION)
  15. PKG_LICENSE:=ZPL-2.1
  16. PKG_LICENSE_FILES:=LICENSE.txt
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@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-zope-interface/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Interfaces for Python
  27. URL:=https://github.com/zopefoundation/zope.interface
  28. endef
  29. define Package/python-zope-interface
  30. $(call Package/python-zope-interface/Default)
  31. DEPENDS:=+PACKAGE_python-zope-interface:python-light
  32. VARIANT:=python
  33. endef
  34. define Package/python3-zope-interface
  35. $(call Package/python-zope-interface/Default)
  36. DEPENDS:=+PACKAGE_python3-zope-interface:python3-light
  37. VARIANT:=python3
  38. endef
  39. define Package/python-zope-interface/description
  40. This package provides an implementation of "object interfaces" for
  41. Python. Interfaces are a mechanism for labeling objects as conforming to
  42. a given API or contract. So, this package can be considered as
  43. implementation of the Design By Contract methodology support in Python.
  44. endef
  45. define Package/python3-zope-interface/description
  46. $(call Package/python-zope-interface/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-zope-interface))
  51. $(eval $(call BuildPackage,python-zope-interface))
  52. $(eval $(call BuildPackage,python-zope-interface-src))
  53. $(eval $(call Py3Package,python3-zope-interface))
  54. $(eval $(call BuildPackage,python3-zope-interface))
  55. $(eval $(call BuildPackage,python3-zope-interface-src))