From patchwork Mon Aug 20 18:59:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144657 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4325095ljj; Mon, 20 Aug 2018 12:00:34 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyGQd0Q7t7+RqQQJapCfFg/ClRuLDVHOOPq1xZs72y3SgH72Y/EbubgIiq7+RPU7I26enwg X-Received: by 2002:a17:902:b70f:: with SMTP id d15-v6mr39204646pls.53.1534791634068; Mon, 20 Aug 2018 12:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534791634; cv=none; d=google.com; s=arc-20160816; b=H0De+7m+kQf8EC376YxBkWmbD/pPcdYgBNlNMaaBg1zzPkzWgnnuigjt+dPktlc5JA sAgSMnuTaZN6Hs4epBM8g+1zEgTIi8lu/QYGYKsJW8ISujF4lph+CBjxDVZNPJ4Y3i55 BGc4LnMcOicGjQfV4H2Gx20hKxr1biFsZxDoCQd9VmgNLPCoKxxbSeiDSKv6BAt6y9zT D4ambUyKvnzh0yDJGxffZ9DtDkZtMOHlm3354IujtLwQYCTnoiz4hIALK5ssUmdqGNDj S+FxAzJkgSZH4Hr4U/d3Swr6e6+vgf7hlwX0jG4sPXwwTmgfiAUlIMkqzDuui4xkCq8j iGKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=3gW2bQitb8UOEjGU2YUykzn1zQa9ykmCpV345LI2y2E=; b=yfSzVWRqV0LJyr4/3juuF2T2LU75Z3OJ2acQ2KWcxBuDidUre0+DQ6wVX4tnSjWKG3 rf0cF6CyekPtQDYl4W1xQU4KlW9NmV0UVvhQWsA4gDgJ8Nf0HlnX/5G5v+NniojPKos9 cAwI6ouhmycAQmb39JiVX/f6EvlCQo7GyBEDNsuIBd8BnbRGg5QxFJXXPSH6vfZ4J3pl TK44C2TExL+OCEhjOXDGuEBm1FXJQjJPbG6bVIoKwxE0GmW/EGudVsBbgxfjxvLJUWRM qSC8dLUPCihuKZ05zgUyf2RwOMiOZa6NLoonUzIWhLGwj4BvP0hXLGcvLO9kl7psXM80 MUHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=KkfyYDd0; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id i21-v6si9960566pgg.513.2018.08.20.12.00.33; Mon, 20 Aug 2018 12:00:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=KkfyYDd0; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2DEB27915B; Mon, 20 Aug 2018 19:00:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id 8DBED79074 for ; Mon, 20 Aug 2018 19:00:01 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id y5-v6so7234610pgv.1 for ; Mon, 20 Aug 2018 12:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1Xla9ji3hoQru14iiJACQqwyjaBZAsnDWEUXdW9eGOc=; b=KkfyYDd0PN0rbvimW9Joz1hjtqA+GNynlyB69hedZNe5PvtYiI3gYSs2JYnFSi6QoQ UfXV6gjF/PkG8A7MHVufncizuAYhVhdg7Q+QF+Q8jrg9oSIQ1KxZO4NRPMcvmmcs4S6/ h4HX6CFoT2jqryTLi2FS3xN4qc/NJmLZJ2iq9OwMfFbQm5JC/gdvm3H/4f7Z4NYFdOp6 aoZB1gd/Qetmq0Ja8BHQTkyLI5zNzfdFZe/fL+C9PFjkFm+UQAo3kWSwQ+aTkqJnyzFc pS6aZsKv2D8Ib+4EOVURLg19+W+AGMy7dL4xW/Od5bGnBcJr87wIlu1yQzjVlbBJY9Hn c1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1Xla9ji3hoQru14iiJACQqwyjaBZAsnDWEUXdW9eGOc=; b=kI2AHGtiTFFOLRLp+gZUWQVK72CgtB+EdsFJ/rBkyYjVxYsAebwgdyhyiDVQKxZw8Q elXcVpfA7FQX7sDdRkcHJ3+2IJh57g4gyvolOJFkD3JfyeSoZcrTBZcncE0HTE//IxqJ FTfKLiLwOOx20Uuxc4LyGXa1UJm89nmqha8ukG96q0BQ+i47zpkHT0GpUOJbDt55fkrG 3H0R8u5YCo6QMPmvozX1BIz7pPWrTcLa+TMkL33+jAkDWeLS9FoXHsKVwPz2r92UxtzU ubsKAQXM0M+sWc5AxN1k5nXhaZuIcHh046UjTBk5HWKJyC6qjfbr2Ai3OJm2u4oVsXFm 0dIQ== X-Gm-Message-State: AOUpUlFwuZhxnShNd2hQ1vjty0pb2kXHhVVrQVD6u12F6l6jlNMhDXyt T0vTkKfZD08UlQp5o/73N/JPmZYq X-Received: by 2002:a62:f50b:: with SMTP id n11-v6mr49279983pfh.120.1534791602206; Mon, 20 Aug 2018 12:00:02 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id j27-v6sm18773223pfj.91.2018.08.20.12.00.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 12:00:01 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 20 Aug 2018 11:59:50 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Subject: [OE-core] [PATCH 4/5] dos2unix.bbclass: Move to oe-core X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org - Import from meta-oe layer - This is useful for many packages where CR-LF needs to be adjusted, many recipes depend on it e.g. meta-multimedia libebml and so on. - Add myself as maintainer for now Signed-off-by: Khem Raj --- meta/conf/distro/include/maintainers.inc | 1 + .../dos2unix/dos2unix_7.4.0.bb | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-support/dos2unix/dos2unix_7.4.0.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 0d1c72a85f..19bd148700 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -134,6 +134,7 @@ RECIPE_MAINTAINER_pn-dmidecode = "Alexander Kanavin " RECIPE_MAINTAINER_pn-dnf = "Alexander Kanavin " RECIPE_MAINTAINER_pn-docbook-xml-dtd4 = "Yi Zhao " RECIPE_MAINTAINER_pn-docbook-xsl-stylesheets = "Yi Zhao " +RECIPE_MAINTAINER_pn-dos2unit = "Khem Raj " RECIPE_MAINTAINER_pn-dosfstools = "Yi Zhao " RECIPE_MAINTAINER_pn-dpkg = "Aníbal Limón " RECIPE_MAINTAINER_pn-dropbear = "Yi Zhao " diff --git a/meta/recipes-support/dos2unix/dos2unix_7.4.0.bb b/meta/recipes-support/dos2unix/dos2unix_7.4.0.bb new file mode 100644 index 0000000000..9964315ee7 --- /dev/null +++ b/meta/recipes-support/dos2unix/dos2unix_7.4.0.bb @@ -0,0 +1,34 @@ +SUMMARY = "Convert text file line endings between CRLF and LF" +DESCRIPTION = "The Dos2unix package includes utilities dos2unix and \ +unix2dos to convert plain text files in DOS or Mac format to Unix \ +format and vice versa." +HOMEPAGE = "http://waterlan.home.xs4all.nl/dos2unix.html" +SECTION = "support" + +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=1b78fca784db24f4a40e30b300787f3f" + +SRC_URI = "git://git.code.sf.net/p/dos2unix/dos2unix" + +# Release 7.4.0 +SRCREV = "1182533bde3c1fe65be2ead465e87671faa2c027" + +S = "${WORKDIR}/git/dos2unix" + +inherit gettext perlnative + +# The dos2unix NLS relies on po4a-native, while po4a recipe is +# provided by meta-perl layer, so make it optional here, you +# need have meta-perl in bblayers.conf before enabling nls in +# PACKAGECONFIG. +PACKAGECONFIG ??= "" +PACKAGECONFIG[nls] = "ENABLE_NLS=1,ENABLE_NLS=,po4a-native" + +EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS} LDFLAGS_USER='${LDFLAGS}'" +EXTRA_OEMAKE_class-native = "ENABLE_NLS=" + +do_install () { + oe_runmake DESTDIR="${D}${base_prefix}" install +} + +BBCLASSEXTEND = "native nativesdk"