Browse Source

Merge pull request #7380 from neheb/pytz

pytz: Update to 2018.7 and add host build
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
0ad1369496
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      lang/python/pytz/Makefile

+ 8
- 7
lang/python/pytz/Makefile View File

@ -8,14 +8,15 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=pytz PKG_NAME:=pytz
PKG_VERSION:=2018.6
PKG_VERSION:=2018.7
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pytz PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pytz
PKG_HASH:=642253af8eae734d1509fc6ac9c1aee5e5b69d76392660889979b9870610a46b
PKG_HASH:=31cb35c89bd7d333cd32c5f278fca91b523b0834369e757f4c5641ea252236ca
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
@ -37,13 +38,12 @@ define Build/Compile
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
endef endef
define Package/pytz/InstallDev
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
$(CP) \
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
$(1)$(PYTHON_PKG_DIR)
define Host/Compile
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
endef endef
Host/Install:=
define Package/pytz/install define Package/pytz/install
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
$(CP) \ $(CP) \
@ -51,4 +51,5 @@ define Package/pytz/install
$(1)$(PYTHON_PKG_DIR) $(1)$(PYTHON_PKG_DIR)
endef endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,pytz)) $(eval $(call BuildPackage,pytz))

Loading…
Cancel
Save