2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python3-bottle
15 PKG_MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
17 PKG_SOURCE
:=bottle-
$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/f7
/dd
/8ceaa148eeed5371a83fa1fb5a54b01dfc95000799c649924ece23f9f0e1
/
19 PKG_HASH
:=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
)
23 include $(INCLUDE_DIR
)/package.mk
24 $(call include_mk
, python3-package.mk
)
26 define Package
/python3-bottle
30 TITLE
:=Bottle is a fast
, simple and lightweight WSGI micro web-framework for Python
31 URL
:=http
://bottlepy.org
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.
41 define Build
/Configure
47 define Package
/python3-bottle
/install
48 $(INSTALL_DIR
) $(1)$(PYTHON3_PKG_DIR
)
49 $(CP
) $(PKG_BUILD_DIR
)/bottle.py
$(1)$(PYTHON3_PKG_DIR
)
52 $(eval
$(call BuildPackage
,python3-bottle
))