You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2002/04/25 08:06:12 UTC
cvs commit: xml-xerces/perl Makefile.PL
jasons 02/04/24 23:06:11
Modified: perl Makefile.PL
Log:
* Makefile.PL (Repository):
removed outdated Xerces_header info
Updated to new version syntax
Revision Changes Path
1.30 +6 -23 xml-xerces/perl/Makefile.PL
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/xml-xerces/perl/Makefile.PL,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- Makefile.PL 28 Mar 2002 07:56:21 -0000 1.29
+++ Makefile.PL 25 Apr 2002 06:06:11 -0000 1.30
@@ -123,7 +123,7 @@
my $XERCES_MAJOR_VERSION = '1.7';
my $XERCES_MINOR_VERSION = '0';
my $XERCES_LIB_VERSION = "$XERCES_MAJOR_VERSION.$XERCES_MINOR_VERSION";
-my $XERCES_PERL_VERSION = $XERCES_LIB_VERSION . '_1';
+my $XERCES_PERL_VERSION = $XERCES_LIB_VERSION . '-1';
my $XERCES_VERSION = "$XERCES_LIB_VERSION";
# this substitution will yield '1_4' from '1.4' to be used by 'LIBS'
@@ -178,34 +178,16 @@
my $FIND = 'find';
# set up the custom headers
+ my @header_files;
my @handler_headers;
chomp(@handler_headers = `$FIND Handler -name "*.swig.hpp"`);
- my @pre_swig_headers = qw(
- );
- my $PRE_SWIG_HEADERS;
- my @PRE_SWIG_HEADERS;
- my $PRIVATE_HEADER_DIR = './Xerces_headers';
-
- foreach my $header (@pre_swig_headers) {
- my $outfile = "$PRIVATE_HEADER_DIR/$header";
- my $infile = "$XERCES_INCLUDE/$header";
- push(@PRE_SWIG_HEADERS,$outfile);
- $PRE_SWIG_HEADERS .= <<EOT;
-$outfile: $infile
- preSwig.pl --directory $PRIVATE_HEADER_DIR $infile
-
-EOT
- }
sub Xerces_postamble {
- chomp(my @header_files = `$FIND Xerces_headers -name "*.hpp"`);
chomp(my @import_files = `$FIND Handler -name "*.i"`);
push(@header_files,@handler_headers,@import_files);
local $" = ' ';
- <<TERMINUS;
-$PRE_SWIG_HEADERS
-
-Xerces.C: Xerces.i typemaps.i @PRE_SWIG_HEADERS @header_files postSource.pl
+ my $retval = <<TERMINUS;
+Xerces.C: Xerces.i typemaps.i @header_files postSource.pl
\$(SWIG) -DVERSION="$XERCES_PERL_VERSION" \$(INC) -package XML::Xerces -perl5 -c++ -shadow -o Xerces.C Xerces.i
perl postSource.pl Xerces.C
perl postModule.pl Xerces.pm
@@ -222,6 +204,7 @@
$HANDLER_LIB:
\$(MAKE) -C Handler static
TERMINUS
+ return $retval;
}
print STDERR "Welcome Xerces Developer!\n";
@@ -246,6 +229,7 @@
# write the makefile
# see the hints/ directory for architecture specific stuff!
WriteMakefile(
+ 'NAME' => 'XML::Xerces',
'AUTHOR' => 'The Xerces-P developers',
'ABSTRACT' => 'Perl Interface for Xerces XML API',
'CCFLAGS' => $CFLAGS,
@@ -256,7 +240,6 @@
'INC' => $INCLUDES,
'MYEXTLIB' => $HANDLER_LIB,
'LIBS' => [$LIBS],
- 'NAME' => 'XML::Xerces',
'OBJECT' => $OBJS,
'DIR' => ['DOMParse'],
'VERSION' => "$XERCES_PERL_VERSION",
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org