2011-10-02 11:57:47 +02:00
|
|
|
use Module::Build;
|
|
|
|
|
|
|
|
my $build = Module::Build->new(
|
|
|
|
module_name => 'Slic3r',
|
2012-04-09 11:04:32 +02:00
|
|
|
dist_abstract => 'G-code generator for 3D printers',
|
2011-10-02 11:57:47 +02:00
|
|
|
dist_author => 'Alessandro Ranellucci <aar@cpan.org>',
|
|
|
|
dist_version => '0.1',
|
2012-06-27 07:15:30 +01:00
|
|
|
license => 'perl',
|
2011-10-02 11:57:47 +02:00
|
|
|
requires => {
|
2012-04-09 11:04:32 +02:00
|
|
|
'Boost::Geometry::Utils' => '0',
|
2011-10-03 11:55:32 +02:00
|
|
|
'File::Basename' => '0',
|
2011-10-02 11:57:47 +02:00
|
|
|
'Getopt::Long' => '0',
|
2012-06-21 10:53:04 +02:00
|
|
|
'Math::Clipper' => '1.09',
|
2011-10-06 12:39:58 +02:00
|
|
|
'Math::ConvexHull' => '1.0.4',
|
2011-12-30 17:17:37 +01:00
|
|
|
'Math::Geometry::Voronoi' => '1.3',
|
2011-11-13 18:14:02 +01:00
|
|
|
'Math::PlanePath' => '53',
|
2012-06-23 23:27:57 +02:00
|
|
|
'Moo' => '0.091009',
|
2012-04-10 17:34:11 +02:00
|
|
|
'perl' => '5.10.0',
|
2012-05-19 20:30:46 +02:00
|
|
|
'Scalar::Util' => '0',
|
2011-10-02 11:57:47 +02:00
|
|
|
'Time::HiRes' => '0',
|
|
|
|
},
|
|
|
|
build_requires => {
|
|
|
|
'Test::More' => '0.10',
|
|
|
|
},
|
2012-04-10 17:32:16 +02:00
|
|
|
recommends => {
|
|
|
|
'Growl::GNTP' => '0.15',
|
2012-07-16 23:43:09 +02:00
|
|
|
'Net::DBus' => '0',
|
2012-04-10 17:32:16 +02:00
|
|
|
'Wx' => '0.9901',
|
|
|
|
},
|
2011-10-02 11:57:47 +02:00
|
|
|
script_files => ['slic3r.pl'],
|
|
|
|
);
|
2012-05-17 17:40:12 +03:00
|
|
|
|
|
|
|
if (not $ENV{SLIC3R_NO_AUTO})
|
|
|
|
{
|
|
|
|
$build->dispatch('installdeps');
|
|
|
|
$build->dispatch('test', verbose => 0);
|
|
|
|
}
|
2011-10-02 11:57:47 +02:00
|
|
|
|
|
|
|
$build->create_build_script;
|