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.

51 lines
1.2 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.8
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  13. PKG_SOURCE:=$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/bottlepy/bottle/archive
  15. PKG_MD5SUM:=50a6ebada59391e8d01b2bd2ec52f05b
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/bottle-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python3-package.mk)
  19. define Package/python3-bottle
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=Bottle is a fast, simple and lightweight WSGI micro web-framework for Python
  24. URL:=http://bottlepy.org
  25. DEPENDS:=+python3
  26. endef
  27. define Package/python3-bottle/description
  28. Bottle is a fast, simple and lightweight WSGI micro web-framework for Python.
  29. It is distributed as a single file module and has no dependencies other than the
  30. Python Standard Library.
  31. endef
  32. define Build/Configure
  33. endef
  34. define Build/Compile
  35. endef
  36. define Package/python3-bottle/install
  37. $(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)
  38. $(CP) $(PKG_BUILD_DIR)/bottle.py $(1)$(PYTHON3_PKG_DIR)
  39. endef
  40. $(eval $(call BuildPackage,python3-bottle))