we search /usr/local/include by default but we weren't searching
authorTony Cook <tony@develop=help.com>
Wed, 5 Jul 2006 14:21:07 +0000 (14:21 +0000)
committerTony Cook <tony@develop=help.com>
Wed, 5 Jul 2006 14:21:07 +0000 (14:21 +0000)
/usr/local/lib, fixed that

don't rebuild META.yml if we're not setting AUTHOR, this was producing
a bad META.yml on older EU::MMs

Makefile.PL

index d9b09e99a8d808b6c71b54b416a6affd5772faef..28ecaddb3c087962195671157fd69f2d5f0465a0 100644 (file)
@@ -433,6 +433,7 @@ sub init {
     # it can't find and it doesn't look for -L in ldflags
     #@deflib{@hidden} = @hidden;
   }
+  push @libs, grep -d, qw(/usr/local/lib);
 
   $formats{'jpeg'}={
                    order=>'21',
@@ -829,6 +830,10 @@ sub make_metafile {
   my $version = MM->parse_version($opts->{VERSION_FROM})
     or die "Could not extract version number from $opts->{VERSION_FROM}\n";
 
+  # we don't set this on older EU::MM and it corrupts META.yml
+  # so don't generate it
+  return unless $opts->{AUTHOR};
+
   my $meta = <<YAML;
 --- #YAML:1.0
 name: $opts->{NAME}