[packages] mako: remove @BROKEN, it is building againg after [28402]
[openwrt/svn-archive/archive.git] / lang / mako / Makefile
1 #
2 # Copyright (C) 2008 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:=mako
11 PKG_VERSION:=0.2.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=Mako-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.makotemplates.org/downloads/
16 PKG_MD5SUM:=d8ca783630dc5e93970a2075532fa643
17
18 PKG_BUILD_DEPENDS:=distribute/host
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(subst .tar.gz,,$(PKG_SOURCE))
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/mako
25 SUBMENU:=Python
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=Mako Templates for Python
29 URL:=http://www.makotemplates.org/
30 DEPENDS:=+python
31 endef
32
33 define Package/mako/description
34 Mako is a template library written in Python. It provides a familiar,
35 non-XML syntax which compiles into Python modules for maximum
36 performance. Mako's syntax and API borrows from the best ideas of many
37 others, including Django templates, Cheetah, Myghty, and
38 Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server
39 Page) language, which refines the familiar ideas of componentized
40 layout and inheritance to produce one of the most straightforward and
41 flexible models available, while also maintaining close ties to Python
42 calling and scoping semantics.
43 endef
44
45 define Build/Compile
46 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
47 endef
48
49 define Package/mako/install
50 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
51 $(CP) \
52 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
53 $(1)$(PYTHON_PKG_DIR)/
54 endef
55
56 $(eval $(call BuildPackage,mako))