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.

76 lines
2.0 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:=2018.9
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_SOURCE:=pytz-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pytz
  14. PKG_HASH:=d5f05e487007e29e03409f9398d074e158d920d36eb82eaf66fb1136b0c5374c
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pytz-$(PKG_VERSION)
  16. HOST_BUILD_DEPENDS:=python/host
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. HOST_UNPACK:=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  23. define Package/python-pytz/Default
  24. SUBMENU:=Python
  25. SECTION:=lang
  26. CATEGORY:=Languages
  27. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  28. URL:=https://sourceforge.net/projects/pytz/
  29. endef
  30. define Package/python-pytz
  31. $(call Package/python-pytz/Default)
  32. TITLE:=World timezone definitions, modern and historical
  33. DEPENDS:=+PACKAGE_python-pytz:python-light
  34. VARIANT:=python
  35. endef
  36. define Package/python3-pytz
  37. $(call Package/python-pytz/Default)
  38. TITLE:=World timezone definitions, modern and historical for Python3
  39. DEPENDS:=+PACKAGE_python3-pytz:python3-light
  40. VARIANT:=python3
  41. endef
  42. define Package/python-pytz/description
  43. World timezone definitions, modern and historical
  44. endef
  45. define Package/python3-pytz/description
  46. $(call Package/python-pytz/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. define Host/Compile
  51. $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
  52. endef
  53. Host/Install:=
  54. $(eval $(call HostBuild))
  55. $(eval $(call PyPackage,python-pytz))
  56. $(eval $(call BuildPackage,python-pytz))
  57. $(eval $(call BuildPackage,python-pytz-src))
  58. $(eval $(call Py3Package,python3-pytz))
  59. $(eval $(call BuildPackage,python3-pytz))
  60. $(eval $(call BuildPackage,python3-pytz-src))