From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ea0-f175.google.com ([209.85.215.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Tiv63-00029U-Aq for openembedded-core@lists.openembedded.org; Wed, 12 Dec 2012 23:48:11 +0100 Received: by mail-ea0-f175.google.com with SMTP id h11so417838eaa.6 for ; Wed, 12 Dec 2012 14:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=V7UXPoeKeFZ/gTGzp40rF70J7GumxsXPSLtOwroOrpc=; b=ilDuUPiIky67bp9Jth2lj30RVKEelBEE25SVXVjA5n76E7ESs+Dn5VmUvEMbkutBav AcI9fahMiYIN99V4uayHkNxKDpjYY0Q5K3HuALJDa8kLMsq5R4u2UMOhpCL+IVFVHNsS Nt6km/ZX3Bw8UdVb6a/iULLbFLyOZQdmI9BD+gNPOA2neixe/bgYU6N7R1krvMS3GMys ZBW8c4FVZCcZipTEIlgk5tL38DGWJQgakX6c9lAK0HokwUcYKOjt0sATq9RdhvmaXFr4 rwL53PGgDVZTt2rvQeCFaacHzoPkculTsSwFDAK6i0XqhLzBCzL1K3bNuVOfDpuXwXGk IdCg== Received: by 10.14.205.199 with SMTP id j47mr6560057eeo.26.1355351617396; Wed, 12 Dec 2012 14:33:37 -0800 (PST) Received: from localhost (ip-62-24-80-7.net.upcbroadband.cz. [62.24.80.7]) by mx.google.com with ESMTPS id r1sm58659858eeo.2.2012.12.12.14.33.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 14:33:36 -0800 (PST) From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Wed, 12 Dec 2012 23:33:44 +0100 Message-Id: <1355351624-16993-2-git-send-email-Martin.Jansa@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1355351624-16993-1-git-send-email-Martin.Jansa@gmail.com> References: <20121212212745.GD1756@jama.jama.net> <1355351624-16993-1-git-send-email-Martin.Jansa@gmail.com> Subject: [PATCH 2/2] gettext: move remove-potcdate.sin from gettext-native to gettext-minimal-native X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 22:48:11 -0000 Signed-off-by: Martin Jansa --- .../gettext-minimal-0.18.1.1/remove-potcdate.sin | 19 +++++++++++++++++++ .../gettext/gettext-minimal-native_0.18.1.1.bb | 4 +++- meta/recipes-core/gettext/gettext_0.18.1.1.bb | 3 ++- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin diff --git a/meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin b/meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin new file mode 100644 index 0000000..2436c49 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin @@ -0,0 +1,19 @@ +# Sed script that remove the POT-Creation-Date line in the header entry +# from a POT file. +# +# The distinction between the first and the following occurrences of the +# pattern is achieved by looking at the hold space. +/^"POT-Creation-Date: .*"$/{ +x +# Test if the hold space is empty. +s/P/P/ +ta +# Yes it was empty. First occurrence. Remove the line. +g +d +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +} diff --git a/meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb b/meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb index a46a40d..f008a79 100644 --- a/meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb +++ b/meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb @@ -1,6 +1,7 @@ SRC_URI = "file://aclocal.tgz \ file://config.rpath \ file://Makefile.in.in \ + file://remove-potcdate.sin \ file://COPYING" INHIBIT_DEFAULT_DEPS = "1" @@ -11,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0854da868a929923087141d9d7aba7d5" inherit native -PR = "r4" +PR = "r5" S = "${WORKDIR}" @@ -21,4 +22,5 @@ do_install () { install -d ${D}${datadir}/gettext/po/ cp ${WORKDIR}/config.rpath ${D}${datadir}/gettext/ cp ${WORKDIR}/Makefile.in.in ${D}${datadir}/gettext/po/ + cp ${WORKDIR}/remove-potcdate.sin ${D}${datadir}/gettext/po/ } diff --git a/meta/recipes-core/gettext/gettext_0.18.1.1.bb b/meta/recipes-core/gettext/gettext_0.18.1.1.bb index c3265e1..4639481 100644 --- a/meta/recipes-core/gettext/gettext_0.18.1.1.bb +++ b/meta/recipes-core/gettext/gettext_0.18.1.1.bb @@ -5,7 +5,7 @@ SECTION = "libs" LICENSE = "GPLv3+ & LGPL-2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -PR = "r18" +PR = "r19" DEPENDS = "gettext-native virtual/libiconv ncurses expat" DEPENDS_class-native = "gettext-minimal-native" PROVIDES = "virtual/libintl virtual/gettext" @@ -104,6 +104,7 @@ do_install_append_class-native () { rm ${D}${datadir}/aclocal/* rm ${D}${datadir}/gettext/config.rpath rm ${D}${datadir}/gettext/po/Makefile.in.in + rm ${D}${datadir}/gettext/po/remove-potcdate.sin } BBCLASSEXTEND = "native nativesdk" -- 1.8.0