From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 03 May 2022 14:38:26 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nlrnO-000YS1-DX for lore@lore.pengutronix.de; Tue, 03 May 2022 14:38:26 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nlrnN-0005AY-Bb; Tue, 03 May 2022 14:38:25 +0200 Received: from smtp15.bhosted.nl ([2a02:9e0:8000::26]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlrn6-0004uq-BJ for ptxdist@pengutronix.de; Tue, 03 May 2022 14:38:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=B+bmLwWDN+Dg5a+XSkEdMHbWkZ4Ec34820VzK4X3pOk=; b=hDW5qetwbmnPmdB7r4N/NnfZgLEqNEdvZ5nAAr3/f10zLCQFQUv8EoEfOL7ARzSxBTJ7tsMIPTY5S kBFMl5Cp5SsJKdux1UPEMa+qDC0JoYWAdQX6M8n3D/4uvapytogpWBBdTblKQVlUF/pkzSqr6DXD45 VHnfo0jKpIzYJLxNfwEThjw977haBxfbv5pjppUS8MeidKD9/LAPlca5KMuJikU5NCc2ncHVDJAC5Q lKdI1Mc+mxxo6OZDdDbSfISXSPSoOm0+pC19f8l7RWtLhJgWoWF64bbVFAtGTv3G3ij8sZenT7B4lX BXMcslaHEY6T3kpPfcwQ66gALv0p/Wg== X-MSG-ID: e1ee574c-cadd-11ec-b450-0050569d3a82 From: David Jander To: ptxdist@pengutronix.de, Robin van der Gracht Date: Tue, 3 May 2022 14:38:03 +0200 Message-Id: <20220503123803.1439644-3-david@protonic.nl> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220503123803.1439644-1-david@protonic.nl> References: <20220503123803.1439644-1-david@protonic.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=4.0 tests=AWL,DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,PDS_BTC_ID,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH V2 2/2] host-python3-babel: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Michael Olbrich , David Jander Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Robin van der Gracht Signed-off-by: David Jander --- 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 +# +# 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