summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-06-18 20:17:11 +0300
committerAlexandru Ardelean <ardeleanalex@gmail.com>2017-06-29 13:48:42 +0300
commit7a79f2db791751dd89bfa685831090c8b21897fb (patch)
tree3d0ab5950cc3a5010feeeac4520fafd65297cec9 /lang/python
parente26a34c6b4f634240d2dd562efb8649654006b23 (diff)
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 <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/python-six/Makefile11
1 files 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 <jeffery.to@gmail.com>
@@ -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