Merge pull request #4380 from commodo/python-six-host-build
[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:=six
11 PKG_VERSION:=1.10.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/six
16 PKG_MD5SUM:=34eed507548117b2ab523ab14b2f8b55
17
18 HOST_BUILD_DEPENDS:=python/host
19 PKG_BUILD_DEPENDS:=python
20
21 PKG_LICENSE:=MIT
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
24
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
27 $(call include_mk, python-package.mk)
28
29 define Package/python-six
30 SECTION:=lang
31 CATEGORY:=Languages
32 SUBMENU:=Python
33 TITLE:=python-six
34 URL:=https://pypi.python.org/pypi/six
35 DEPENDS:=+python-light
36 endef
37
38 define Package/python-six/description
39 Six is a Python 2 and 3 compatibility library. It provides utility functions
40 for smoothing over the differences between the Python versions with the goal of
41 writing Python code that is compatible on both Python versions. See the
42 documentation for more information on what is provided.
43 endef
44
45 define Build/Compile
46 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
47 endef
48
49 define Host/Compile
50 $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
51 endef
52
53 Host/Install:=
54
55 $(eval $(call HostBuild))
56
57 $(eval $(call PyPackage,python-six))
58 $(eval $(call BuildPackage,python-six))