From patchwork Mon Aug 20 11:55:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher McCrory X-Patchwork-Id: 959627 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PioRBrbf"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41vC1n5KcDz9s3C for ; Mon, 20 Aug 2018 21:55:57 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4A17F228E2; Mon, 20 Aug 2018 11:55:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1sPCzHCtRlCZ; Mon, 20 Aug 2018 11:55:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DDC8222BCC; Mon, 20 Aug 2018 11:55:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 642631C0550 for ; Mon, 20 Aug 2018 11:55:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6145D85B54 for ; Mon, 20 Aug 2018 11:55:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id McXkfXDJTEJb for ; Mon, 20 Aug 2018 11:55:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f53.google.com (mail-pl0-f53.google.com [209.85.160.53]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 33AC785B3B for ; Mon, 20 Aug 2018 11:55:43 +0000 (UTC) Received: by mail-pl0-f53.google.com with SMTP id e11-v6so7015665plb.3 for ; Mon, 20 Aug 2018 04:55:43 -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; bh=0IgWB992FC+FsAuq22heSZtAF59uCHU6AkQp3hCNNDI=; b=PioRBrbf/o4eA3HJNYykS04zkKW+pgP+B+HBKn05ly+ICCw7khffF6T4fWXKLgG5wc mr6++dq1woxxHP4awhfzRH8bB5QHcrV6KXVurOtfVyMnTJ0ly5A+YuYo9kbv4cgHsGKz 7OUJ/MlV9HNK5VJgIs6B4JLLKkFaHtbrv2Vyj4JNmaW2/Pao5jGiBkVxCR0Cby0IAHlp R+Y3guDlu/+Gh2eoeL9A3QCK9LB23Occc2/puVJTHdmxtw8kAL2y05eavsrTA4EhFyBj F3vLucnUTF15+4+G+EZtyG04/svjIRT3eaVjJ59rIWUYHDm4+UA2ZUUYCnARRsRa7K3J hrNQ== 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; bh=0IgWB992FC+FsAuq22heSZtAF59uCHU6AkQp3hCNNDI=; b=FLYaRgOdfF89Gm+2i2i29FbXBZqCjcv/jPux5vlpf6IWgRnaK9X9ewTakyYpaZk21F hgzpHx8smSGvdelSXtQjHI2xA3EkEWPKDa7E/ukVmd2zergG1vnsst3/DlWHcOVyTyTh OShI5+0EH/HFAVLGVAL7AZzPSuXr0ZaQ/0fCb71MEAEjgQXoylhSVaLAv97LQzA7L5/+ gLvKEUpXCielKGKfKmvwKCJ5FQTHXxLPU2iy7y97uixPPg1JkYE9etyRYX1R30Warp+y Q2mE4ZAArWRFDtxhd9SBhC4+RzKNel3wbnFdUIRuOoozK4AlojZ93F4HHfCC5tuKz9yA I9lA== X-Gm-Message-State: AOUpUlFF9SVDFB16+JG5btkV5MwVOlw80ASMpSywTuzz6s7ypA5BeCoF 1jPUYKIZpo7m7VgcqBV4Y2nHCfdo X-Google-Smtp-Source: AA+uWPwCTVSHce+Md8GvyGnhtgKfn8X53AgAJlG4rsmOGkaYbiamwl5+y8AUQryApoqt+1j0sSlRBA== X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr44582417plb.172.1534766142549; Mon, 20 Aug 2018 04:55:42 -0700 (PDT) Received: from localhost.localdomain ([2600:1012:b06f:afd4:7dd8:b612:92b8:cc1f]) by smtp.gmail.com with ESMTPSA id n24-v6sm15112762pfi.161.2018.08.20.04.55.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Aug 2018 04:55:41 -0700 (PDT) From: Christopher McCrory To: buildroot@buildroot.org Date: Mon, 20 Aug 2018 04:55:11 -0700 Message-Id: <20180820115519.24046-11-chrismcc@gmail.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180820115519.24046-1-chrismcc@gmail.com> References: <20180820115519.24046-1-chrismcc@gmail.com> Subject: [Buildroot] [PATCH 10/18] perl-template-toolkit: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christopher McCrory MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Christopher McCrory --- DEVELOPERS | 1 + package/Config.in | 1 + package/perl-template-toolkit/Config.in | 11 ++++++++ .../perl-template-toolkit.hash | 6 +++++ .../perl-template-toolkit/perl-template-toolkit.mk | 31 ++++++++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 package/perl-template-toolkit/Config.in create mode 100644 package/perl-template-toolkit/perl-template-toolkit.hash create mode 100644 package/perl-template-toolkit/perl-template-toolkit.mk diff --git a/DEVELOPERS b/DEVELOPERS index bb43154698..1b17ada11d 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -509,6 +509,7 @@ F: package/perl-sub-install/ F: package/perl-sys-cpu/ F: package/perl-sys-meminfo/ F: package/perl-sys-mmap/ +F: package/perl-template-toolkit/ F: package/perl-time-parsedate/ F: package/perl-x10/ diff --git a/package/Config.in b/package/Config.in index b4aa57ab19..9ec5dd1007 100644 --- a/package/Config.in +++ b/package/Config.in @@ -735,6 +735,7 @@ menu "Perl libraries/modules" source "package/perl-sys-cpu/Config.in" source "package/perl-sys-meminfo/Config.in" source "package/perl-sys-mmap/Config.in" + source "package/perl-template-toolkit/Config.in" source "package/perl-time-hires/Config.in" source "package/perl-time-parsedate/Config.in" source "package/perl-timedate/Config.in" diff --git a/package/perl-template-toolkit/Config.in b/package/perl-template-toolkit/Config.in new file mode 100644 index 0000000000..1caca074aa --- /dev/null +++ b/package/perl-template-toolkit/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_PERL_TEMPLATE_TOOLKIT + bool "perl-template-toolkit" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_PERL_APPCONFIG + help + comprehensive template processing system + + https://metacpan.org/release/Template-Toolkit + +comment "perl-template-toolkit needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS diff --git a/package/perl-template-toolkit/perl-template-toolkit.hash b/package/perl-template-toolkit/perl-template-toolkit.hash new file mode 100644 index 0000000000..54d4553695 --- /dev/null +++ b/package/perl-template-toolkit/perl-template-toolkit.hash @@ -0,0 +1,6 @@ +# retrieved by scancpan from http://cpan.metacpan.org/ +md5 a7fae5d4fe5918f33105d92a62134067 Template-Toolkit-2.27.tar.gz +sha256 1311a403264d0134c585af0309ff2a9d5074b8ece23ece5660d31ec96bf2c6dc Template-Toolkit-2.27.tar.gz + +# computed by scancpan +sha256 d897b2d98affd4f0489340e54ceb542383101e3d21408dfad025df71d770d842 README diff --git a/package/perl-template-toolkit/perl-template-toolkit.mk b/package/perl-template-toolkit/perl-template-toolkit.mk new file mode 100644 index 0000000000..f65d685fa1 --- /dev/null +++ b/package/perl-template-toolkit/perl-template-toolkit.mk @@ -0,0 +1,31 @@ +################################################################################ +# +# perl-template-toolkit +# +################################################################################ + +PERL_TEMPLATE_TOOLKIT_VERSION = 2.27 +PERL_TEMPLATE_TOOLKIT_SOURCE = Template-Toolkit-$(PERL_TEMPLATE_TOOLKIT_VERSION).tar.gz +PERL_TEMPLATE_TOOLKIT_SITE = $(BR2_CPAN_MIRROR)/authors/id/A/AB/ABW +PERL_TEMPLATE_TOOLKIT_DEPENDENCIES = perl-appconfig +PERL_TEMPLATE_TOOLKIT_LICENSE = Artistic or GPL-1.0+ +PERL_TEMPLATE_TOOLKIT_LICENSE_FILES = README + +# There has got to be a better way... :( +# Some arguments to Makefile.PL do not get propagated to subdirectories +# similar to: +# https://rt.cpan.org/Public/Bug/Display.html?id=28632 +define PERL_TEMPLATE_TOOLKIT_POST_CONFIGURE_SED + $(SED) "s:^AR = .*:AR = $(TARGET_AR):g" $(@D)/xs/Makefile + $(SED) "s:^FULL_AR = .*:FULL_AR = $(TARGET_AR):g" $(@D)/xs/Makefile + $(SED) "s:^CC = .*:CC = $(TARGET_CC):g" $(@D)/xs/Makefile + $(SED) "s:^CCFLAGS = .*:CCFLAGS = $(TARGET_CFLAGS):g" $(@D)/xs/Makefile + $(SED) "s:^LD = .*:LD = $(TARGET_CC):g" $(@D)/xs/Makefile + $(SED) "s:^LDDLFLAGS = .*:LDDLFLAGS = -shared $(TARGET_LDFLAGS):g" $(@D)/xs/Makefile + $(SED) "s:^LDLFLAGS = .*:LDLFLAGS = $(TARGET_LDFLAGS):g" $(@D)/xs/Makefile + $(SED) "s:^DESTDIR = .*:DESTDIR = $(TARGET_DIR):g" $(@D)/xs/Makefile +endef + +PERL_TEMPLATE_TOOLKIT_POST_CONFIGURE_HOOKS += PERL_TEMPLATE_TOOLKIT_POST_CONFIGURE_SED + +$(eval $(perl-package))