msgpack/perl/Makefile.PL
Tokuhiro Matsuno c6a2569af8 - generate README automatically
- added LICENSE term
2009-10-22 14:32:39 +09:00

41 lines
782 B
Perl

use inc::Module::Install;
name 'Data-MessagePack';
all_from 'lib/Data/MessagePack.pm';
readme_from 'lib/Data/MessagePack.pm';
perl_version '5.008005';
license 'perl';
can_cc or die "This module requires a C compiler";
tests 't/*.t';
author_tests('xt');
use_ppport 3.19;
clean_files qw{
*.stackdump
*.gcov *.gcda *.gcno
*.out
nytprof
cover_db
};
if ($ENV{DEBUG}) {
cc_append_to_ccflags '-g';
}
# copy modules
if ($Module::Install::AUTHOR && -d File::Spec->catfile('..', 'msgpack')) {
mkdir 'msgpack' unless -d 'msgpack';
require File::Copy;
for my $src (<../msgpack/*.h>) {
File::Copy::copy($src, 'msgpack/') or die "copy failed: $!";
}
}
auto_set_repository;
build_requires 'Test::More';
use_test_base;
auto_include;
WriteAll;