-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
45 lines (40 loc) · 1.34 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use lib '.';
use strict;
use warnings;
use inc::Module::Install;
# Definition.
abstract 'Read AutoCAD 1.50 DWG file.';
author 'Michal Josef Spacek <skim@cpan.org>';
author_requires 'English' => 0;
author_requires 'File::Object' => 0.05;
author_requires 'Test::More' => 0;
author_requires 'Test::NoWarnings' => 0;
author_requires 'Test::Pod' => 0;
author_requires 'Test::Pod::Coverage' => 0;
license 'bsd';
name 'CAD-Format-DWG-1_50';
perl_version 5.008;
readme_from 'AC1_50.pod';
requires 'Encode' => 0;
requires 'IO::KaitaiStruct' => 0;
requires_external_bin 'ksc';
requires_external_bin 'mv';
requires_external_bin 'sed';
recursive_author_tests('xt');
resources 'bugtracker' => 'https://github.com/michal-josef-spacek/CAD-Format-DWG-1_50/issues';
resources 'homepage' => 'https://github.com/michal-josef-spacek/CAD-Format-DWG-1_50';
resources 'repository' => 'git://github.com/michal-josef-spacek/CAD-Format-DWG-1_50';
test_requires 'English' => 0;
test_requires 'Error::Pure::Utils' => 0.22;
test_requires 'File::Object' => 0.05;
test_requires 'Test::More' => 0;
test_requires 'Test::NoWarnings' => 0;
tests_recursive;
version '0.01';
my $KSY_FILE = 'dwg_ac1_50.ksy';
my $OUTPUT_PM_FILE = 'AC1_50.pm';
system "ksc -t perl $KSY_FILE";
system "mv DwgAc150.pm $OUTPUT_PM_FILE";
system "sed -i s/DwgAc150/CAD::Format::DWG::AC1_50/g $OUTPUT_PM_FILE";
# Run.
WriteAll();