THRIFT-3550 make a script to build perl cpan module and update perl dependencies for cpan
diff --git a/lib/perl/Makefile.PL b/lib/perl/Makefile.PL
index ceca86f..92b05ba 100644
--- a/lib/perl/Makefile.PL
+++ b/lib/perl/Makefile.PL
@@ -18,12 +18,15 @@
#
use ExtUtils::MakeMaker;
-WriteMakefile( 'NAME' => 'Thrift',
- 'VERSION_FROM' => 'lib/Thrift.pm',
- 'PREREQ_PM' => {
+WriteMakefile( NAME => 'Thrift',
+ VERSION_FROM => 'lib/Thrift.pm',
+ MIN_PERL_VERSION => '5.006',
+ PREREQ_PM => {
'Bit::Vector' => 0,
- 'Class::Accessor' => 0
+ 'Class::Accessor' => 0,
+ 'IO::Socket::INET' => 0
},
- ($] >= 5.005 ?
- ( AUTHOR => 'Apache Thrift <dev@thrift.apache.org>') : ()),
+ ($] >= 5.006 ?
+ ( AUTHOR => 'Apache Thrift <dev@thrift.apache.org>') : ()),
);
+
diff --git a/lib/perl/build-cpan-dist.sh b/lib/perl/build-cpan-dist.sh
new file mode 100755
index 0000000..1765e6d
--- /dev/null
+++ b/lib/perl/build-cpan-dist.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+#
+# This script is intended to be used after tagging the repository and updating
+# the version files for a release. It will create a CPAN archive.
+
+perl Makefile.PL
+make
+make manifest
+make dist