usbmuxd: Update to latest git
[feed/packages.git] / lang / python / gunicorn / Makefile
1 #
2 # Copyright (C) 2007-2017 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:=gunicorn
11 PKG_VERSION:=19.9.0
12 PKG_RELEASE=1
13 PKG_LICENSE:=MIT
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/g/gunicorn
17 PKG_HASH:=fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3
18
19 include $(INCLUDE_DIR)/package.mk
20 include ../python-package.mk
21
22 define Package/gunicorn
23 SUBMENU:=Python
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=WSGI HTTP Server for UNIX
27 MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
28 URL:=https://gunicorn.org
29 DEPENDS:=+python +python-setuptools
30 endef
31
32 define Package/gunicorn/description
33 WSGI HTTP Server for UNIX
34 endef
35
36 define Build/Compile
37 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
38 endef
39
40 define Package/gunicorn/install
41 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(CP) \
44 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
45 $(1)$(PYTHON_PKG_DIR)
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gunicorn* \
47 $(1)/usr/bin
48 # fix python exec path in scripts
49 $(SED) 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/bin/gunicorn*
50 endef
51
52 $(eval $(call BuildPackage,gunicorn))