1#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10#   http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20use 5.10.0;
21use strict;
22use warnings;
23
24use ExtUtils::MakeMaker;
25
26WriteMakefile( ABSTRACT => 'Apache Thrift is a software framework for scalable cross-language services development.',
27               AUTHOR => 'Apache Thrift <dev@thrift.apache.org>',
28               LICENSE => 'apache_2_0',
29               MIN_PERL_VERSION => '5.010000',
30               NAME => 'Thrift',
31               NEEDS_LINKING => 0,
32               PREREQ_PM => {
33                   'Bit::Vector'     => 0,
34                   'Class::Accessor' => 0
35               },
36#              SIGN => 1,
37               TEST_REQUIRES => {
38                   'Test::Exception' => 0,
39               },
40               VERSION_FROM => 'lib/Thrift.pm' );
41
42# THRIFT-4691
43package MY; # so that "SUPER" works right
44sub test {
45    # Adds gen-perl and gen-perl2 to the test execution as include paths
46    # Could not find anything in MakeMaker that would do this...
47    my @result;
48    for (@result = shift->SUPER::test(@_)) {
49        s/\$\(TEST_FILES\)/-Igen-perl -Igen-perl2 \$(TEST_FILES)/ig;
50    }
51    @result;
52}
53