From ab60f0af2a27c1fa6b4e71c8a83948d78014b0b7 Mon Sep 17 00:00:00 2001 From: "Scott V. Kamp" Date: Sat, 13 Mar 2010 02:51:59 +0000 Subject: [PATCH] [patchteam] - New Package - python2-chardet Signed off by alexander@sulfrian.net SVN-Revision: 20172 --- lang/python2-chardet/Makefile | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lang/python2-chardet/Makefile diff --git a/lang/python2-chardet/Makefile b/lang/python2-chardet/Makefile new file mode 100644 index 0000000000..ff7b60fee3 --- /dev/null +++ b/lang/python2-chardet/Makefile @@ -0,0 +1,47 @@ +# +# 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:=python2-chardet +PKG_VERSION:=2.0.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz +PKG_SOURCE_URL:=http://chardet.feedparser.org/download/ +PKG_MD5SUM:=ec771971bab5dd1943a10362ebd2fd4c + +PKG_BUILD_DEPENDS:=python + +include $(INCLUDE_DIR)/package.mk +$(call include_mk, python-package.mk) + +define Package/python2-chardet + SUBMENU:=Python + SECTION:=lang + CATEGORY:=Languages + TITLE:=Universal Encoding Detector + URL:=http://chardet.feedparser.org/ http://code.google.com/p/chardet/ + DEPENDS:=+python +endef + +define Package/python2-chardet/description + Character encoding auto-detection in Python. +endef + +define Build/Compile + $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr") +endef + +define Package/python2-chardet/install + $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) + $(CP) \ + $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ + $(1)$(PYTHON_PKG_DIR) +endef + +$(eval $(call BuildPackage,python2-chardet)) -- 2.30.2