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) 2007-2019 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-pytz
  9. PKG_VERSION:=2019.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pytz-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pytz
  13. PKG_HASH:=d747dd3d23d77ef44c6a3526e274af6efeb0a6f1afd5a69ba4d5be4098c8e141
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pytz-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE.txt
  18. HOST_BUILD_DEPENDS:=python/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-pytz/Default
  26. SUBMENU:=Python
  27. SECTION:=lang
  28. CATEGORY:=Languages
  29. URL:=https://pythonhosted.org/pytz/
  30. endef
  31. define Package/python-pytz
  32. $(call Package/python-pytz/Default)
  33. TITLE:=World timezone definitions, modern and historical
  34. DEPENDS:=+PACKAGE_python-pytz:python-light
  35. VARIANT:=python
  36. endef
  37. define Package/python3-pytz
  38. $(call Package/python-pytz/Default)
  39. TITLE:=World timezone definitions, modern and historical for Python3
  40. DEPENDS:=+PACKAGE_python3-pytz:python3-light
  41. VARIANT:=python3
  42. endef
  43. define Package/python-pytz/description
  44. World timezone definitions, modern and historical
  45. endef
  46. define Package/python3-pytz/description
  47. $(call Package/python-pytz/description)
  48. .
  49. (Variant for Python3)
  50. endef
  51. define Host/Compile
  52. $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
  53. endef
  54. Host/Install:=
  55. $(eval $(call HostBuild))
  56. $(eval $(call PyPackage,python-pytz))
  57. $(eval $(call BuildPackage,python-pytz))
  58. $(eval $(call BuildPackage,python-pytz-src))
  59. $(eval $(call Py3Package,python3-pytz))
  60. $(eval $(call BuildPackage,python3-pytz))
  61. $(eval $(call BuildPackage,python3-pytz-src))