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.

79 lines
2.1 KiB

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