move in Python submenu, misc cosmetic changes
[openwrt/svn-archive/archive.git] / lang / kid / Makefile
1 #
2 # Copyright (C) 2007-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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=kid
12 PKG_VERSION:=0.9.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.kid-templating.org/dist/0.9.6/dist
17 PKG_MD5SUM:=31e7156698a6f214b4067afb9e13728f
18
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
23 ifneq ($(MAKECMDGOALS),download)
24 $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
25 endif
26
27 define Package/python-kid
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 DEPENDS:=python-core
32 TITLE:=XML-based Templating
33 URL:=http://www.kid-templating.org/
34 endef
35
36 define Package/python-kid/description
37 Kid is a simple template language for XML based vocabularies written in
38 Python.
39 endef
40
41 define PyPackage/python-kid/filespec
42 +|$(PYTHON_PKG_DIR)/kid
43 -|$(PYTHON_PKG_DIR)/kid/test
44 endef
45
46 define Build/Compile
47 $(call Build/Compile/PyMod,., \
48 install --prefix="$(PKG_INSTALL_DIR)/usr", \
49 )
50 endef
51
52 $(eval $(call PyPackage,python-kid))
53 $(eval $(call BuildPackage,python-kid))