You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.7 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gunicorn
  9. PKG_VERSION:=20.0.4
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=$(PKG_NAME)
  12. PKG_HASH:=1904bb2b8a43658807108d59c3f3d56c2b6121a701161de0ddf9ad140073c626
  13. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python3-package.mk
  19. define Package/gunicorn/Default
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=WSGI HTTP Server for UNIX
  24. URL:=https://gunicorn.org
  25. endef
  26. define Package/python3-gunicorn
  27. $(call Package/gunicorn/Default)
  28. TITLE:=WSGI HTTP Server for UNIX (library)
  29. DEPENDS:=+python3
  30. VARIANT:=python3
  31. endef
  32. define Package/python3-gunicorn/description
  33. WSGI HTTP Server for UNIX (libraries)
  34. .
  35. (Variant for Python3)
  36. endef
  37. # Make sure that the binaries are not installed with the libraries
  38. # That means adding some empty Py3Package/gunicorn3/install rules
  39. define Py3Package/python3-gunicorn/install
  40. :
  41. endef
  42. define Package/gunicorn3
  43. $(call Package/gunicorn/Default)
  44. DEPENDS:=+python3 +python3-setuptools +python3-gunicorn
  45. endef
  46. define Package/gunicorn3/description
  47. WSGI HTTP Server for UNIX (daemon)
  48. .
  49. (Variant for Python3)
  50. endef
  51. define Package/gunicorn3/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_BIN) \
  54. $(PKG_INSTALL_DIR)/usr/bin/gunicorn \
  55. $(1)/usr/bin/gunicorn3
  56. $(LN) gunicorn3 $(1)/usr/bin/gunicorn
  57. $(call Py3Shebang,$(1)/usr/bin/*)
  58. endef
  59. $(eval $(call Py3Package,python3-gunicorn))
  60. $(eval $(call BuildPackage,python3-gunicorn))
  61. $(eval $(call BuildPackage,python3-gunicorn-src))
  62. $(eval $(call BuildPackage,gunicorn3))