David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 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 | |
James E. King, III | 8101f00 | 2017-12-09 10:10:03 -0500 | [diff] [blame] | 20 | use 5.10.0; |
| 21 | use strict; |
| 22 | use warnings; |
| 23 | |
Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 24 | use ExtUtils::MakeMaker; |
James E. King, III | 8101f00 | 2017-12-09 10:10:03 -0500 | [diff] [blame] | 25 | |
James E. King, III | 177c37c | 2017-03-30 17:09:04 -0400 | [diff] [blame] | 26 | WriteMakefile( 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, |
James E. King, III | f3490c5 | 2017-01-27 09:43:18 -0500 | [diff] [blame] | 32 | PREREQ_PM => { |
James E. King, III | 177c37c | 2017-03-30 17:09:04 -0400 | [diff] [blame] | 33 | 'Bit::Vector' => 0, |
| 34 | 'Class::Accessor' => 0 |
Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 35 | }, |
James E. King III | bbc1377 | 2019-01-14 12:07:10 -0500 | [diff] [blame] | 36 | # SIGN => 1, |
Kengo Seki | cb4c31a | 2019-12-26 14:34:57 +0900 | [diff] [blame] | 37 | TEST_REQUIRES => { |
| 38 | 'Test::Exception' => 0, |
| 39 | }, |
James E. King, III | 177c37c | 2017-03-30 17:09:04 -0400 | [diff] [blame] | 40 | VERSION_FROM => 'lib/Thrift.pm' ); |
James E. King III | bbc1377 | 2019-01-14 12:07:10 -0500 | [diff] [blame] | 41 | |
| 42 | # THRIFT-4691 |
| 43 | package MY; # so that "SUPER" works right |
| 44 | sub 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 | } |