summaryrefslogtreecommitdiffstats
path: root/rules/python3-chardet.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-12-30 13:07:54 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-01-12 14:47:47 +0100
commit96426cdebdb4600437c7b2babd4df8d727fc3e57 (patch)
treeee3107ec5a10e6f40d3f156a93516ebc44f55bf8 /rules/python3-chardet.make
parent143678f4b3252d9b1d90757edfe7d364e0d5abf2 (diff)
downloadptxdist-96426cdebdb4600437c7b2babd4df8d727fc3e57.tar.gz
ptxdist-96426cdebdb4600437c7b2babd4df8d727fc3e57.tar.xz
python3-chardet: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-chardet.make')
-rw-r--r--rules/python3-chardet.make57
1 files changed, 57 insertions, 0 deletions
diff --git a/rules/python3-chardet.make b/rules/python3-chardet.make
new file mode 100644
index 000000000..c0c8db505
--- /dev/null
+++ b/rules/python3-chardet.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_CHARDET) += python3-chardet
+
+#
+# Paths and names
+#
+PYTHON3_CHARDET_VERSION := 2.3.0
+PYTHON3_CHARDET_MD5 := 25274d664ccb5130adae08047416e1a8
+PYTHON3_CHARDET := chardet-$(PYTHON3_CHARDET_VERSION)
+PYTHON3_CHARDET_SUFFIX := tar.gz
+PYTHON3_CHARDET_URL := https://pypi.python.org/packages/source/c/chardet/$(PYTHON3_CHARDET).$(PYTHON3_CHARDET_SUFFIX)
+PYTHON3_CHARDET_SOURCE := $(SRCDIR)/$(PYTHON3_CHARDET).$(PYTHON3_CHARDET_SUFFIX)
+PYTHON3_CHARDET_DIR := $(BUILDDIR)/$(PYTHON3_CHARDET)
+PYTHON3_CHARDET_LICENSE := LGPL-2.1+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_CHARDET_CONF_TOOL := python3
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-chardet.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-chardet)
+ @$(call install_fixup, python3-chardet,PRIORITY,optional)
+ @$(call install_fixup, python3-chardet,SECTION,base)
+ @$(call install_fixup, python3-chardet,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, python3-chardet,DESCRIPTION,missing)
+
+ @for file in `find $(PYTHON3_CHARDET_PKGDIR)/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/chardet \
+ ! -type d ! -name "*.py" -printf "%P\n"`; do \
+ $(call install_copy, python3-chardet, 0, 0, 0644, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/chardet/$$file); \
+ done
+
+
+ @$(call install_finish, python3-chardet)
+
+ @$(call touch)
+
+# vim: syntax=make