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.

81 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2015, 2017-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-six
  9. PKG_VERSION:=1.12.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=six-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/six
  13. PKG_HASH:=d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-six-$(PKG_VERSION)
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  18. HOST_BUILD_DEPENDS:=python3/host
  19. include $(INCLUDE_DIR)/host-build.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../python-package.mk
  22. include ../python3-package.mk
  23. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  24. HOST_UNPACK:=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  25. define Package/python-six/Default
  26. SECTION:=lang
  27. CATEGORY:=Languages
  28. SUBMENU:=Python
  29. TITLE:=Python 2 and 3 compatibility library
  30. URL:=https://github.com/benjaminp/six
  31. endef
  32. define Package/python-six
  33. $(call Package/python-six/Default)
  34. DEPENDS:=+PACKAGE_python-six:python-light
  35. VARIANT:=python
  36. endef
  37. define Package/python3-six
  38. $(call Package/python-six/Default)
  39. DEPENDS:=+PACKAGE_python3-six:python3-light
  40. VARIANT:=python3
  41. endef
  42. define Package/python-six/description
  43. Six is a Python 2 and 3 compatibility library. It provides utility functions
  44. for smoothing over the differences between the Python versions with the goal of
  45. writing Python code that is compatible on both Python versions. See the
  46. documentation for more information on what is provided.
  47. endef
  48. define Package/python3-six/description
  49. $(call Package/python-six/description)
  50. .
  51. (Variant for Python3)
  52. endef
  53. define Host/Compile
  54. $(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
  55. endef
  56. Host/Install:=
  57. $(eval $(call HostBuild))
  58. $(eval $(call PyPackage,python-six))
  59. $(eval $(call BuildPackage,python-six))
  60. $(eval $(call BuildPackage,python-six-src))
  61. $(eval $(call Py3Package,python3-six))
  62. $(eval $(call BuildPackage,python3-six))
  63. $(eval $(call BuildPackage,python3-six-src))