source: packages/lang/distribute/Makefile @ 28396

Last change on this file since 28396 was 28396, checked in by nico, 5 years ago

[packages] distribute: fix MD5SUM (closes: #10154)

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=distribute
11PKG_VERSION:=0.6.21
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://pypi.python.org/packages/source/d/$(PKG_NAME)/
16PKG_MD5SUM:=f783444754861f9b33e9f4083bd97b60
17PKG_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/
18
19include $(INCLUDE_DIR)/host-build.mk
20include $(INCLUDE_DIR)/package.mk
21$(call include_mk, python-package.mk)
22
23PYTHON:=$(HOST_PYTHON_BIN)
24
25define Package/distribute
26  SUBMENU:=Python
27  SECTION:=lang
28  CATEGORY:=Languages
29  TITLE:=Distribute
30  URL:=http://pypi.python.org/pypi/distribute
31  DEPENDS:=+python
32  PROVIDES:=setuptools
33endef
34
35define Package/distribute/description
36  Distribute (fork of Setuptools) is a collection of extensions to Distutils
37endef
38
39define Host/Compile
40        $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
41endef
42
43define Host/Install
44        $(INSTALL_DIR) $(STAGING_DIR_HOST)$(PYTHON_PKG_DIR)
45        $(CP) \
46            $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
47            $(STAGING_DIR_HOST)$(PYTHON_PKG_DIR)
48endef
49
50define Build/Compile
51        $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
52endef
53
54define Package/distribute/install
55        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
56        $(CP) \
57            $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
58            $(1)$(PYTHON_PKG_DIR)
59        $(INSTALL_DIR) $(1)/usr/bin
60        $(INSTALL_BIN) \
61            $(PKG_INSTALL_DIR)/usr/bin/easy_install \
62            $(1)/usr/bin/
63        $(SED) '1s/#\!.*/#\!\/usr\/bin\/python/' $(1)/usr/bin/easy_install
64endef
65
66$(eval $(call HostBuild))
67$(eval $(call BuildPackage,distribute))
Note: See TracBrowser for help on using the repository browser.