Skip to content

Commit 08d112d

Browse files
committed
Add META.yml and clean up Makefile.PL
1 parent 04188c1 commit 08d112d

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Changes
22
MANIFEST
3+
META.yml
34
Makefile.PL
45
NetAdmin.pm
56
NetAdmin.xs

META.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--- #YAML:1.0
2+
name: Win32-NetAdmin
3+
abstract: Manage network groups and users in Perl
4+
version: 0.08
5+
author:
6+
- Jan Dubois <[email protected]>
7+
license: perl
8+
requires:
9+
perl: 5.6
10+
resources:
11+
license: http://dev.perl.org/licenses/
12+
homepage: http://code.google.com/p/libwin32/
13+
meta-spec:
14+
version: 1.3
15+
url: http://module-build.sourceforge.net/META-spec-v1.3.html
16+
generated_by: Jan Dubois

Makefile.PL

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,11 @@ unless ($^O eq "MSWin32" || $^O eq "cygwin") {
55
die "OS unsupported\n";
66
}
77

8-
my @libs;
9-
push @libs, '-L/lib/w32api -lnetapi32' if $^O eq "cygwin";
10-
11-
WriteMakefile(
12-
'NAME' => 'Win32::NetAdmin',
13-
'VERSION_FROM' => 'NetAdmin.pm',
14-
'LIBS' => \@libs,
15-
'dist' => {COMPRESS => 'gzip -9f', SUFFIX => 'gz'},
16-
($] < 5.005 ? () :
17-
(
18-
'AUTHOR' => 'Douglas Lankshear <[email protected]>',
19-
'ABSTRACT_FROM' => 'NetAdmin.pm',
20-
)),
8+
my %param = (
9+
NAME => 'Win32::NetAdmin',
10+
VERSION_FROM => 'NetAdmin.pm',
2111
);
12+
$param{NO_META} = 1 if eval "$ExtUtils::MakeMaker::VERSION" >= 6.10_03;
13+
$param{LIBS} = ['-L/lib/w32api -lnetapi32'] if $^O eq "cygwin";
14+
15+
WriteMakefile(%param);

NetAdmin.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ $EXPORT_TAGS{ALL}= \@EXPORT_OK;
131131

132132
=head1 NAME
133133
134-
Win32::NetAdmin - manage network groups and users in perl
134+
Win32::NetAdmin - Manage network groups and users in Perl
135135
136136
=head1 SYNOPSIS
137137

0 commit comments

Comments
 (0)