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.

80 lines
2.4 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.4.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=zope.interface-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/bd/d2/25349ed41f9dcff7b3baf87bd88a4c82396cf6e02f1f42bb68657a3132af
  13. PKG_HASH:=d6d26d5dfbfd60c65152938fcb82f949e8dada37c041f72916fef6621ba5c5ce
  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:=python-zope-interface
  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:=python3-zope-interface
  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. define PyPackage/python-zope-interface/filespec
  52. +|$(PYTHON_PKG_DIR)
  53. -|$(PYTHON_PKG_DIR)/zope/interface/common/tests
  54. -|$(PYTHON_PKG_DIR)/zope/interface/tests
  55. endef
  56. define Py3Package/python3-zope-interface/filespec
  57. +|$(PYTHON3_PKG_DIR)
  58. -|$(PYTHON3_PKG_DIR)/zope/interface/common/tests
  59. -|$(PYTHON3_PKG_DIR)/zope/interface/tests
  60. endef
  61. $(eval $(call PyPackage,python-zope-interface))
  62. $(eval $(call BuildPackage,python-zope-interface))
  63. $(eval $(call Py3Package,python3-zope-interface))
  64. $(eval $(call BuildPackage,python3-zope-interface))