From a9af921700b5404e56beb723b6a77bfbc4018200 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 12 Nov 2015 17:04:09 +0800 Subject: [PATCH 1/3] python-six: new package From the README: Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. See the documentation for more information on what is provided. Signed-off-by: Jeffery To --- lang/python-six/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lang/python-six/Makefile diff --git a/lang/python-six/Makefile b/lang/python-six/Makefile new file mode 100644 index 000000000..d6920f4be --- /dev/null +++ b/lang/python-six/Makefile @@ -0,0 +1,46 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=six +PKG_VERSION:=1.10.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/six +PKG_MD5SUM:=34eed507548117b2ab523ab14b2f8b55 + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=Jeffery To + +include $(INCLUDE_DIR)/package.mk +$(call include_mk, python-package.mk) + +define Package/python-six + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=python-six + URL:=https://pypi.python.org/pypi/six + DEPENDS:=+python-light +endef + +define Package/python-pyasn1/description +Six is a Python 2 and 3 compatibility library. It provides utility functions +for smoothing over the differences between the Python versions with the goal of +writing Python code that is compatible on both Python versions. See the +documentation for more information on what is provided. +endef + +define Build/Compile + $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) +endef + +$(eval $(call PyPackage,python-six)) +$(eval $(call BuildPackage,python-six)) From 6c514e67e2977d07a5ce7bf550eaa67cac9aaf58 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 12 Nov 2015 18:04:18 +0800 Subject: [PATCH 2/3] python-six: fixed package description Signed-off-by: Jeffery To --- lang/python-six/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/python-six/Makefile b/lang/python-six/Makefile index d6920f4be..c7ea5a0a5 100644 --- a/lang/python-six/Makefile +++ b/lang/python-six/Makefile @@ -31,7 +31,7 @@ define Package/python-six DEPENDS:=+python-light endef -define Package/python-pyasn1/description +define Package/python-six/description Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. See the From 4dede767dfe5fe8cf5d1d2bcf44c704f216b9422 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 13 Nov 2015 16:35:14 +0800 Subject: [PATCH 3/3] python-six: use setuptools Signed-off-by: Jeffery To --- lang/python-six/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/python-six/Makefile b/lang/python-six/Makefile index c7ea5a0a5..9f0704954 100644 --- a/lang/python-six/Makefile +++ b/lang/python-six/Makefile @@ -15,6 +15,8 @@ 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 + PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Jeffery To