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.

70 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. URL:=https://github.com/zopefoundation/zope.interface
  27. endef
  28. define Package/python-zope-interface
  29. $(call Package/python-zope-interface/Default)
  30. TITLE:=Interfaces for Python
  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. TITLE:=Interfaces for Python
  37. DEPENDS:=+PACKAGE_python3-zope-interface:python3-light
  38. VARIANT:=python3
  39. endef
  40. define Package/python-zope-interface/description
  41. This package provides an implementation of "object interfaces" for
  42. Python. Interfaces are a mechanism for labeling objects as conforming to
  43. a given API or contract. So, this package can be considered as
  44. implementation of the Design By Contract methodology support in Python.
  45. endef
  46. define Package/python3-zope-interface/description
  47. $(call Package/python-zope-interface/description)
  48. .
  49. (Variant for Python3)
  50. endef
  51. $(eval $(call PyPackage,python-zope-interface))
  52. $(eval $(call BuildPackage,python-zope-interface))
  53. $(eval $(call BuildPackage,python-zope-interface-src))
  54. $(eval $(call Py3Package,python3-zope-interface))
  55. $(eval $(call BuildPackage,python3-zope-interface))
  56. $(eval $(call BuildPackage,python3-zope-interface-src))