[packages] python-webpy: Add package python-webpy
[openwrt/svn-archive/archive.git] / lang / python-webpy / Makefile
1 #
2 # Copyright (C) 2012 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:=web.py
11 PKG_VERSION:=0.37
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=web.py-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://webpy.org/static/
16 PKG_MD5SUM:=93375e3f03e74d6bf5c5096a4962a8db
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/python-webpy
25 SUBMENU:=Python
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=python-webpy
29 URL:=http://webpy.org
30 DEPENDS:=+python
31 MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
32 endef
33
34 define Package/python-web.py/description
35 Think about the ideal way to write a web app. Write the code to make it happen.
36 endef
37
38 define Build/Compile
39 $(INSTALL_DIR) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
40 $(CP) \
41 $(PKG_BUILD_DIR)/web \
42 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
43 endef
44
45 define Package/python-webpy/install
46 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
47 $(CP) \
48 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/web \
49 $(1)$(PYTHON_PKG_DIR)
50 endef
51
52 $(eval $(call BuildPackage,python-webpy))