2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python2-chardet
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=http
://chardet.feedparser.org
/download
/
16 PKG_MD5SUM
:=ec771971bab5dd1943a10362ebd2fd4c
18 PKG_BUILD_DEPENDS
:=python
20 include $(INCLUDE_DIR
)/package.mk
21 $(call include_mk
, python-package.mk
)
23 define Package
/python2-chardet
27 TITLE
:=Universal Encoding Detector
28 URL
:=http
://chardet.feedparser.org
/ http
://code.google.com
/p
/chardet
/
32 define Package
/python2-chardet
/description
33 Character encoding auto-detection in Python.
37 $(call Build
/Compile
/PyMod
,,install --prefix="$(PKG_INSTALL_DIR)/usr")
40 define Package
/python2-chardet
/install
41 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
43 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
47 $(eval
$(call BuildPackage
,python2-chardet
))