summaryrefslogtreecommitdiff
path: root/lib/perl
diff options
context:
space:
mode:
authorJames E. King, III <jking@apache.org>2017-01-27 09:43:18 -0500
committerJames E. King, III <jking@apache.org>2017-01-27 09:43:18 -0500
commitf3490c5f8e2e871f75ea540126f9fb233cf71601 (patch)
treed5f3f3d8ff6c9a1d1220834d2378dafea72d6790 /lib/perl
parent71eba643ddc10bd2a9f614348567bfc1f63d8d06 (diff)
downloadthrift-f3490c5f8e2e871f75ea540126f9fb233cf71601.tar.gz
THRIFT-3550 make a script to build perl cpan module and update perl dependencies for cpan
Diffstat (limited to 'lib/perl')
-rw-r--r--lib/perl/Makefile.PL15
-rwxr-xr-xlib/perl/build-cpan-dist.sh9
2 files changed, 18 insertions, 6 deletions
diff --git a/lib/perl/Makefile.PL b/lib/perl/Makefile.PL
index ceca86f71..92b05ba25 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 000000000..1765e6d08
--- /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