2 # Copyright (C) 2007-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
19 include $(INCLUDE_DIR
)/package.mk
20 include ..
/python-package.mk
22 define Package
/gunicorn
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
32 define Package
/gunicorn
/description
33 WSGI HTTP Server for UNIX
37 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
40 define Package
/gunicorn
/install
41 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
42 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
46 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gunicorn
* \
48 # fix python exec path in scripts
49 $(SED
) 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr
/bin
/gunicorn
*
52 $(eval
$(call BuildPackage
,gunicorn
))