a68792ab6609c8410f1721e8a731f79cd1489b2f
[feed/packages.git] / lang / python / python-six / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-six
11 PKG_VERSION:=1.10.0
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=six-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/six
16 PKG_HASH:=105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a
17
18 HOST_BUILD_DEPENDS:=python/host
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-six-$(PKG_VERSION)
21
22 PKG_LICENSE:=MIT
23 PKG_LICENSE_FILES:=LICENSE
24 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
25
26 include $(INCLUDE_DIR)/host-build.mk
27 include $(INCLUDE_DIR)/package.mk
28 $(call include_mk, python-package.mk)
29 $(call include_mk, python3-package.mk)
30
31 PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
32 HOST_UNPACK:=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
33
34 define Package/python-six/Default
35 SECTION:=lang
36 CATEGORY:=Languages
37 SUBMENU:=Python
38 URL:=https://pypi.python.org/pypi/six
39 endef
40
41 define Package/python-six
42 $(call Package/python-six/Default)
43 TITLE:=python-six
44 DEPENDS:=+PACKAGE_python-six:python-light
45 VARIANT:=python
46 endef
47
48 define Package/python3-six
49 $(call Package/python-six/Default)
50 TITLE:=python3-six
51 DEPENDS:=+PACKAGE_python3-six:python3-light
52 VARIANT:=python3
53 endef
54
55 define Package/python-six/description
56 Six is a Python 2 and 3 compatibility library. It provides utility functions
57 for smoothing over the differences between the Python versions with the goal of
58 writing Python code that is compatible on both Python versions. See the
59 documentation for more information on what is provided.
60 endef
61
62 define Package/python3-six/description
63 $(call Package/python-six/description)
64 .
65 (Variant for Python3)
66 endef
67
68 define Host/Compile
69 $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
70 endef
71
72 Host/Install:=
73
74 $(eval $(call HostBuild))
75
76 $(eval $(call PyPackage,python-six))
77 $(eval $(call BuildPackage,python-six))
78 $(eval $(call Py3Package,python3-six))
79 $(eval $(call BuildPackage,python3-six))