2015-11-12 09:04:09 +00:00
|
|
|
#
|
2018-01-14 14:38:54 +00:00
|
|
|
# Copyright (C) 2015, 2017-2018 OpenWrt.org
|
2015-11-12 09:04:09 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2017-06-18 17:17:11 +00:00
|
|
|
PKG_NAME:=python-six
|
2021-05-12 08:16:40 +00:00
|
|
|
PKG_VERSION:=1.16.0
|
2020-05-26 08:42:53 +00:00
|
|
|
PKG_RELEASE:=1
|
2015-11-12 09:04:09 +00:00
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
PYPI_NAME:=six
|
2021-05-12 08:16:40 +00:00
|
|
|
PKG_HASH:=1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926
|
2019-02-20 07:19:26 +00:00
|
|
|
|
2015-11-12 09:04:09 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2019-02-20 07:19:26 +00:00
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
|
2018-12-18 02:33:15 +00:00
|
|
|
|
2019-04-26 02:23:35 +00:00
|
|
|
HOST_BUILD_DEPENDS:=python3/host
|
2015-11-12 09:04:09 +00:00
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
include ../pypi.mk
|
2017-05-24 16:26:07 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2015-11-12 09:04:09 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2018-01-10 07:56:52 +00:00
|
|
|
include ../python3-package.mk
|
2015-11-12 09:04:09 +00:00
|
|
|
|
2020-04-21 17:27:50 +00:00
|
|
|
define Package/python3-six
|
2017-07-04 20:42:36 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
SUBMENU:=Python
|
2019-02-20 07:19:26 +00:00
|
|
|
TITLE:=Python 2 and 3 compatibility library
|
2018-12-18 02:33:15 +00:00
|
|
|
URL:=https://github.com/benjaminp/six
|
2020-04-21 17:27:50 +00:00
|
|
|
DEPENDS:=+python3-light
|
2015-11-12 09:04:09 +00:00
|
|
|
endef
|
|
|
|
|
2020-04-01 14:21:16 +00:00
|
|
|
define Package/python3-six/description
|
2015-11-12 09:04:09 +00:00
|
|
|
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
|
|
|
|
|
2017-05-24 16:26:07 +00:00
|
|
|
define Host/Compile
|
2020-04-09 15:02:14 +00:00
|
|
|
$(call HostPython3/ModSetup,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
2017-05-24 16:26:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
Host/Install:=
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
|
2017-07-04 20:42:36 +00:00
|
|
|
$(eval $(call Py3Package,python3-six))
|
|
|
|
$(eval $(call BuildPackage,python3-six))
|
2018-01-14 14:38:54 +00:00
|
|
|
$(eval $(call BuildPackage,python3-six-src))
|