From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] host-perl: add modules JSON and Locale::PO
Date: Thu, 23 Jan 2014 10:45:59 +0100 [thread overview]
Message-ID: <1390470359-18122-1-git-send-email-post@lespocky.de> (raw)
Signed-off-by: Alexander Dahl <post@lespocky.de>
---
rules/host-system-perl.in | 7 +++++++
rules/host-system-perl.make | 16 ++++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/rules/host-system-perl.in b/rules/host-system-perl.in
index fc487ce..c02eb08 100644
--- a/rules/host-system-perl.in
+++ b/rules/host-system-perl.in
@@ -5,8 +5,15 @@ config HOST_SYSTEM_PERL
if HOST_SYSTEM_PERL
+config HOST_SYSTEM_PERL_JSON
+ bool
+
+config HOST_SYSTEM_PERL_LOCALE_PO
+ bool
+
config HOST_SYSTEM_PERL_XMLPARSER
bool
endif
+# vim: ft=kconfig noet tw=72
diff --git a/rules/host-system-perl.make b/rules/host-system-perl.make
index 8a7b33c..1d9e2ef 100644
--- a/rules/host-system-perl.make
+++ b/rules/host-system-perl.make
@@ -22,12 +22,28 @@ $(STATEDIR)/host-system-perl.prepare:
@echo "Checking for Perl ..."
@perl -v >/dev/null 2>&1 || \
ptxd_bailout "'perl' not found! Please install.";
+
+ifdef PTXCONF_HOST_SYSTEM_PERL_LOCALE_PO
+ @echo "Checking for Perl: Locale::PO"
+ @perl -e "require Locale::PO" 2>/dev/null || \
+ ptxd_bailout "Locale::PO perl module is required. \
+ Please install liblocale-po-perl (debian)."
+endif
+
+ifdef PTXCONF_HOST_SYSTEM_PERL_JSON
+ @echo "Checking for Perl: JSON"
+ @perl -e "require JSON" 2>/dev/null || \
+ ptxd_bailout "JSON perl module is required. \
+ Please install libjson-perl (debian)."
+endif
+
ifdef PTXCONF_HOST_SYSTEM_PERL_XMLPARSER
@echo "Checking for Perl: XML::Parser"
@perl -e "require XML::Parser" 2>/dev/null || \
ptxd_bailout "XML::Parser perl module is required. \
Please install libxml-parser-perl (debian)."
endif
+
@echo
@$(call touch)
--
1.7.10.4
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2014-01-23 9:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 9:45 Alexander Dahl [this message]
2014-01-23 16:57 ` Michael Olbrich
2014-01-23 17:29 ` Alexander Dahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390470359-18122-1-git-send-email-post@lespocky.de \
--to=post@lespocky.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox