From 7a79f2db791751dd89bfa685831090c8b21897fb Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 18 Jun 2017 20:17:11 +0300 Subject: [PATCH] python-six: rename PKG_NAME to python-six, and adapt unpack cmd for build OVS has PKG_BUILD_DEPENDS:=python-six/host as dep. But that doesn't seem to work, since the PKG_NAME:=six So, this change renames the PKG_NAME to python-six, to make it clear it's Python package. Signed-off-by: Alexandru Ardelean --- lang/python/python-six/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lang/python/python-six/Makefile b/lang/python/python-six/Makefile index 6e4259d30..24efe874e 100644 --- a/lang/python/python-six/Makefile +++ b/lang/python/python-six/Makefile @@ -7,17 +7,19 @@ include $(TOPDIR)/rules.mk -PKG_NAME:=six +PKG_NAME:=python-six PKG_VERSION:=1.10.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE:=six-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/six PKG_MD5SUM:=34eed507548117b2ab523ab14b2f8b55 HOST_BUILD_DEPENDS:=python/host PKG_BUILD_DEPENDS:=python +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Jeffery To @@ -26,6 +28,9 @@ include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk $(call include_mk, python-package.mk) +PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) +HOST_UNPACK:=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) + define Package/python-six SECTION:=lang CATEGORY:=Languages