2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=six-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/source
/s
/six
16 PKG_HASH
:=105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a
18 HOST_BUILD_DEPENDS
:=python
/host
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-six-
$(PKG_VERSION
)
23 PKG_LICENSE_FILES
:=LICENSE
24 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>, Alexandru Ardelean
<ardeleanalex@gmail.com
>
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
)
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
)
34 define Package
/python-six
/Default
38 URL
:=https
://pypi.python.org
/pypi
/six
41 define Package
/python-six
42 $(call Package
/python-six
/Default
)
44 DEPENDS
:=+PACKAGE_python-six
:python-light
48 define Package
/python3-six
49 $(call Package
/python-six
/Default
)
51 DEPENDS
:=+PACKAGE_python3-six
:python3-light
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.
62 define Package
/python3-six
/description
63 $(call Package
/python-six
/description
)
69 $(call Build
/Compile
/HostPyMod
,,install --prefix="" --root
="$(STAGING_DIR_HOSTPKG)")
74 $(eval
$(call HostBuild
))
76 $(eval
$(call PyPackage
,python-six
))
77 $(eval
$(call BuildPackage
,python-six
))
78 $(eval
$(call Py3Package
,python3-six
))
79 $(eval
$(call BuildPackage
,python3-six
))