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.

56 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-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.2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/ea/a3/38bdc8e8bd068ea5b4d21a2d80eca1547cd8509318e8d7c875f7247abe43
  13. PKG_MD5SUM:=2950a6db7e985e19c7a846cc20f5d82a
  14. PKG_BUILD_DEPENDS:=python python-setuptools
  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. $(call include_mk, python-package.mk)
  20. define Package/zope-interface
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=Zope interface
  25. URL:=https://github.com/zopefoundation/zope.interface
  26. DEPENDS:=+python-light
  27. endef
  28. define Package/zope-interface/description
  29. This package provides an implementation of "object interfaces" for
  30. Python. Interfaces are a mechanism for labeling objects as conforming to
  31. a given API or contract. So, this package can be considered as
  32. implementation of the Design By Contract methodology support in Python.
  33. endef
  34. define PyPackage/zope-interface/filespec
  35. +|$(PYTHON_PKG_DIR)
  36. -|$(PYTHON_PKG_DIR)/zope/interface/common/tests
  37. -|$(PYTHON_PKG_DIR)/zope/interface/tests
  38. endef
  39. define Build/Compile
  40. $(call Build/Compile/PyMod,, \
  41. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --no-compile, \
  42. )
  43. endef
  44. $(eval $(call PyPackage,zope-interface))
  45. $(eval $(call BuildPackage,zope-interface))