-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
42 lines (37 loc) · 1.26 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
use lib '.';
use strict;
use warnings;
use inc::Module::Install;
# Definition.
abstract 'Read AutoCAD 10 DWG file.';
author 'Michal Josef Spacek <[email protected]>';
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-AC1006';
perl_version 5.008;
readme_from 'AC1006.pod';
requires 'Encode' => 0;
requires 'IO::KaitaiStruct' => 0;
recursive_author_tests('xt');
resources 'bugtracker' => 'https://github.com/michal-josef-spacek/CAD-Format-DWG-AC1006/issues';
resources 'homepage' => 'https://github.com/michal-josef-spacek/CAD-Format-DWG-AC1006';
resources 'repository' => 'git://github.com/michal-josef-spacek/CAD-Format-DWG-AC1006';
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_ac1006.ksy';
my $OUTPUT_PM_FILE = 'AC1006.pm';
system "ksc -t perl $KSY_FILE";
system "mv DwgAc1006.pm $OUTPUT_PM_FILE";
system "sed -i s/DwgAc1006/CAD::Format::DWG::AC1006/g $OUTPUT_PM_FILE";
# Run.
WriteAll();