Signed-off-by: Artur Wiebe <ar...@4wiebe.de> --- rules/python3-dateutil.in | 11 ++++++++ rules/python3-dateutil.make | 51 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 rules/python3-dateutil.in create mode 100644 rules/python3-dateutil.make
diff --git a/rules/python3-dateutil.in b/rules/python3-dateutil.in new file mode 100644 index 000000000..7d38bd32a --- /dev/null +++ b/rules/python3-dateutil.in @@ -0,0 +1,11 @@ +## SECTION=python3 + +config PYTHON3_DATEUTIL + tristate + select PYTHON3 + select HOST_PYTHON3_SETUPTOOLS_SCM + select PYTHON3_SIX + prompt "dateutil" + help + The dateutil module provides powerful extensions to the + standard datetime module, available in Python. diff --git a/rules/python3-dateutil.make b/rules/python3-dateutil.make new file mode 100644 index 000000000..afed49c08 --- /dev/null +++ b/rules/python3-dateutil.make @@ -0,0 +1,51 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Artur Wiebe <ar...@4wiebe.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_DATEUTIL) += python3-dateutil + +PYTHON3_DATEUTIL_VERSION := 2.7.3 +PYTHON3_DATEUTIL_MD5 := 175b7c1a3cc0cb01151eced07c61c0b8 +PYTHON3_DATEUTIL := python-dateutil-$(PYTHON3_DATEUTIL_VERSION) +PYTHON3_DATEUTIL_SUFFIX := tar.gz +PYTHON3_DATEUTIL_URL := https://pypi.python.org/packages/a0/b0/a4e3241d2dee665fea11baec21389aec6886655cd4db7647ddf96c3fad15/$(PYTHON3_DATEUTIL).$(PYTHON3_DATEUTIL_SUFFIX)\#md5=$(PYTHON3_DATEUTIL_MD5) +PYTHON3_DATEUTIL_SOURCE := $(SRCDIR)/$(PYTHON3_DATEUTIL).$(PYTHON3_DATEUTIL_SUFFIX) +PYTHON3_DATEUTIL_DIR := $(BUILDDIR)/$(PYTHON3_DATEUTIL) +PYTHON3_DATEUTIL_LICENSE := Apache-2.0 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +PYTHON3_DATEUTIL_CONF_TOOL := python3 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/python3-dateutil.targetinstall: + @$(call targetinfo) + + @$(call install_init, python3-dateutil) + @$(call install_fixup,python3-dateutil,PRIORITY,optional) + @$(call install_fixup,python3-dateutil,SECTION,base) + @$(call install_fixup,python3-dateutil,AUTHOR,"Artur Wiebe <ar...@4wiebe.de>") + @$(call install_fixup,python3-dateutil,DESCRIPTION,missing) + + @$(call install_glob, python3-dateutil, 0, 0, -, \ + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/dateutil,, *.py) + + @$(call install_finish,python3-dateutil) + + @$(call touch) + +# vim: syntax=make -- 2.18.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de