* [ptxdist] [PATCH V2 0/2] Add host-python3-babel @ 2022-05-03 12:38 David Jander 2022-05-03 12:38 ` [ptxdist] [PATCH V2 1/2] host-python3-tz: new package David Jander 2022-05-03 12:38 ` [ptxdist] [PATCH V2 2/2] host-python3-babel: " David Jander 0 siblings, 2 replies; 6+ messages in thread From: David Jander @ 2022-05-03 12:38 UTC (permalink / raw) To: ptxdist, Robin van der Gracht; +Cc: Michael Olbrich, David Jander host-python3-babel is needed for many python applications that require compile-time i18n/l10n. This also requires host-python3-tz. Changes since V1: - Removed reference to CREDITS file in comment - Added SoB of original patch author David Jander (2): host-python3-tz: new package host-python3-babel: new package rules/host-python3-babel.in | 8 ++++ rules/host-python3-babel.make | 72 +++++++++++++++++++++++++++++++++++ rules/host-python3-tz.in | 6 +++ rules/host-python3-tz.make | 32 ++++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 rules/host-python3-babel.in create mode 100644 rules/host-python3-babel.make create mode 100644 rules/host-python3-tz.in create mode 100644 rules/host-python3-tz.make -- 2.32.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH V2 1/2] host-python3-tz: new package 2022-05-03 12:38 [ptxdist] [PATCH V2 0/2] Add host-python3-babel David Jander @ 2022-05-03 12:38 ` David Jander 2022-05-06 7:18 ` Michael Olbrich 2022-05-03 12:38 ` [ptxdist] [PATCH V2 2/2] host-python3-babel: " David Jander 1 sibling, 1 reply; 6+ messages in thread From: David Jander @ 2022-05-03 12:38 UTC (permalink / raw) To: ptxdist, Robin van der Gracht; +Cc: Michael Olbrich, David Jander Needed for host-python3-babel Signed-off-by: Robin van der Gracht <robin@protonic.nl> Signed-off-by: David Jander <david@protonic.nl> --- rules/host-python3-tz.in | 6 ++++++ rules/host-python3-tz.make | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 rules/host-python3-tz.in create mode 100644 rules/host-python3-tz.make diff --git a/rules/host-python3-tz.in b/rules/host-python3-tz.in new file mode 100644 index 000000000..fc0cba845 --- /dev/null +++ b/rules/host-python3-tz.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_noprompt + +config HOST_PYTHON3_TZ + tristate + default y if ALLYES + select HOST_PYTHON3 diff --git a/rules/host-python3-tz.make b/rules/host-python3-tz.make new file mode 100644 index 000000000..312cdd3e4 --- /dev/null +++ b/rules/host-python3-tz.make @@ -0,0 +1,32 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Robin van der Gracht <robin@protonic.nl> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_TZ) += host-python3-tz + +# +# Paths and names +# +HOST_PYTHON3_TZ_VERSION := 2018.9 +HOST_PYTHON3_TZ_MD5 := 0f57d76c64d0965e7429c9b871f6b711 +HOST_PYTHON3_TZ := python3-tz-$(HOST_PYTHON3_TZ_VERSION) +HOST_PYTHON3_TZ_SUFFIX := tar.gz +HOST_PYTHON3_TZ_URL := https://files.pythonhosted.org/packages/af/be/6c59e30e208a5f28da85751b93ec7b97e4612268bb054d0dff396e758a90/pytz-$(HOST_PYTHON3_TZ_VERSION).$(HOST_PYTHON3_TZ_SUFFIX) +HOST_PYTHON3_TZ_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_TZ).$(HOST_PYTHON3_TZ_SUFFIX) +HOST_PYTHON3_TZ_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_TZ) +HOST_PYTHON3_TZ_LICENSE := MIT + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_PYTHON3_TZ_CONF_TOOL := python3 + +# vim: syntax=make -- 2.32.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCH V2 1/2] host-python3-tz: new package 2022-05-03 12:38 ` [ptxdist] [PATCH V2 1/2] host-python3-tz: new package David Jander @ 2022-05-06 7:18 ` Michael Olbrich 2022-05-06 7:33 ` Michael Olbrich 0 siblings, 1 reply; 6+ messages in thread From: Michael Olbrich @ 2022-05-06 7:18 UTC (permalink / raw) To: David Jander; +Cc: Robin van der Gracht, ptxdist On Tue, May 03, 2022 at 02:38:02PM +0200, David Jander wrote: > Needed for host-python3-babel > > Signed-off-by: Robin van der Gracht <robin@protonic.nl> > Signed-off-by: David Jander <david@protonic.nl> > --- > rules/host-python3-tz.in | 6 ++++++ > rules/host-python3-tz.make | 32 ++++++++++++++++++++++++++++++++ > 2 files changed, 38 insertions(+) > create mode 100644 rules/host-python3-tz.in > create mode 100644 rules/host-python3-tz.make > > diff --git a/rules/host-python3-tz.in b/rules/host-python3-tz.in > new file mode 100644 > index 000000000..fc0cba845 > --- /dev/null > +++ b/rules/host-python3-tz.in > @@ -0,0 +1,6 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_PYTHON3_TZ > + tristate > + default y if ALLYES > + select HOST_PYTHON3 > diff --git a/rules/host-python3-tz.make b/rules/host-python3-tz.make > new file mode 100644 > index 000000000..312cdd3e4 > --- /dev/null > +++ b/rules/host-python3-tz.make > @@ -0,0 +1,32 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2019 by Robin van der Gracht <robin@protonic.nl> > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_TZ) += host-python3-tz > + > +# > +# Paths and names > +# > +HOST_PYTHON3_TZ_VERSION := 2018.9 > +HOST_PYTHON3_TZ_MD5 := 0f57d76c64d0965e7429c9b871f6b711 Use tabs please. > +HOST_PYTHON3_TZ := python3-tz-$(HOST_PYTHON3_TZ_VERSION) Use the upstream tarball name unless there is a good reason not to. > +HOST_PYTHON3_TZ_SUFFIX := tar.gz > +HOST_PYTHON3_TZ_URL := https://files.pythonhosted.org/packages/af/be/6c59e30e208a5f28da85751b93ec7b97e4612268bb054d0dff396e758a90/pytz-$(HOST_PYTHON3_TZ_VERSION).$(HOST_PYTHON3_TZ_SUFFIX) Use ptx/mirror-pypi. Michael > +HOST_PYTHON3_TZ_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_TZ).$(HOST_PYTHON3_TZ_SUFFIX) > +HOST_PYTHON3_TZ_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_TZ) > +HOST_PYTHON3_TZ_LICENSE := MIT > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +HOST_PYTHON3_TZ_CONF_TOOL := python3 > + > +# vim: syntax=make > -- > 2.32.0 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCH V2 1/2] host-python3-tz: new package 2022-05-06 7:18 ` Michael Olbrich @ 2022-05-06 7:33 ` Michael Olbrich 0 siblings, 0 replies; 6+ messages in thread From: Michael Olbrich @ 2022-05-06 7:33 UTC (permalink / raw) To: David Jander, ptxdist, Robin van der Gracht On Fri, May 06, 2022 at 09:18:48AM +0200, Michael Olbrich wrote: > On Tue, May 03, 2022 at 02:38:02PM +0200, David Jander wrote: > > Needed for host-python3-babel > > > > Signed-off-by: Robin van der Gracht <robin@protonic.nl> > > Signed-off-by: David Jander <david@protonic.nl> > > --- > > rules/host-python3-tz.in | 6 ++++++ > > rules/host-python3-tz.make | 32 ++++++++++++++++++++++++++++++++ > > 2 files changed, 38 insertions(+) > > create mode 100644 rules/host-python3-tz.in > > create mode 100644 rules/host-python3-tz.make > > > > diff --git a/rules/host-python3-tz.in b/rules/host-python3-tz.in > > new file mode 100644 > > index 000000000..fc0cba845 > > --- /dev/null > > +++ b/rules/host-python3-tz.in > > @@ -0,0 +1,6 @@ > > +## SECTION=hosttools_noprompt > > + > > +config HOST_PYTHON3_TZ > > + tristate > > + default y if ALLYES > > + select HOST_PYTHON3 > > diff --git a/rules/host-python3-tz.make b/rules/host-python3-tz.make > > new file mode 100644 > > index 000000000..312cdd3e4 > > --- /dev/null > > +++ b/rules/host-python3-tz.make > > @@ -0,0 +1,32 @@ > > +# -*-makefile-*- > > +# > > +# Copyright (C) 2019 by Robin van der Gracht <robin@protonic.nl> > > +# > > +# For further information about the PTXdist project and license conditions > > +# see the README file. > > +# > > + > > +# > > +# We provide this package > > +# > > +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_TZ) += host-python3-tz > > + > > +# > > +# Paths and names > > +# > > +HOST_PYTHON3_TZ_VERSION := 2018.9 > > +HOST_PYTHON3_TZ_MD5 := 0f57d76c64d0965e7429c9b871f6b711 > > Use tabs please. > > > +HOST_PYTHON3_TZ := python3-tz-$(HOST_PYTHON3_TZ_VERSION) > > Use the upstream tarball name unless there is a good reason not to. > > > +HOST_PYTHON3_TZ_SUFFIX := tar.gz > > +HOST_PYTHON3_TZ_URL := https://files.pythonhosted.org/packages/af/be/6c59e30e208a5f28da85751b93ec7b97e4612268bb054d0dff396e758a90/pytz-$(HOST_PYTHON3_TZ_VERSION).$(HOST_PYTHON3_TZ_SUFFIX) > > Use ptx/mirror-pypi. > > Michael > > > +HOST_PYTHON3_TZ_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_TZ).$(HOST_PYTHON3_TZ_SUFFIX) > > +HOST_PYTHON3_TZ_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_TZ) > > +HOST_PYTHON3_TZ_LICENSE := MIT And please add the license file as well. Michael > > + > > +# ---------------------------------------------------------------------------- > > +# Prepare > > +# ---------------------------------------------------------------------------- > > + > > +HOST_PYTHON3_TZ_CONF_TOOL := python3 > > + > > +# vim: syntax=make > > -- > > 2.32.0 > > > > > > > > -- > Pengutronix e.K. | | > Steuerwalder Str. 21 | http://www.pengutronix.de/ | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | ^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH V2 2/2] host-python3-babel: new package 2022-05-03 12:38 [ptxdist] [PATCH V2 0/2] Add host-python3-babel David Jander 2022-05-03 12:38 ` [ptxdist] [PATCH V2 1/2] host-python3-tz: new package David Jander @ 2022-05-03 12:38 ` David Jander 2022-05-06 7:35 ` Michael Olbrich 1 sibling, 1 reply; 6+ messages in thread From: David Jander @ 2022-05-03 12:38 UTC (permalink / raw) To: ptxdist, Robin van der Gracht; +Cc: Michael Olbrich, David Jander Signed-off-by: Robin van der Gracht <robin@protonic.nl> Signed-off-by: David Jander <david@protonic.nl> --- rules/host-python3-babel.in | 8 ++++ rules/host-python3-babel.make | 72 +++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 rules/host-python3-babel.in create mode 100644 rules/host-python3-babel.make diff --git a/rules/host-python3-babel.in b/rules/host-python3-babel.in new file mode 100644 index 000000000..82a398cf4 --- /dev/null +++ b/rules/host-python3-babel.in @@ -0,0 +1,8 @@ +## SECTION=hosttools_noprompt + +config HOST_PYTHON3_BABEL + tristate + default y if ALLYES + select HOST_PYTHON3 + select HOST_PYTHON3_TZ + select HOST_PYTHON3_SETUPTOOLS diff --git a/rules/host-python3-babel.make b/rules/host-python3-babel.make new file mode 100644 index 000000000..a864af839 --- /dev/null +++ b/rules/host-python3-babel.make @@ -0,0 +1,72 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Robin van der Gracht <robin@protonic.nl> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_BABEL) += host-python3-babel + +# +# Paths and names +# +HOST_PYTHON3_BABEL_VERSION := v2.10.1 +HOST_PYTHON3_BABEL_MD5 := 9483ad57043776324459e7f000aec7f0 +HOST_PYTHON3_BABEL := babel-$(HOST_PYTHON3_BABEL_VERSION) +HOST_PYTHON3_BABEL_SUFFIX := tar.gz +HOST_PYTHON3_BABEL_URL := https://github.com/python-babel/babel/archive/$(HOST_PYTHON3_BABEL_VERSION).$(HOST_PYTHON3_BABEL_SUFFIX) +HOST_PYTHON3_BABEL_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_BABEL).$(HOST_PYTHON3_BABEL_SUFFIX) +HOST_PYTHON3_BABEL_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_BABEL) +HOST_PYTHON3_BABEL_LICENSE := BSD + + +HOST_PYTHON3_BABEL_CLDR_VERSION := 33 +HOST_PYTHON3_BABEL_CLDR_MD5 := 39bf16711836c23e386189c3cbd2f344 +HOST_PYTHON3_BABEL_CLDR_URL := https://unicode.org/Public/cldr/$(HOST_PYTHON3_BABEL_CLDR_VERSION)/core.zip +HOST_PYTHON3_BABEL_CLDR_SOURCE := $(SRCDIR)/cldr-core-$(HOST_PYTHON3_BABEL_CLDR_VERSION).0.zip +HOST_PYTHON3_BABEL_CLDR_DIR := $(HOST_PYTHON3_BABEL_DIR)/cldr + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-python3-babel.get: + @$(call targetinfo) + @$(call world/get, HOST_PYTHON3_BABEL) + @$(call world/check_src, HOST_PYTHON3_BABEL) + @$(call world/get, HOST_PYTHON3_BABEL_CLDR) + @$(call world/check_src, HOST_PYTHON3_BABEL_CLDR) + @$(call touch) + + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-python3-babel.extract: + @$(call targetinfo) + @$(call extract, HOST_PYTHON3_BABEL) + @$(call patchin, HOST_PYTHON3_BABEL) + @$(call extract, HOST_PYTHON3_BABEL_CLDR) + @$(call touch) + + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_PYTHON3_BABEL_CONF_TOOL := python3 + +$(STATEDIR)/host-python3-babel.prepare: + @$(call targetinfo) + @cd $(HOST_PYTHON3_BABEL_DIR) && \ + python$(PYTHON3_MAJORMINOR) scripts/import_cldr.py $(HOST_PYTHON3_BABEL_CLDR_DIR) + @$(call prepare, HOST_PYTHON3_BABEL) + @$(call touch) + + +# vim: syntax=make -- 2.32.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCH V2 2/2] host-python3-babel: new package 2022-05-03 12:38 ` [ptxdist] [PATCH V2 2/2] host-python3-babel: " David Jander @ 2022-05-06 7:35 ` Michael Olbrich 0 siblings, 0 replies; 6+ messages in thread From: Michael Olbrich @ 2022-05-06 7:35 UTC (permalink / raw) To: David Jander; +Cc: Robin van der Gracht, ptxdist On Tue, May 03, 2022 at 02:38:03PM +0200, David Jander wrote: > Signed-off-by: Robin van der Gracht <robin@protonic.nl> > Signed-off-by: David Jander <david@protonic.nl> > --- > rules/host-python3-babel.in | 8 ++++ > rules/host-python3-babel.make | 72 +++++++++++++++++++++++++++++++++++ > 2 files changed, 80 insertions(+) > create mode 100644 rules/host-python3-babel.in > create mode 100644 rules/host-python3-babel.make > > diff --git a/rules/host-python3-babel.in b/rules/host-python3-babel.in > new file mode 100644 > index 000000000..82a398cf4 > --- /dev/null > +++ b/rules/host-python3-babel.in > @@ -0,0 +1,8 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_PYTHON3_BABEL > + tristate > + default y if ALLYES > + select HOST_PYTHON3 > + select HOST_PYTHON3_TZ > + select HOST_PYTHON3_SETUPTOOLS > diff --git a/rules/host-python3-babel.make b/rules/host-python3-babel.make > new file mode 100644 > index 000000000..a864af839 > --- /dev/null > +++ b/rules/host-python3-babel.make > @@ -0,0 +1,72 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2019 by Robin van der Gracht <robin@protonic.nl> > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_BABEL) += host-python3-babel > + > +# > +# Paths and names > +# > +HOST_PYTHON3_BABEL_VERSION := v2.10.1 > +HOST_PYTHON3_BABEL_MD5 := 9483ad57043776324459e7f000aec7f0 > +HOST_PYTHON3_BABEL := babel-$(HOST_PYTHON3_BABEL_VERSION) > +HOST_PYTHON3_BABEL_SUFFIX := tar.gz > +HOST_PYTHON3_BABEL_URL := https://github.com/python-babel/babel/archive/$(HOST_PYTHON3_BABEL_VERSION).$(HOST_PYTHON3_BABEL_SUFFIX) > +HOST_PYTHON3_BABEL_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_BABEL).$(HOST_PYTHON3_BABEL_SUFFIX) > +HOST_PYTHON3_BABEL_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_BABEL) > +HOST_PYTHON3_BABEL_LICENSE := BSD BSD-3-Clause and add the license file as well please. Michael > + > + > +HOST_PYTHON3_BABEL_CLDR_VERSION := 33 > +HOST_PYTHON3_BABEL_CLDR_MD5 := 39bf16711836c23e386189c3cbd2f344 > +HOST_PYTHON3_BABEL_CLDR_URL := https://unicode.org/Public/cldr/$(HOST_PYTHON3_BABEL_CLDR_VERSION)/core.zip > +HOST_PYTHON3_BABEL_CLDR_SOURCE := $(SRCDIR)/cldr-core-$(HOST_PYTHON3_BABEL_CLDR_VERSION).0.zip > +HOST_PYTHON3_BABEL_CLDR_DIR := $(HOST_PYTHON3_BABEL_DIR)/cldr > + > +# ---------------------------------------------------------------------------- > +# Get > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/host-python3-babel.get: > + @$(call targetinfo) > + @$(call world/get, HOST_PYTHON3_BABEL) > + @$(call world/check_src, HOST_PYTHON3_BABEL) > + @$(call world/get, HOST_PYTHON3_BABEL_CLDR) > + @$(call world/check_src, HOST_PYTHON3_BABEL_CLDR) > + @$(call touch) > + > + > +# ---------------------------------------------------------------------------- > +# Extract > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/host-python3-babel.extract: > + @$(call targetinfo) > + @$(call extract, HOST_PYTHON3_BABEL) > + @$(call patchin, HOST_PYTHON3_BABEL) > + @$(call extract, HOST_PYTHON3_BABEL_CLDR) > + @$(call touch) > + > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +HOST_PYTHON3_BABEL_CONF_TOOL := python3 > + > +$(STATEDIR)/host-python3-babel.prepare: > + @$(call targetinfo) > + @cd $(HOST_PYTHON3_BABEL_DIR) && \ > + python$(PYTHON3_MAJORMINOR) scripts/import_cldr.py $(HOST_PYTHON3_BABEL_CLDR_DIR) > + @$(call prepare, HOST_PYTHON3_BABEL) > + @$(call touch) > + > + > +# vim: syntax=make > -- > 2.32.0 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-06 7:35 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-05-03 12:38 [ptxdist] [PATCH V2 0/2] Add host-python3-babel David Jander 2022-05-03 12:38 ` [ptxdist] [PATCH V2 1/2] host-python3-tz: new package David Jander 2022-05-06 7:18 ` Michael Olbrich 2022-05-06 7:33 ` Michael Olbrich 2022-05-03 12:38 ` [ptxdist] [PATCH V2 2/2] host-python3-babel: " David Jander 2022-05-06 7:35 ` Michael Olbrich
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox