Makefile (1408B)
1 # 2 # Copyright (C) 2007-2016 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.6.0 12 PKG_RELEASE=1 13 PKG_LICENSE:=MIT 14 15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16 PKG_SOURCE_URL:=https://pypi.python.org/packages/84/ce/7ea5396efad1cef682bbc4068e72a0276341d9d9d0f501da609fab9fcb80/ 17 PKG_MD5SUM:=338e5e8a83ea0f0625f768dba4597530 18 PKG_BUILD_DEPENDS:=python python-setuptools 19 20 include $(INCLUDE_DIR)/package.mk 21 $(call include_mk, python-package.mk) 22 23 define Package/gunicorn 24 SUBMENU:=Python 25 SECTION:=lang 26 CATEGORY:=Languages 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 31 endef 32 33 define Package/gunicorn/description 34 WSGI HTTP Server for UNIX 35 endef 36 37 define Build/Compile 38 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) 39 endef 40 41 define Package/gunicorn/install 42 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) 43 $(INSTALL_DIR) $(1)/usr/bin 44 $(CP) \ 45 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ 46 $(1)$(PYTHON_PKG_DIR) 47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gunicorn* \ 48 $(1)/usr/bin 49 # fix python exec path in scripts 50 $(SED) 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/bin/gunicorn* 51 endef 52 53 $(eval $(call BuildPackage,gunicorn))