From: Vincent Pit Date: Sun, 29 Jun 2008 16:15:07 +0000 (+0200) Subject: Importing Scalar-Vec-Util-0.02.tar.gz X-Git-Tag: v0.02^0 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScalar-Vec-Util.git;a=commitdiff_plain;h=2ae36849ba8e31e2e90b1ee1bfb6c73159d47cc6 Importing Scalar-Vec-Util-0.02.tar.gz --- diff --git a/Changes b/Changes index 59f56fb..c8afa14 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,10 @@ Revision history for Scalar-Vec-Util +0.02 2008-05-13 16:40 UTC + + Chg : Don't smoke this on 5.005 please. + + Fix : File::Spec is a build dependency. + + Fix : No 64 bits for Win32 (yet). + 0.01 2008-05-08 17:15 UTC First version, released on an unsuspecting world. diff --git a/META.yml b/META.yml index 25e5241..b2fb200 100644 --- a/META.yml +++ b/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name: Scalar-Vec-Util -version: 0.01 +version: 0.02 abstract: Utility routines for vec strings. license: perl author: @@ -17,4 +17,5 @@ meta-spec: build_requires: Config: 0 ExtUtils::MakeMaker: 0 + File::Spec: 0 Test::More: 0 diff --git a/Makefile.PL b/Makefile.PL index fc3276b..eaac828 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,3 +1,5 @@ +use 5.006; + use strict; use warnings; use ExtUtils::MakeMaker; @@ -37,14 +39,15 @@ my $arch = $Config{archname} || ''; my ($cpu) = $arch =~ /^([^-]+)/; my @DEFINES; -my $unit; +my $unit = 8; if (unpack("h*", pack("s", 0x1234)) != 4321) { print "Forcing unit size of 8 on non-little-endian systems.\n"; - $unit = 8; } else { my $align = int($Config{alignbytes} || 0); print "Checking unit size in bits... "; - for (8, 16, 32, 64) { + my @s = (8, 16, 32); + push @s, 64 unless $^O eq 'MSWin32'; + for (@s) { my $size = int($Config{'u' . $_ . 'size'} || 0); $unit = $_ if $size && $size <= $align; } @@ -58,6 +61,7 @@ push @DEFINES, DEFINE => '-DBV_UNIT="' my $BUILD_REQUIRES = { 'Config' => 0, 'ExtUtils::MakeMaker' => 0, + 'File::Spec' => 0, 'Test::More' => 0, }; diff --git a/README b/README index 5f84066..69aa06b 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Scalar::Vec::Util - Utility routines for vec strings. VERSION - Version 0.01 + Version 0.02 SYNOPSIS use Scalar::Vec::Util qw/vfill vcopy veq/; diff --git a/lib/Scalar/Vec/Util.pm b/lib/Scalar/Vec/Util.pm index fb3168d..3da4ad8 100644 --- a/lib/Scalar/Vec/Util.pm +++ b/lib/Scalar/Vec/Util.pm @@ -11,13 +11,13 @@ Scalar::Vec::Util - Utility routines for vec strings. =head1 VERSION -Version 0.01 +Version 0.02 =cut our $VERSION; BEGIN { - $VERSION = '0.01'; + $VERSION = '0.02'; eval { require XSLoader; XSLoader::load(__PACKAGE__, $VERSION);