Merge pull request #4471 from lynxis/travis
[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:=3
13
14 PKG_SOURCE:=six-$(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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 PKG_LICENSE:=MIT
24 PKG_LICENSE_FILES:=LICENSE
25 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
26
27 include $(INCLUDE_DIR)/host-build.mk
28 include $(INCLUDE_DIR)/package.mk
29 $(call include_mk, python-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
35 SECTION:=lang
36 CATEGORY:=Languages
37 SUBMENU:=Python
38 TITLE:=python-six
39 URL:=https://pypi.python.org/pypi/six
40 DEPENDS:=+python-light
41 endef
42
43 define Package/python-six/description
44 Six is a Python 2 and 3 compatibility library. It provides utility functions
45 for smoothing over the differences between the Python versions with the goal of
46 writing Python code that is compatible on both Python versions. See the
47 documentation for more information on what is provided.
48 endef
49
50 define Build/Compile
51 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
52 endef
53
54 define Host/Compile
55 $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
56 endef
57
58 Host/Install:=
59
60 $(eval $(call HostBuild))
61
62 $(eval $(call PyPackage,python-six))
63 $(eval $(call BuildPackage,python-six))