Skip to content

Commit

Permalink
Import of RHOELZ/Mac-FSEvents-0.11.tar.gz from CPAN.
Browse files Browse the repository at this point in the history
gitpan-cpan-distribution: Mac-FSEvents
gitpan-cpan-version:      0.11
gitpan-cpan-path:         RHOELZ/Mac-FSEvents-0.11.tar.gz
gitpan-cpan-author:       RHOELZ
gitpan-cpan-maturity:     released
  • Loading branch information
hoelzro authored and Gitpan committed Jan 8, 2015
1 parent f2955a5 commit f97a4fb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Perl extension Mac::FSEvents.

0.11 2014-11-19 12:00:00
- Fix build problems on OS X Yosemite

0.10 2013-06-20 12:00:00
- fix Pod coverage problem

Expand Down
13 changes: 5 additions & 8 deletions META.json
Expand Up @@ -4,7 +4,7 @@
"Andy Grundman <andy@hybridized.org>, Rob Hoelz <rob@hoelz.ro>"
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 6.68, CPAN::Meta::Converter version 2.112621",
"generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380",
"license" : [
"unknown"
],
Expand All @@ -17,28 +17,25 @@
"directory" : [
"t",
"inc"
],
"file" : [
"MacVersion.pm"
]
},
"prereqs" : {
"build" : {
"requires" : {
"ExtUtils::MakeMaker" : 0
"ExtUtils::MakeMaker" : "0"
}
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : 0
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"File::Slurp" : 0
"File::Slurp" : "0"
}
}
},
"release_status" : "stable",
"version" : "0.10"
"version" : "0.11"
}
6 changes: 2 additions & 4 deletions META.yml
Expand Up @@ -7,7 +7,7 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: 0
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.68, CPAN::Meta::Converter version 2.112621'
generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380'
license: unknown
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
Expand All @@ -17,8 +17,6 @@ no_index:
directory:
- t
- inc
file:
- MacVersion.pm
requires:
File::Slurp: 0
version: 0.10
version: 0.11
4 changes: 2 additions & 2 deletions MacVersion.pm
Expand Up @@ -9,8 +9,8 @@ our @EXPORT = qw(osx_version);

sub osx_version {
my $os_version = qx(system_profiler SPSoftwareDataType);
if($os_version =~ /System Version:(?: Mac)? OS X (?:Server )?(10\.\d+)/) {
return $1;
if($os_version =~ /System Version:(?: Mac)? OS X (?:Server )?(?:(10)\.(\d+)(?:\.(\d+))?)/) {
return ($1, $2, $3 || 0);
} else {
$os_version =~ s/^/> /gm;

Expand Down
6 changes: 3 additions & 3 deletions Makefile.PL
Expand Up @@ -29,12 +29,12 @@ my @names = qw{
kFSEventStreamCreateFlagWatchRoot
};

my $version = osx_version();
my ( $major, $minor, $release ) = osx_version();

if($version >= 10.6) {
if($minor >= 6) {
push @names, 'kFSEventStreamCreateFlagIgnoreSelf';

if($version >= 10.7) {
if($minor >= 7) {
push @names, 'kFSEventStreamCreateFlagFileEvents';
}
}
Expand Down
5 changes: 3 additions & 2 deletions hints/darwin.pl
Expand Up @@ -4,9 +4,10 @@
use MacVersion;

if ( $Config{myarchname} =~ /i386/ ) {
my $os_version = osx_version();
my ( $major, $minor, $release ) = osx_version();
my $os_version = join('.', $major, $minor);

if($os_version >= 10.5) { # Leopard and up
if($minor >= 5) { # Leopard and up
my @directories = (
"/Developer/SDKs/MacOSX$os_version.sdk",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$os_version.sdk",
Expand Down
2 changes: 1 addition & 1 deletion lib/Mac/FSEvents.pm
Expand Up @@ -6,7 +6,7 @@ use base 'Exporter';

use Mac::FSEvents::Event;

our $VERSION = '0.10';
our $VERSION = '0.11';

our @EXPORT_OK = qw(NONE WATCH_ROOT);
our %EXPORT_TAGS = ( flags => \@EXPORT_OK );
Expand Down

0 comments on commit f97a4fb

Please sign in to comment.