summaryrefslogtreecommitdiffstats
path: root/rules/python3-websockets.make
diff options
context:
space:
mode:
authorDavid Jander <david@protonic.nl>2018-01-29 16:40:13 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-01-29 18:11:07 +0100
commit84760757887de9250a8eee5b1b2d77caa5ca2a97 (patch)
tree6e9f22f40d999b9389933d1e69bf329f17890b25 /rules/python3-websockets.make
parent3889b2b963a99a22c6c1d53035cbc2f96a83ef50 (diff)
downloadptxdist-84760757887de9250a8eee5b1b2d77caa5ca2a97.tar.gz
ptxdist-84760757887de9250a8eee5b1b2d77caa5ca2a97.tar.xz
python3-websockets: new package
Signed-off-by: David Jander <david@protonic.nl> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-websockets.make')
-rw-r--r--rules/python3-websockets.make54
1 files changed, 54 insertions, 0 deletions
diff --git a/rules/python3-websockets.make b/rules/python3-websockets.make
new file mode 100644
index 000000000..ce27face5
--- /dev/null
+++ b/rules/python3-websockets.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by David Jander <david@protonic.nl>
+#
+# 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_WEBSOCKETS) += python3-websockets
+
+#
+# Paths and names
+#
+PYTHON3_WEBSOCKETS_VERSION := 4.0.1
+PYTHON3_WEBSOCKETS_MD5 := 671903b0e638a74aace98ff5cb341453
+PYTHON3_WEBSOCKETS := python3-websockets-$(PYTHON3_WEBSOCKETS_VERSION)
+PYTHON3_WEBSOCKETS_SUFFIX := tar.gz
+PYTHON3_WEBSOCKETS_URL := https://github.com/aaugustin/websockets/archive/$(PYTHON3_WEBSOCKETS_VERSION).$(PYTHON3_WEBSOCKETS_SUFFIX)
+PYTHON3_WEBSOCKETS_SOURCE := $(SRCDIR)/$(PYTHON3_WEBSOCKETS).$(PYTHON3_WEBSOCKETS_SUFFIX)
+PYTHON3_WEBSOCKETS_DIR := $(BUILDDIR)/$(PYTHON3_WEBSOCKETS)
+PYTHON3_WEBSOCKETS_LICENSE := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_WEBSOCKETS_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-websockets.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-websockets)
+ @$(call install_fixup, python3-websockets, PRIORITY, optional)
+ @$(call install_fixup, python3-websockets, SECTION, base)
+ @$(call install_fixup, python3-websockets, AUTHOR, "David Jander <david@protonic.nl>")
+ @$(call install_fixup, python3-websockets, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-websockets, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/websockets,, *.py)
+
+ @$(call install_finish, python3-websockets)
+
+ @$(call touch)
+
+# vim: syntax=make