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.

58 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2007-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:=pytz
  9. PKG_VERSION:=2018.9
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pytz
  14. PKG_HASH:=d5f05e487007e29e03409f9398d074e158d920d36eb82eaf66fb1136b0c5374c
  15. PKG_BUILD_DEPENDS:=python/host
  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. define Package/pytz
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  25. TITLE:=World timezone definitions, modern and historical
  26. URL:=https://sourceforge.net/projects/pytz/
  27. DEPENDS:=+python
  28. endef
  29. define Package/pytz/description
  30. World timezone definitions, modern and historical
  31. endef
  32. define Build/Compile
  33. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  34. endef
  35. define Host/Compile
  36. $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
  37. endef
  38. Host/Install:=
  39. define Package/pytz/install
  40. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  43. $(1)$(PYTHON_PKG_DIR)
  44. endef
  45. $(eval $(call HostBuild))
  46. $(eval $(call BuildPackage,pytz))