[packages] licensing: Licensing metadata added to many packages
[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_LICENSE:=PUBLICDOMAIN BSD
19 PKG_LICENSE_FILES:=
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_BUILD_DEPENDS:=python
23
24 include $(INCLUDE_DIR)/package.mk
25 $(call include_mk, python-package.mk)
26
27 define Package/python-webpy
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=python-webpy
32 URL:=http://webpy.org
33 DEPENDS:=+python
34 MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
35 endef
36
37 define Package/python-web.py/description
38 Think about the ideal way to write a web app. Write the code to make it happen.
39 endef
40
41 define Build/Compile
42 $(INSTALL_DIR) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
43 $(CP) \
44 $(PKG_BUILD_DIR)/web \
45 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
46 endef
47
48 define Package/python-webpy/install
49 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
50 $(CP) \
51 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/web \
52 $(1)$(PYTHON_PKG_DIR)
53 endef
54
55 $(eval $(call BuildPackage,python-webpy))