summaryrefslogtreecommitdiffstats
path: root/rules/python3-transitions.make
diff options
context:
space:
mode:
authorDavid Jander <david@protonic.nl>2018-01-29 16:40:12 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-01-29 18:11:06 +0100
commit3889b2b963a99a22c6c1d53035cbc2f96a83ef50 (patch)
tree3150b8734783dc47370ed3af05ff12e014f7dbca /rules/python3-transitions.make
parent6d2a06dad4c28a5e4846dc9bab0764d095c60d87 (diff)
downloadptxdist-3889b2b963a99a22c6c1d53035cbc2f96a83ef50.tar.gz
ptxdist-3889b2b963a99a22c6c1d53035cbc2f96a83ef50.tar.xz
python3-transitions: new package
Signed-off-by: David Jander <david@protonic.nl> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-transitions.make')
-rw-r--r--rules/python3-transitions.make54
1 files changed, 54 insertions, 0 deletions
diff --git a/rules/python3-transitions.make b/rules/python3-transitions.make
new file mode 100644
index 000000000..d8eddcde9
--- /dev/null
+++ b/rules/python3-transitions.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_TRANSITIONS) += python3-transitions
+
+#
+# Paths and names
+#
+PYTHON3_TRANSITIONS_VERSION := 0.5.3
+PYTHON3_TRANSITIONS_MD5 := 256d7714bfbbdbc4efe23dc2e58afc45
+PYTHON3_TRANSITIONS := python3-transitions-$(PYTHON3_TRANSITIONS_VERSION)
+PYTHON3_TRANSITIONS_SUFFIX := tar.gz
+PYTHON3_TRANSITIONS_URL := https://github.com/pytransitions/transitions/archive/$(PYTHON3_TRANSITIONS_VERSION).$(PYTHON3_TRANSITIONS_SUFFIX)
+PYTHON3_TRANSITIONS_SOURCE := $(SRCDIR)/$(PYTHON3_TRANSITIONS).$(PYTHON3_TRANSITIONS_SUFFIX)
+PYTHON3_TRANSITIONS_DIR := $(BUILDDIR)/$(PYTHON3_TRANSITIONS)
+PYTHON3_TRANSITIONS_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_TRANSITIONS_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-transitions.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-transitions)
+ @$(call install_fixup, python3-transitions, PRIORITY, optional)
+ @$(call install_fixup, python3-transitions, SECTION, base)
+ @$(call install_fixup, python3-transitions, AUTHOR, "David Jander <david@protonic.nl>")
+ @$(call install_fixup, python3-transitions, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-transitions, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/transitions,, *.py)
+
+ @$(call install_finish, python3-transitions)
+
+ @$(call touch)
+
+# vim: syntax=make