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.

67 lines
1.7 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.2
  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:=26c0b32e437e54a18161324a2fca3c4b9846b74a8dccddd843113109e1116b32
  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. 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. define Package/python-pytz/Default
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. URL:=https://pythonhosted.org/pytz/
  27. endef
  28. define Package/python-pytz
  29. $(call Package/python-pytz/Default)
  30. TITLE:=World timezone definitions, modern and historical
  31. DEPENDS:=+PACKAGE_python-pytz:python-light
  32. VARIANT:=python
  33. endef
  34. define Package/python3-pytz
  35. $(call Package/python-pytz/Default)
  36. TITLE:=World timezone definitions, modern and historical for Python3
  37. DEPENDS:=+PACKAGE_python3-pytz:python3-light
  38. VARIANT:=python3
  39. endef
  40. define Package/python-pytz/description
  41. World timezone definitions, modern and historical
  42. endef
  43. define Package/python3-pytz/description
  44. $(call Package/python-pytz/description)
  45. .
  46. (Variant for Python3)
  47. endef
  48. $(eval $(call PyPackage,python-pytz))
  49. $(eval $(call BuildPackage,python-pytz))
  50. $(eval $(call BuildPackage,python-pytz-src))
  51. $(eval $(call Py3Package,python3-pytz))
  52. $(eval $(call BuildPackage,python3-pytz))
  53. $(eval $(call BuildPackage,python3-pytz-src))