summaryrefslogtreecommitdiffstats
path: root/rules/python3-aiohttp.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-12-30 11:39:17 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-01-12 14:47:48 +0100
commitf79d2c5152714bd88684722d0a65d6c956dd32ac (patch)
tree3121f812c6883d529c904e1cc6c3fa2636b29d64 /rules/python3-aiohttp.make
parent96426cdebdb4600437c7b2babd4df8d727fc3e57 (diff)
downloadptxdist-f79d2c5152714bd88684722d0a65d6c956dd32ac.tar.gz
ptxdist-f79d2c5152714bd88684722d0a65d6c956dd32ac.tar.xz
python3-aiohttp: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-aiohttp.make')
-rw-r--r--rules/python3-aiohttp.make57
1 files changed, 57 insertions, 0 deletions
diff --git a/rules/python3-aiohttp.make b/rules/python3-aiohttp.make
new file mode 100644
index 000000000..02c3e713e
--- /dev/null
+++ b/rules/python3-aiohttp.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_AIOHTTP) += python3-aiohttp
+
+#
+# Paths and names
+#
+PYTHON3_AIOHTTP_VERSION := 0.20.0
+PYTHON3_AIOHTTP_MD5 := 5db14a019b10d80e9b7f438d99aec83b
+PYTHON3_AIOHTTP := aiohttp-$(PYTHON3_AIOHTTP_VERSION)
+PYTHON3_AIOHTTP_SUFFIX := tar.gz
+PYTHON3_AIOHTTP_URL := https://pypi.python.org/packages/source/a/aiohttp/$(PYTHON3_AIOHTTP).$(PYTHON3_AIOHTTP_SUFFIX)
+PYTHON3_AIOHTTP_SOURCE := $(SRCDIR)/$(PYTHON3_AIOHTTP).$(PYTHON3_AIOHTTP_SUFFIX)
+PYTHON3_AIOHTTP_DIR := $(BUILDDIR)/$(PYTHON3_AIOHTTP)
+PYTHON3_AIOHTTP_LICENSE := Apache-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_AIOHTTP_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-aiohttp.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-aiohttp)
+ @$(call install_fixup, python3-aiohttp,PRIORITY,optional)
+ @$(call install_fixup, python3-aiohttp,SECTION,base)
+ @$(call install_fixup, python3-aiohttp,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, python3-aiohttp,DESCRIPTION,missing)
+
+ @for file in `find $(PYTHON3_AIOHTTP_PKGDIR)/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/aiohttp \
+ ! -type d ! -name "*.py" -printf "%P\n"`; do \
+ $(call install_copy, python3-aiohttp, 0, 0, 0644, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/aiohttp/$$file); \
+ done
+
+ @$(call install_finish, python3-aiohttp)
+
+ @$(call touch)
+
+# vim: syntax=make