2 # Copyright (C) 2007-2016 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
:=http
://pypi.python.org
/packages
/source
/g
/gunicorn
/
17 PKG_MD5SUM
:=ce45c2dccba58784694dd77f23d9a677
18 PKG_BUILD_DEPENDS
:=python python-setuptools
20 include $(INCLUDE_DIR
)/package.mk
21 $(call include_mk
, python-package.mk
)
23 define Package
/gunicorn
27 TITLE
:=WSGI HTTP Server for UNIX
28 MAINTAINER
:=Gergely Kiss
<mail.gery@gmail.com
>
29 URL
:=http
://gunicorn.org
/
30 DEPENDS
:=+python
+python-setuptools
33 define Package
/gunicorn
/description
34 WSGI HTTP Server for UNIX
38 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
41 define Package
/gunicorn
/install
42 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
43 $(INSTALL_DIR
) $(1)/usr
/bin
45 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
47 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gunicorn
* \
49 # fix python exec path in scripts
50 $(SED
) 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr
/bin
/gunicorn
*
53 $(eval
$(call BuildPackage
,gunicorn
))