You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2017/01/27 14:43:53 UTC

thrift git commit: THRIFT-3550 make a script to build perl cpan module and update perl dependencies for cpan

Repository: thrift
Updated Branches:
  refs/heads/master 71eba643d -> f3490c5f8


THRIFT-3550 make a script to build perl cpan module and update perl dependencies for cpan


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/f3490c5f
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/f3490c5f
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/f3490c5f

Branch: refs/heads/master
Commit: f3490c5f8e2e871f75ea540126f9fb233cf71601
Parents: 71eba64
Author: James E. King, III <jk...@apache.org>
Authored: Fri Jan 27 09:43:18 2017 -0500
Committer: James E. King, III <jk...@apache.org>
Committed: Fri Jan 27 09:43:18 2017 -0500

----------------------------------------------------------------------
 lib/perl/Makefile.PL        | 15 +++++++++------
 lib/perl/build-cpan-dist.sh |  9 +++++++++
 2 files changed, 18 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/f3490c5f/lib/perl/Makefile.PL
----------------------------------------------------------------------
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 <de...@thrift.apache.org>') : ()),
+               ($] >= 5.006 ?
+ (                AUTHOR => 'Apache Thrift <de...@thrift.apache.org>') : ()),
                );
+

http://git-wip-us.apache.org/repos/asf/thrift/blob/f3490c5f/lib/perl/build-cpan-dist.sh
----------------------------------------------------------------------
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