mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: David Jander <david@protonic.nl>
To: ptxdist@pengutronix.de, Robin van der Gracht <robin@protonic.nl>
Cc: Michael Olbrich <m.olbrich@pengutronix.de>,
	David Jander <david@protonic.nl>
Subject: [ptxdist] [PATCH 2/2] host-python3-babel: new package
Date: Tue,  3 May 2022 14:08:59 +0200	[thread overview]
Message-ID: <20220503120859.1437885-3-david@protonic.nl> (raw)
In-Reply-To: <20220503120859.1437885-1-david@protonic.nl>

Signed-off-by: David Jander <david@protonic.nl>
---
 rules/host-python3-babel.in   |  8 ++++
 rules/host-python3-babel.make | 74 +++++++++++++++++++++++++++++++++++
 2 files changed, 82 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..ba29c1e21
--- /dev/null
+++ b/rules/host-python3-babel.make
@@ -0,0 +1,74 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Robin van der Gracht <robin@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
+#
+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




      parent reply	other threads:[~2022-05-03 12:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03 12:08 [ptxdist] [PATCH 0/2] Add host-python3-babel David Jander
2022-05-03 12:08 ` [ptxdist] [PATCH 1/2] host-python3-tz: new package David Jander
2022-05-03 12:08 ` David Jander [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220503120859.1437885-3-david@protonic.nl \
    --to=david@protonic.nl \
    --cc=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=robin@protonic.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox