Skip to content

Commit

Permalink
Add META.yml and clean up Makefile.PL
Browse files Browse the repository at this point in the history
  • Loading branch information
jandubois committed Feb 26, 2008
1 parent 1530e47 commit c10bfd5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
1 change: 1 addition & 0 deletions MANIFEST
@@ -1,6 +1,7 @@
Changes Lowlevel changelog
MANIFEST
MANIFEST.SKIP
META.yml
Makefile.PL
OLE.xs
README
Expand Down
16 changes: 16 additions & 0 deletions META.yml
@@ -0,0 +1,16 @@
--- #YAML:1.0
name: Win32-OLE
abstract: OLE Automation extensions
version: 0.1707
author:
- Jan Dubois <jand@activestate.com>
license: perl
requires:
perl: 5.6
resources:
license: http://dev.perl.org/licenses/
homepage: http://code.google.com/p/libwin32/
meta-spec:
version: 1.3
url: http://module-build.sourceforge.net/META-spec-v1.3.html
generated_by: Jan Dubois
43 changes: 15 additions & 28 deletions Makefile.PL
@@ -1,4 +1,7 @@
use Config;
use strict;
use warnings;

use Config qw(%Config);
use ExtUtils::MakeMaker qw(&WriteMakefile &neatvalue);

unless ($^O eq "MSWin32" || $^O eq "cygwin") {
Expand All @@ -7,36 +10,20 @@ unless ($^O eq "MSWin32" || $^O eq "cygwin") {

my $INSTDIR = grep(/INSTALLDIRS=perl/i, @ARGV) ? "lib" : "site\\lib";

my @MM =
my %param =
(
'NAME' => 'Win32::OLE',
'VERSION_FROM' => 'lib/Win32/OLE.pm',
'XS' => { 'OLE.xs' => 'OLE.cpp' },
# Without the next line MakeMaker will not export the bootstrap function
# (because we are using FUNCLIST too).
'DL_FUNCS' => { 'Win32::OLE' => [] },
'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
'clean' => { FILES => 'test.xls browser_to_blib' },
NAME => 'Win32::OLE',
VERSION_FROM => 'lib/Win32/OLE.pm',
XS => { 'OLE.xs' => 'OLE.cpp' },
# Without the next line MakeMaker will not export the bootstrap function
# (because we are using FUNCLIST too).
DL_FUNCS => { 'Win32::OLE' => [] },
clean => { FILES => 'test.xls' },
);

# Add additional settings for the creation of PPD files
if ($ExtUtils::MakeMaker::VERSION >= 5.43) {
push @MM, 'ABSTRACT_FROM' => 'lib/Win32/OLE.pm';
push @MM, 'AUTHOR' => 'Jan Dubois (jand@activestate.com)';
# Actually the OLE module was originally written by hip/ActiveWare.
# It has been converted to standard Perl XS format by Gurusamy Sarathy.
# Jan Dubois is currently the most active maintainer of this module.
# Please see the OLE.pm file for complete copyright information.
}

# XXX Enable this when MakeMaker supports 'FUNCLIST'
if ($ExtUtils::MakeMaker::VERSION >= 5.4302) {
push @MM, 'FUNCLIST' => [qw(SetSVFromVariant SetSVFromVariantEx SetVariantFromSV CreatePerlObject)];
}

my $FUNCLIST = [qw(SetSVFromVariant SetSVFromVariantEx SetVariantFromSV CreatePerlObject)];

WriteMakefile(@MM);
$param{FUNCLIST} = $FUNCLIST if eval "$ExtUtils::MakeMaker::VERSION" >= 5.4302;
$param{NO_META} = 1 if eval "$ExtUtils::MakeMaker::VERSION" >= 6.10_03;
WriteMakefile(%param);

sub MY::xs_c {
'
Expand Down

0 comments on commit c10bfd5

Please sign in to comment.