Skip to content
Newer
Older
100644 134 lines (115 sloc) 3.79 KB
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
1 ###############################################################################
2 #
3 # This is the MakeMaker skeleton for the RPC-XML extension. Besides the usual
4 # tricks, this has to add rules to make the *.xpl files from *.code in the
5 # methods/ subdir, as well as get them into a place where they get installed
6 # correctly.
7 #
8 ###############################################################################
9 use ExtUtils::MakeMaker;
10 use File::Spec;
11 use File::Find;
0fc63f9 Traced a bug that was causing test failures in 50_client.t to a bug i…
rjray authored
12
3c30f21 @rjray Prep for 0.67 build
authored
13 my ($vol, $dir, undef) = File::Spec->splitpath(File::Spec->rel2abs($0));
14 $dir = File::Spec->catpath($vol, $dir, '');
15
afc23bd @rjray RT#52662: Fix requirement specification on XML::LibXML.
authored
16 eval "require XML::LibXML;";
17 if ($@)
18 {
19 print STDERR <<END;
20 @@@@@
21 XML::LibXML not found
22
23 You may ignore the warnings about XML::LibXML not being present, if
24 you plan only to use the XML::Parser-based parsing engine. The use
25 of XML::LibXML is completely optional.
26 @@@@@
27
28 END
29 }
30
5751684 Preparation for 0.59 release
rjray authored
31 $CLEAN = 'pod2html-* *.html *.spec *.rpm rpmrc rpmmacro *.log t/*.log ' .
a0845dd @rjray Admin files changes for 0.77 release.
authored
32 't/*.pid META.yml META.json MYMETA.yml MYMETA.json *.ppd cover_db ';
92d0f86 Added extra CLEAN args for pod2html artifacts
rjray authored
33
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
34 @scripts = (File::Spec->catfile(qw(etc make_method)));
92d0f86 Added extra CLEAN args for pod2html artifacts
rjray authored
35 $CLEAN .= File::Spec->catfile(qw(methods *.xpl));
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
36
37 @PM_FILES = ();
38
b096e3d Changed the architecture again
rjray authored
39 find(sub { push(@PM_FILES, $File::Find::name) if (-f $_ and /\.pm$/) }, 'lib');
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
40
d529596 Omit Apache2 files for now
rjray authored
41 # Exclude Apache2 stuff until it's ready for deployment
42 @PM_FILES = grep(! /Apache2/, @PM_FILES);
43
b096e3d Changed the architecture again
rjray authored
44 %PM_FILES = map { ($temp = $_) =~ s|^lib|\$\(INST_LIB\)|; $_ => $temp }
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
45 @PM_FILES;
4605c55 Some re-arrangements for the method base-files, and changing the cons…
rjray authored
46 # Handle the method code in "methods" specially:
47 find(sub {
48 if (-f $_ and /\.base$/)
49 {
50 s/\.base$//;
51 $PM_FILES{File::Spec->catfile('methods', "$_.xpl")} =
52 File::Spec->catfile('$(INST_LIB)', 'RPC', 'XML', "$_.xpl");
53 }
54 }, 'methods');
55 # Anything stuck under "lib" is more generic
56 find(sub {
57 if (-f $_ and /\.base$/)
58 {
59 $File::Find::name =~ s/base$/xpl/;
60 ($tmp = $File::Find::name) =~ s|^lib|\$(INST_LIB)|;
61 $PM_FILES{$File::Find::name} = $tmp;
62 $CLEAN .= " $File::Find::name";
63 }
64 }, 'lib');
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
65
66 WriteMakefile(
eccfbe4 @rjray Prep for 0.70 release
authored
67 NAME => 'RPC::XML',
924316c @rjray Preparation for 0.79 release.
authored
68 VERSION => '0.79',
eccfbe4 @rjray Prep for 0.70 release
authored
69 AUTHOR => 'Randy J. Ray',
70 ABSTRACT => 'Data, client and server classes for XML-RPC',
71 EXE_FILES => \@scripts,
72 PM => \%PM_FILES,
73 PREREQ_PM => {
74 'File::Spec' => 0.8,
75 'constant' => 1.03,
924316c @rjray Preparation for 0.79 release.
authored
76 'Scalar::Util' => 1.33,
e63c1a7 @rjray Clean up test suite to work with older Test::More.
authored
77 'Test::More' => 0.94,
509400a @rjray Prep for 0.73 release.
authored
78 'LWP' => 5.834,
afc23bd @rjray RT#52662: Fix requirement specification on XML::LibXML.
authored
79 'XML::Parser' => 2.31,
e340f5f @rjray Replaced direct evals with Module::Load usage.
authored
80 'Module::Load' => 0.24,
eccfbe4 @rjray Prep for 0.70 release
authored
81 },
82 dist => { COMPRESS => 'gzip -9f' },
83 clean => { FILES => $CLEAN },
84 LICENSE => 'perl',
2abadd8 @rjray Preparation for 0.76 release.
authored
85 MIN_PERL_VERSION => 5.008008,
eccfbe4 @rjray Prep for 0.70 release
authored
86 META_MERGE => {
509400a @rjray Prep for 0.73 release.
authored
87 recommends => {
a0845dd @rjray Admin files changes for 0.77 release.
authored
88 'XML::LibXML' => '1.85',
2abadd8 @rjray Preparation for 0.76 release.
authored
89 'DateTime' => '0.70',
90 'DateTime::Format::ISO8601' => '0.07',
e340f5f @rjray Replaced direct evals with Module::Load usage.
authored
91 'Compress::Raw::Zlib' => '2.063',
509400a @rjray Prep for 0.73 release.
authored
92 },
eccfbe4 @rjray Prep for 0.70 release
authored
93 resources => {
94 homepage => 'http://search.cpan.org/dist/RPC-XML',
95 bugtracker =>
96 'http://rt.cpan.org/Public/Dist/Display.html?Name=RPC-XML',
97 repository => 'http://github.com/rjray/rpc-xml',
98 }
99 },
100 );
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
101
102 sub MY::post_initialize
103 {
104 my $self = shift;
105
106 my @text;
107 my $makemeth = File::Spec->catfile(qw(etc make_method));
108
109 push(@text,
e1f3cbd Bumped version number up to 0.30. Also re-did the handling of XPL gen…
rjray authored
110 '.SUFFIXES: .xpl .base',
111 '',
112 '.base.xpl:',
04826aa Initial check-in of the lobotimized XML-RPC implementation
rjray authored
113 "\t\$(PERL) $makemeth --base=\$*",
114 '');
115 join("\n", @text);
116 }
e4c8e90 Changes from work @ work
rjray authored
117
db33224 Copied RPM/SRPM functionality from Perl-RPM and Image::Size. Like Ima…
rjray authored
118 sub MY::postamble
119 {
120 my $self = shift;
121
122 my @text;
645efa9 Added dependancy on etc/make_method to the method files, bumped versi…
rjray authored
123 my $makemeth = File::Spec->catfile(qw(etc make_method));
db33224 Copied RPM/SRPM functionality from Perl-RPM and Image::Size. Like Ima…
rjray authored
124
e1f3cbd Bumped version number up to 0.30. Also re-did the handling of XPL gen…
rjray authored
125 # Create the dependancy rules for the methods/XPL files
126 for (sort grep(/\.xpl$/, keys %::PM_FILES))
127 {
128 s/\.xpl$//;
645efa9 Added dependancy on etc/make_method to the method files, bumped versi…
rjray authored
129 push(@text, "$_.xpl: $_.base $_.help $_.code $makemeth");
e1f3cbd Bumped version number up to 0.30. Also re-did the handling of XPL gen…
rjray authored
130 }
131
db33224 Copied RPM/SRPM functionality from Perl-RPM and Image::Size. Like Ima…
rjray authored
132 join("\n", @text);
133 }
Something went wrong with that request. Please try again.