From: Scott V. Kamp Date: Sat, 13 Mar 2010 02:58:54 +0000 (+0000) Subject: [patchteam] - New Package - Mako python template language X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=7b1829bb6e08fd051976f893fa4b3ee69a64a897;hp=7573196a175e381de0e72d5b0046ea211129c082 [patchteam] - New Package - Mako python template language Singed off by alexander@sulfrian.net SVN-Revision: 20175 --- diff --git a/lang/mako/Makefile b/lang/mako/Makefile new file mode 100644 index 0000000000..7a69d9b98b --- /dev/null +++ b/lang/mako/Makefile @@ -0,0 +1,56 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=mako +PKG_VERSION:=0.2.5 +PKG_RELEASE:=1 + +PKG_SOURCE:=Mako-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.makotemplates.org/downloads/ +PKG_MD5SUM:=d8ca783630dc5e93970a2075532fa643 + +PKG_BUILD_DEPENDS:=distribute/host +PKG_BUILD_DIR:=$(BUILD_DIR)/$(subst .tar.gz,,$(PKG_SOURCE)) + +include $(INCLUDE_DIR)/package.mk +$(call include_mk, python-package.mk) + +define Package/mako + SUBMENU:=Python + SECTION:=lang + CATEGORY:=Languages + TITLE:=Mako Templates for Python + URL:=http://www.makotemplates.org/ + DEPENDS:=+python +endef + +define Package/mako/description +Mako is a template library written in Python. It provides a familiar, +non-XML syntax which compiles into Python modules for maximum +performance. Mako's syntax and API borrows from the best ideas of many +others, including Django templates, Cheetah, Myghty, and +Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server +Page) language, which refines the familiar ideas of componentized +layout and inheritance to produce one of the most straightforward and +flexible models available, while also maintaining close ties to Python +calling and scoping semantics. +endef + +define Build/Compile + $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) +endef + +define Package/mako/install + $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) + $(CP) \ + $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ + $(1)$(PYTHON_PKG_DIR) +endef + +$(eval $(call BuildPackage,mako))