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.

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