poco:add package for the Poco C++ library
[feed/packages.git] / lang / python3-pip / Makefile
1 #
2 # Copyright (C) 2014-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:=python3-pip
11 PKG_VERSION:=7.1.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=pip-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pip/
16 PKG_MD5SUM:=3823d2343d9f3aaab21cf9c917710196
17
18 PKG_LICENSE:=MIT
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/pip-$(PKG_VERSION)
21 PKG_USE_MIPS16:=0
22
23 include $(INCLUDE_DIR)/package.mk
24 $(call include_mk, python3-package.mk)
25
26 define Package/python3-pip
27 SUBMENU:=Python
28 SECTION:=lang
29 CATEGORY:=Languages
30 TITLE:=Tool for installing Python $(PYTHON3_VERSION) packages.
31 URL:=https://pip.pypa.io
32 DEPENDS:=+python3 +python3-dev +python3-lib2to3 +python3-setuptools
33 MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
34 endef
35
36 define Package/python3-pip/description
37 A tool for installing and managing Python $(PYTHON3_VERSION) packages.
38 endef
39
40 define Build/Compile
41 $(call Build/Compile/Py3Mod,,\
42 install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
43 --single-version-externally-managed \
44 )
45 endef
46
47 define Py3Package/python3-pip/filespec
48 +|$(PYTHON3_PKG_DIR)
49 -|$(PYTHON3_PKG_DIR)/_vendor/distlib/*.exe
50 -|$(PYTHON3_PKG_DIR)/utils/outdated.py
51 endef
52
53 define Py3Package/python3-pip/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/pip$(PYTHON3_VERSION) $(1)/usr/bin
56 $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip3
57 endef
58
59 $(eval $(call Py3Package,python3-pip))
60 $(eval $(call BuildPackage,python3-pip))