r36202 - in /trunk/libfile-libmagic-perl: Changes LibMagic.pm debian/changelog inc/Devel/CheckLib.pm
ryan52-guest at users.alioth.debian.org
ryan52-guest at users.alioth.debian.org
Sat May 23 11:42:53 UTC 2009
Author: ryan52-guest
Date: Sat May 23 11:42:49 2009
New Revision: 36202
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=36202
Log:
new upstream version
Modified:
trunk/libfile-libmagic-perl/Changes
trunk/libfile-libmagic-perl/LibMagic.pm
trunk/libfile-libmagic-perl/debian/changelog
trunk/libfile-libmagic-perl/inc/Devel/CheckLib.pm
Modified: trunk/libfile-libmagic-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-libmagic-perl/Changes?rev=36202&op=diff
==============================================================================
--- trunk/libfile-libmagic-perl/Changes (original)
+++ trunk/libfile-libmagic-perl/Changes Sat May 23 11:42:49 2009
@@ -1,4 +1,8 @@
Revision history for Perl extension File::LibMagic.
+
+0.96 May 2009
+ Upgraded Devel::CheckLib
+ see bug 46044, 46295 in rt.cpan.org
0.95 May 2009
try to make test work in netbsd and solaris 9
Modified: trunk/libfile-libmagic-perl/LibMagic.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-libmagic-perl/LibMagic.pm?rev=36202&op=diff
==============================================================================
--- trunk/libfile-libmagic-perl/LibMagic.pm (original)
+++ trunk/libfile-libmagic-perl/LibMagic.pm Sat May 23 11:42:49 2009
@@ -30,7 +30,7 @@
our @EXPORT = qw( );
-our $VERSION = '0.95';
+our $VERSION = '0.96';
sub AUTOLOAD {
# This AUTOLOAD is used to 'autoload' constants from the constant()
Modified: trunk/libfile-libmagic-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-libmagic-perl/debian/changelog?rev=36202&op=diff
==============================================================================
--- trunk/libfile-libmagic-perl/debian/changelog (original)
+++ trunk/libfile-libmagic-perl/debian/changelog Sat May 23 11:42:49 2009
@@ -1,11 +1,11 @@
-libfile-libmagic-perl (0.95-1) UNRELEASED; urgency=low
+libfile-libmagic-perl (0.96-1) UNRELEASED; urgency=low
no need to upload
* New upstream release
* update copyright
- -- Ryan Niebur <ryanryan52 at gmail.com> Mon, 18 May 2009 17:35:10 -0700
+ -- Ryan Niebur <ryanryan52 at gmail.com> Sat, 23 May 2009 04:42:11 -0700
libfile-libmagic-perl (0.91-2) unstable; urgency=low
Modified: trunk/libfile-libmagic-perl/inc/Devel/CheckLib.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-libmagic-perl/inc/Devel/CheckLib.pm?rev=36202&op=diff
==============================================================================
--- trunk/libfile-libmagic-perl/inc/Devel/CheckLib.pm (original)
+++ trunk/libfile-libmagic-perl/inc/Devel/CheckLib.pm Sat May 23 11:42:49 2009
@@ -1,10 +1,10 @@
-# $Id: CheckLib.pm,v 1.22 2008/03/12 19:52:50 drhyde Exp $
+# $Id: CheckLib.pm,v 1.25 2008/10/27 12:16:23 drhyde Exp $
package Devel::CheckLib;
use strict;
use vars qw($VERSION @ISA @EXPORT);
-$VERSION = '0.5';
+$VERSION = '0.6';
use Config;
use File::Spec;
@@ -30,8 +30,6 @@
=head1 SYNOPSIS
- # in a Makefile.PL or Build.PL
- use lib qw(inc);
use Devel::CheckLib;
check_lib_or_exit( lib => 'jpeg', header => 'jpeglib.h' );
@@ -40,6 +38,13 @@
# or prompt for path to library and then do this:
check_lib_or_exit( lib => 'jpeg', libpath => $additional_path );
+=head1 USING IT IN Makefile.PL or Build.PL
+
+If you want to use this from Makefile.PL or Build.PL, do
+not simply copy the module into your distribution as this may cause
+problems when PAUSE and search.cpan.org index the distro. Instead, use
+the use-devel-checklib script.
+
=head1 HOW IT WORKS
You pass named parameters to a function, describing to it how to build
@@ -88,6 +93,8 @@
a C<ExtUtils::MakeMaker>-style space-seperated list of
libraries (each preceded by '-l') and directories (preceded by '-L').
+This can also be supplied on the command-line.
+
=back
And libraries are no use without header files, so ...
@@ -108,6 +115,8 @@
a C<ExtUtils::MakeMaker>-style space-seperated list of
incpaths, each preceded by '-I'.
+
+This can also be supplied on the command-line.
=back
@@ -149,14 +158,27 @@
if $args{incpath};
# work-a-like for Makefile.PL's LIBS and INC arguments
+ # if given as command-line argument, append to %args
+ for my $arg (@ARGV) {
+ for my $mm_attr_key qw(LIBS INC) {
+ if (my ($mm_attr_value) = $arg =~ /\A $mm_attr_key = (.*)/x) {
+ # it is tempting to put some \s* into the expression, but the
+ # MM command-line parser only accepts LIBS etc. followed by =,
+ # so we should not be any more lenient with whitespace than that
+ $args{$mm_attr_key} .= " $mm_attr_value";
+ }
+ }
+ }
+
+ # using special form of split to trim whitespace
if(defined($args{LIBS})) {
- foreach my $arg (split(/\s+/, $args{LIBS})) {
+ foreach my $arg (split(' ', $args{LIBS})) {
die("LIBS argument badly-formed: $arg\n") unless($arg =~ /^-l/i);
push @{$arg =~ /^-l/ ? \@libs : \@libpaths}, substr($arg, 2);
}
}
if(defined($args{INC})) {
- foreach my $arg (split(/\s+/, $args{INC})) {
+ foreach my $arg (split(' ', $args{INC})) {
die("INC argument badly-formed: $arg\n") unless($arg =~ /^-I/);
push @incpaths, substr($arg, 2);
}
@@ -295,11 +317,15 @@
=item IBM's tools on AIX
+=item SGI's tools on Irix 6.5
+
=item Microsoft's tools on Windows
=item MinGW on Windows (with Strawberry Perl)
=item Borland's tools on Windows
+
+=item QNX
=back
More information about the Pkg-perl-cvs-commits
mailing list