2007-09-06 02:52:35 +00:00
|
|
|
#
|
2008-04-14 01:06:00 +00:00
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2007-09-06 02:52:35 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-10-21 10:20:01 +00:00
|
|
|
|
2007-08-28 09:59:41 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=kid
|
|
|
|
PKG_VERSION:=0.9.6
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.kid-templating.org/dist/0.9.6/dist
|
|
|
|
PKG_MD5SUM:=31e7156698a6f214b4067afb9e13728f
|
2008-04-14 01:06:00 +00:00
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=python
|
2007-08-28 09:59:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2010-02-24 23:13:32 +00:00
|
|
|
$(call include_mk, python-package.mk)
|
2007-10-21 10:20:01 +00:00
|
|
|
|
|
|
|
define Package/python-kid
|
2008-04-14 01:06:00 +00:00
|
|
|
SUBMENU:=Python
|
2007-10-21 10:20:01 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+python
|
2007-10-21 10:20:01 +00:00
|
|
|
TITLE:=XML-based Templating
|
|
|
|
URL:=http://www.kid-templating.org/
|
2007-08-28 09:59:41 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-kid/description
|
2014-03-27 07:03:32 +00:00
|
|
|
Kid is a simple template language for XML based vocabularies written in
|
2007-09-06 02:52:35 +00:00
|
|
|
Python.
|
2007-08-28 09:59:41 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-kid/filespec
|
2007-09-06 02:52:35 +00:00
|
|
|
+|$(PYTHON_PKG_DIR)/kid
|
|
|
|
-|$(PYTHON_PKG_DIR)/kid/test
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2008-08-10 16:12:31 +00:00
|
|
|
$(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
|
2007-09-06 02:52:35 +00:00
|
|
|
$(call Build/Compile/PyMod,., \
|
|
|
|
install --prefix="$(PKG_INSTALL_DIR)/usr", \
|
|
|
|
)
|
2007-08-28 09:59:41 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
$(eval $(call PyPackage,python-kid))
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python-kid))
|