diff options
author | Bastian Stender <bst@pengutronix.de> | 2016-01-11 18:11:33 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-01-12 14:47:52 +0100 |
commit | 5a8f15bfc5a5f7a77328b815b96d91053a8e29c7 (patch) | |
tree | f914593732c3ad3f303ff321b973c08442b0c711 /rules/python3-aiohttp-wsgi.make | |
parent | fbeb2255650c9493598f00e6acd2f6de002d046d (diff) | |
download | ptxdist-5a8f15bfc5a5f7a77328b815b96d91053a8e29c7.tar.gz ptxdist-5a8f15bfc5a5f7a77328b815b96d91053a8e29c7.tar.xz |
python3-aiohttp-wsgi: added
Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-aiohttp-wsgi.make')
-rw-r--r-- | rules/python3-aiohttp-wsgi.make | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/rules/python3-aiohttp-wsgi.make b/rules/python3-aiohttp-wsgi.make new file mode 100644 index 000000000..d42609931 --- /dev/null +++ b/rules/python3-aiohttp-wsgi.make @@ -0,0 +1,59 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 by Bastian Stender <bst@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_WSGI) += python3-aiohttp-wsgi + +# +# Paths and names +# +PYTHON3_AIOHTTP_WSGI_VERSION := 0.2.5 +PYTHON3_AIOHTTP_WSGI_MD5 := ab630af7b72622a8f1534639cf48cd2d +PYTHON3_AIOHTTP_WSGI := aiohttp-wsgi-$(PYTHON3_AIOHTTP_WSGI_VERSION) +PYTHON3_AIOHTTP_WSGI_SUFFIX := tar.gz +PYTHON3_AIOHTTP_WSGI_URL := https://pypi.python.org/packages/source/a/aiohttp-wsgi/$(PYTHON3_AIOHTTP_WSGI).$(PYTHON3_AIOHTTP_WSGI_SUFFIX) +PYTHON3_AIOHTTP_WSGI_SOURCE := $(SRCDIR)/$(PYTHON3_AIOHTTP_WSGI).$(PYTHON3_AIOHTTP_WSGI_SUFFIX) +PYTHON3_AIOHTTP_WSGI_DIR := $(BUILDDIR)/$(PYTHON3_AIOHTTP_WSGI) +PYTHON3_AIOHTTP_WSGI_LICENSE := BSD + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +PYTHON3_AIOHTTP_WSGI_CONF_TOOL := python3 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +PYTHON3_AIOHTTP_WSGI_PYTHON_PATH = /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/aiohttp_wsgi + +$(STATEDIR)/python3-aiohttp-wsgi.targetinstall: + @$(call targetinfo) + + @$(call install_init, python3-aiohttp-wsgi) + @$(call install_fixup, python3-aiohttp-wsgi, PRIORITY, optional) + @$(call install_fixup, python3-aiohttp-wsgi, SECTION, base) + @$(call install_fixup, python3-aiohttp-wsgi, AUTHOR, "Bastian Stender <bst@pengutronix.de>") + @$(call install_fixup, python3-aiohttp-wsgi, DESCRIPTION, "WSGI adapter for aiohttp.") + + @cd "$(PYTHON3_AIOHTTP_WSGI_PKGDIR)$(PYTHON3_AIOHTTP_WSGI_PYTHON_PATH)" && \ + find . -type f ! -name "*.py" | while read fn; do \ + $(call install_copy, python3-aiohttp-wsgi, 0, 0, 0644, -, \ + $(PYTHON3_AIOHTTP_WSGI_PYTHON_PATH)/$$fn); \ + done + + @$(call install_finish, python3-aiohttp-wsgi) + + @$(call touch) + +# vim: syntax=make |