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.

54 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-2011, 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:=zope.interface
  9. PKG_VERSION:=4.3.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/38/1b/d55c39f2cf442bd9fb2c59760ed058c84b57d25c680819c25f3aff741e1f
  13. PKG_HASH:=6a0e224a052e3ce27b3a7b1300a24747513f7a507217fcc2a4cb02eb92945cee
  14. PKG_LICENSE:=ZPL-2.1
  15. PKG_LICENSE_FILES:=LICENSE.txt
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)
  19. define Package/zope-interface
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=Zope interface
  24. URL:=https://github.com/zopefoundation/zope.interface
  25. DEPENDS:=+python-light
  26. endef
  27. define Package/zope-interface/description
  28. This package provides an implementation of "object interfaces" for
  29. Python. Interfaces are a mechanism for labeling objects as conforming to
  30. a given API or contract. So, this package can be considered as
  31. implementation of the Design By Contract methodology support in Python.
  32. endef
  33. define PyPackage/zope-interface/filespec
  34. +|$(PYTHON_PKG_DIR)
  35. -|$(PYTHON_PKG_DIR)/zope/interface/common/tests
  36. -|$(PYTHON_PKG_DIR)/zope/interface/tests
  37. endef
  38. define Build/Compile
  39. $(call Build/Compile/PyMod,, \
  40. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --no-compile, \
  41. )
  42. endef
  43. $(eval $(call PyPackage,zope-interface))
  44. $(eval $(call BuildPackage,zope-interface))