From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1icojH-0002xq-Qe for ptxdist@pengutronix.de; Thu, 05 Dec 2019 11:51:28 +0100 Received: by mail-lf1-x142.google.com with SMTP id 9so2105981lfq.10 for ; Thu, 05 Dec 2019 02:51:27 -0800 (PST) From: Lars Pedersen Date: Thu, 5 Dec 2019 11:51:11 +0100 Message-Id: <20191205105111.65374-1-lapeddk@gmail.com> In-Reply-To: <20191204114051.42097-1-lapeddk@gmail.com> References: <20191204114051.42097-1-lapeddk@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v3] python3-text-unidecode: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Lars Pedersen Signed-off-by: Lars Pedersen --- v2: - Removed dependency for host-python3-setuptools - Fixed glob install. Now only installs pyc and bin files - Added license_files field - Fixed license name to short name SPDX identifier v3: - Removed default clean step rules/python3-text-unidecode.in | 8 +++++ rules/python3-text-unidecode.make | 54 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 rules/python3-text-unidecode.in create mode 100644 rules/python3-text-unidecode.make diff --git a/rules/python3-text-unidecode.in b/rules/python3-text-unidecode.in new file mode 100644 index 000000000..9a87a3fc3 --- /dev/null +++ b/rules/python3-text-unidecode.in @@ -0,0 +1,8 @@ +## SECTION=python3 + +config PYTHON3_TEXT_UNIDECODE + tristate + prompt "python3-text-unidecode" + select PYTHON3 + help + text-unidecode is the most basic port of the Text::Unidecode Perl library diff --git a/rules/python3-text-unidecode.make b/rules/python3-text-unidecode.make new file mode 100644 index 000000000..ef9cb558b --- /dev/null +++ b/rules/python3-text-unidecode.make @@ -0,0 +1,54 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Lars Pedersen +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PYTHON3_TEXT_UNIDECODE) += python3-text-unidecode + +# +# Paths and names +# +PYTHON3_TEXT_UNIDECODE_VERSION := 1.3 +PYTHON3_TEXT_UNIDECODE_MD5 := 53a0a6c5aef8f5eb5834e78e0fdf0499 +PYTHON3_TEXT_UNIDECODE := text-unidecode-$(PYTHON3_TEXT_UNIDECODE_VERSION) +PYTHON3_TEXT_UNIDECODE_SUFFIX := tar.gz +PYTHON3_TEXT_UNIDECODE_URL := https://files.pythonhosted.org/packages/source/t/text-unidecode/$(PYTHON3_TEXT_UNIDECODE).$(PYTHON3_TEXT_UNIDECODE_SUFFIX) +PYTHON3_TEXT_UNIDECODE_SOURCE := $(SRCDIR)/$(PYTHON3_TEXT_UNIDECODE).$(PYTHON3_TEXT_UNIDECODE_SUFFIX) +PYTHON3_TEXT_UNIDECODE_DIR := $(BUILDDIR)/$(PYTHON3_TEXT_UNIDECODE) +PYTHON3_TEXT_UNIDECODE_LICENSE := ClArtistic +PYTHON3_TEXT_UNIDECODE_LICENSE_FILES := \ + file://LICENSE;md5=ccfb8875bc60bc3d6e91e42e5e8f5587 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +PYTHON3_TEXT_UNIDECODE_CONF_TOOL := python3 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/python3-text-unidecode.targetinstall: + @$(call targetinfo) + + @$(call install_init, python3-text-unidecode) + @$(call install_fixup, python3-text-unidecode,PRIORITY,optional) + @$(call install_fixup, python3-text-unidecode,SECTION,base) + @$(call install_fixup, python3-text-unidecode,AUTHOR,"Lars Pedersen ") + @$(call install_fixup, python3-text-unidecode,DESCRIPTION,missing) + + @$(call install_glob,python3-text-unidecode, 0, 0, -, \ + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,*.pyc *.bin, ) + + @$(call install_finish, python3-text-unidecode) + + @$(call touch) + +# vim: syntax=make -- 2.23.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de