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.

48 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2015 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:=python3-bottle
  9. PKG_VERSION:=0.12.16
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_CPE_ID:=cpe:/a:bottlepy:bottle
  14. PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
  15. PKG_SOURCE:=bottle-$(PKG_VERSION).tar.gz
  16. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/b/bottle
  17. PKG_HASH:=9c310da61e7df2b6ac257d8a90811899ccb3a9743e77e947101072a2e3186726
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-bottle-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/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/python3-bottle
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Bottle is a fast, simple and lightweight WSGI micro web-framework for Python
  27. URL:=https://bottlepy.org
  28. DEPENDS:=+python3
  29. VARIANT:=python3
  30. endef
  31. define Package/python3-bottle/description
  32. Bottle is a fast, simple and lightweight WSGI micro web-framework for Python.
  33. It is distributed as a single file module and has no dependencies other than the
  34. Python Standard Library.
  35. endef
  36. $(eval $(call Py3Package,python3-bottle))
  37. $(eval $(call BuildPackage,python3-bottle))
  38. $(eval $(call BuildPackage,python3-bottle-src))