Merge pull request #1700 from aTanW/master
[feed/packages.git] / lang / python-setuptools / Makefile
1 #
2 # Copyright (C) 2014 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-setuptools
11 PKG_VERSION:=18.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=setuptools-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/setuptools/
16 PKG_MD5SUM:=52b4e48939ef311d7204f8fe940764f4
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/setuptools-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
22
23 define Package/python-setuptools
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=Tool for installing Python packages.
28 URL:=https://bitbucket.org/pypa/setuptools
29 DEPENDS:=+python
30 MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
31 endef
32
33 define Package/python-setuptools/description
34 Easily download, build, install, upgrade, and uninstall Python packages
35 endef
36
37 define Build/Compile
38 $(call Build/Compile/PyMod,,\
39 install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
40 --single-version-externally-managed \
41 )
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(PYTHON_LIB_DIR)
46 $(CP) \
47 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
48 $(PYTHON_LIB_DIR)
49 endef
50
51 define PyPackage/python-setuptools/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
54 endef
55
56 $(eval $(call PyPackage,python-setuptools))
57 $(eval $(call BuildPackage,python-setuptools))
58