* [ptxdist] [PATCH] host-perl: add modules JSON and Locale::PO
@ 2014-01-23 9:45 Alexander Dahl
2014-01-23 16:57 ` Michael Olbrich
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Dahl @ 2014-01-23 9:45 UTC (permalink / raw)
To: ptxdist
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] [PATCH] host-perl: add modules JSON and Locale::PO
2014-01-23 9:45 [ptxdist] [PATCH] host-perl: add modules JSON and Locale::PO Alexander Dahl
@ 2014-01-23 16:57 ` Michael Olbrich
2014-01-23 17:29 ` Alexander Dahl
0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2014-01-23 16:57 UTC (permalink / raw)
To: ptxdist
On Thu, Jan 23, 2014 at 10:45:59AM +0100, Alexander Dahl wrote:
>
Thanks, applied with small changes.
Michael
> 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
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] [PATCH] host-perl: add modules JSON and Locale::PO
2014-01-23 16:57 ` Michael Olbrich
@ 2014-01-23 17:29 ` Alexander Dahl
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Dahl @ 2014-01-23 17:29 UTC (permalink / raw)
To: ptxdist
Hei hei,
Am 2014-01-23 17:57, schrieb Michael Olbrich:
> Thanks, applied with small changes.
I remember thinking I should order it alphabetically, don't know how it
had gone wrong then. Maybe too late yesterday. :-/
Thanks anyway. :-)
Greets
Alex
--
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 ***
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-23 17:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-23 9:45 [ptxdist] [PATCH] host-perl: add modules JSON and Locale::PO Alexander Dahl
2014-01-23 16:57 ` Michael Olbrich
2014-01-23 17:29 ` Alexander Dahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox