python-six: add host-side build 4380/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 24 May 2017 16:26:07 +0000 (19:26 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 24 May 2017 20:07:05 +0000 (23:07 +0300)
Needed for Open vSwitch's python libs.
And build.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/python-six/Makefile

index 9f070495408a4909f8965deca51be05e3e1284cf..6e4259d3052e0f592d94c7b8ede44d4ecb5f8e7d 100644 (file)
@@ -9,18 +9,20 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=six
 PKG_VERSION:=1.10.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/six
 PKG_MD5SUM:=34eed507548117b2ab523ab14b2f8b55
 
-PKG_BUILD_DEPENDS:=python python-setuptools
+HOST_BUILD_DEPENDS:=python/host
+PKG_BUILD_DEPENDS:=python
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 $(call include_mk, python-package.mk)
 
@@ -44,5 +46,13 @@ define Build/Compile
        $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
 endef
 
+define Host/Compile
+       $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
+endef
+
+Host/Install:=
+
+$(eval $(call HostBuild))
+
 $(eval $(call PyPackage,python-six))
 $(eval $(call BuildPackage,python-six))