Subject: | [PATCH] Conditionalize Win32::Console recommendation |
Otherwise CPAN clients configured to follow recommended dependencies will try to install Win32::Console even if they're not running on Windows.
Pull request: https://github.com/gisle/encode-locale/pull/12
Or attached as a git format-patch.
Subject: | Conditionalize-Win32-Console-recommendation.patch |
From 9ca4fbe4c26c18cee8b7c27977c7e74e23ac623f Mon Sep 17 00:00:00 2001
From: Thomas Sibley <tsibley@cpan.org>
Date: Thu, 12 Mar 2015 16:46:05 -0700
Subject: [PATCH] Conditionalize the Win32::Console recommendation
Otherwise CPAN clients configured to follow recommended dependencies
will try to install Win32::Console even if they're not running on
Windows.
---
Makefile.PL | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index a518a67..8489295 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -18,7 +18,9 @@ WriteMakefile(
},
recommends => {
'I18N::Langinfo' => 0,
- 'Win32::Console' => 0,
+ ($^O eq 'MSWin32'
+ ? ('Win32::Console' => 0)
+ : ()),
},
},
TEST_REQUIRES => {