2 # Copyright (C) 2008 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
14 PKG_SOURCE:=Mako-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.makotemplates.org/downloads/
16 PKG_MD5SUM:=d8ca783630dc5e93970a2075532fa643
18 PKG_BUILD_DEPENDS:=distribute/host
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(subst .tar.gz,,$(PKG_SOURCE))
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
28 TITLE:=Mako Templates for Python
29 URL:=http://www.makotemplates.org/
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.
46 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
49 define Package/mako/install
50 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
52 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
53 $(1)$(PYTHON_PKG_DIR)/
56 $(eval $(call BuildPackage,mako))