fix up downloading in python packages
[packages.git] / lang / kid / Makefile
1 #
2 # Copyright (C) 2007 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 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22 ifneq ($(MAKECMDGOALS),download)
23   $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
24 endif
25
26 define Package/python-kid
27   SECTION:=lang
28   CATEGORY:=Languages
29   DEPENDS:=python-core
30   TITLE:=XML-based Templating
31   URL:=http://www.kid-templating.org/
32 endef
33
34 define Package/python-kid/description
35  Kid is a simple template language for XML based vocabularies written in 
36  Python.
37 endef
38
39 define PyPackage/python-kid/filespec
40 +|$(PYTHON_PKG_DIR)/kid
41 -|$(PYTHON_PKG_DIR)/kid/test
42 endef
43
44 define Build/Compile
45         $(call Build/Compile/PyMod,., \
46                 install --prefix="$(PKG_INSTALL_DIR)/usr", \
47         )
48 endef
49
50 $(eval $(call PyPackage,python-kid))
51 $(eval $(call BuildPackage,python-kid))