From 2b6b75cdc05b4bd77a9380d66cc8032c494fa597 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 28 Aug 2007 09:59:41 +0000 Subject: [PATCH] Add kid (#2235) SVN-Revision: 8515 --- lang/kid/Makefile | 39 ++++++++++++++++++++++++++++++++ lang/kid/patches/000-setup.patch | 20 ++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 lang/kid/Makefile create mode 100644 lang/kid/patches/000-setup.patch diff --git a/lang/kid/Makefile b/lang/kid/Makefile new file mode 100644 index 0000000000..bf12535eee --- /dev/null +++ b/lang/kid/Makefile @@ -0,0 +1,39 @@ +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 +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/kid + SECTION:=lang + CATEGORY:=Languages + TITLE:=Kid + DEPENDS:=+python + DESCRIPTION:=\ + Kid is a simple template language for XML based vocabularies written in Python. + URL=http://www.kid-templating.org/ +endef + +define Build/Compile + cd $(PKG_BUILD_DIR); \ + CFLAGS='-I$(STAGING_DIR)/usr/include' \ + LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \ + $(STAGING_DIR)/usr/bin/hostpython ./setup.py install \ + --prefix=$(PKG_INSTALL_DIR)/usr +endef + +define Package/kid/install + $(CP) -R $(PKG_INSTALL_DIR)/* $(1) +endef + +$(eval $(call BuildPackage,kid)) diff --git a/lang/kid/patches/000-setup.patch b/lang/kid/patches/000-setup.patch new file mode 100644 index 0000000000..aeb059e839 --- /dev/null +++ b/lang/kid/patches/000-setup.patch @@ -0,0 +1,20 @@ +diff -urN kid-0.9.6_orig/setup.py kid-0.9.6/setup.py +--- kid-0.9.6/setup.py 2007-07-16 13:02:49.000000000 +0200 ++++ kid-0.9.6/setup.py 2007-08-15 14:39:37.000000000 +0200 +@@ -1,15 +1,12 @@ + #!/usr/bin/env python + + # bootstrap setuptools if necessary +-from ez_setup import use_setuptools +-use_setuptools() ++from distutils.core import setup + + import os + + execfile(os.path.join("kid", "release.py")) + +-from setuptools import setup, find_packages +- + setup( + name="kid", + version=version, -- 2.30.2