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