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.

70 lines
1.7 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=flup
  9. PKG_VERSION:=1.0.3
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/f/flup
  13. PKG_HASH:=5eb09f26eb0751f8380d8ac43d1dfb20e1d42eca0fa45ea9289fa532a79cd159
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-flup-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=PKG-INFO
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/flup/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Random assortment of WSGI servers
  27. URL:=https://www.saddi.com/software/flup/
  28. endef
  29. define Package/python-flup
  30. $(call Package/flup/Default)
  31. DEPENDS+= \
  32. +PACKAGE_python-flup:python-light \
  33. +PACKAGE_python-flup:python-logging
  34. VARIANT:=python
  35. endef
  36. define Package/python3-flup
  37. $(call Package/flup/Default)
  38. DEPENDS+= \
  39. +PACKAGE_python3-flup:python3-light \
  40. +PACKAGE_python3-flup:python3-logging
  41. VARIANT:=python3
  42. endef
  43. define Package/python-flup/description
  44. Random assortment of WSGI servers.
  45. endef
  46. define Package/python3-flup/description
  47. $(call Package/python-flup/description)
  48. .
  49. (Variant for Python3)
  50. endef
  51. $(eval $(call PyPackage,python-flup))
  52. $(eval $(call BuildPackage,python-flup))
  53. $(eval $(call BuildPackage,python-flup-src))
  54. $(eval $(call Py3Package,python3-flup))
  55. $(eval $(call BuildPackage,python3-flup))
  56. $(eval $(call BuildPackage,python3-flup-src))