Permalink
Browse files

The YAML::Syck plugin is no longer needed.

  • Loading branch information...
1 parent 07bcfe6 commit 8830644bfe1e33081d2341366325cbc1edaa5056 @voegelas committed Feb 16, 2012
Showing with 7 additions and 117 deletions.
  1. +4 −0 Changes
  2. +1 −1 README
  3. +2 −2 lib/CPANPLUS/Dist/Slackware.pm
  4. +0 −114 lib/CPANPLUS/Dist/Slackware/Plugin/YAML/Syck.pm
View
@@ -1,5 +1,9 @@
Revision history for CPANPLUS-Dist-Slackware
+1.01 2012-02-16 08:01:50 CET
+
+- The YAML::Syck plugin is no longer needed.
+
1.00 2012-02-13 09:48:12 CET
- List required packages instead of module names in README.SLACKWARE.
View
2 README
@@ -1,4 +1,4 @@
-CPANPLUS-Dist-Slackware version 1.00
+CPANPLUS-Dist-Slackware version 1.01
This CPANPLUS plugin creates Slackware compatible packages from Perl
distributions. You can either install the created packages using the API
@@ -21,7 +21,7 @@ use Params::Check qw();
local $Params::Check::VERBOSE = 1;
-our $VERSION = '1.00';
+our $VERSION = '1.01';
my $NONROOT_WARNING = <<'END_NONROOT_WARNING';
In order to manage packages as a non-root user, which is highly recommended,
@@ -951,7 +951,7 @@ CPANPLUS::Dist::Slackware - Install Perl distributions on Slackware Linux
=head1 VERSION
-This documentation refers to C<CPANPLUS::Dist::Slackware> version 1.00.
+This documentation refers to C<CPANPLUS::Dist::Slackware> version 1.01.
=head1 SYNOPSIS
@@ -1,114 +0,0 @@
-package CPANPLUS::Dist::Slackware::Plugin::YAML::Syck;
-
-use strict;
-use warnings;
-
-use File::Spec qw();
-
-our $VERSION = '0.01';
-
-sub available {
- my ( $plugin, $dist ) = @_;
- return ( $dist->parent->package_name eq 'YAML-Syck' );
-}
-
-sub pre_prepare {
- my ( $plugin, $dist ) = @_;
-
- my $module = $dist->parent;
- my $cb = $module->parent;
-
- my $wrksrc = $module->status->extract;
- return if !$wrksrc;
-
- # See L<https://rt.cpan.org/Ticket/Display.html?id=74785>.
- my $filename = File::Spec->catfile( $wrksrc, 'perl_common.h' );
- if ( -f $filename ) {
- my $code = $dist->_read_file($filename);
- if ( $code =~ /croak\(form\(/xms ) {
- $code =~ s/croak\(form\(\s*(.+?)\)\)/croak($1)/xms;
- $code =~ s/^(\s*)(p->cursor[ ]-[ ]p->lineptr),/$1(long) ($2),/xms;
- $cb->_move( file => $filename, to => "$filename.orig" ) or return;
- $dist->_write_file( $filename, $code ) or return;
- }
- }
-
- return 1;
-}
-
-1;
-__END__
-
-=head1 NAME
-
-CPANPLUS::Dist::Slackware::Plugin::YAML::Syck - Patch C<YAML::Syck> if
-necessary
-
-=head1 VERSION
-
-This documentation refers to
-C<CPANPLUS::Dist::Slackware::Plugin::YAML::Syck> version 0.01.
-
-=head1 SYNOPSIS
-
- $is_available = $plugin->available($dist);
- $success = $plugin->pre_prepare($dist);
-
-=head1 DESCRIPTION
-
-Compiling F<perl_common.h> with C<-Werror=format-security> fails.
-Reported as bug #74785 at L<http://rt.cpan.org/>.
-
-=head1 SUBROUTINES/METHODS
-
-=over 4
-
-=item B<< $plugin->available($dist) >>
-
-Returns true if this plugin applies to the given Perl distribution.
-
-=item B<< $plugin->pre_prepare($dist) >>
-
-Patch F<perl_common.h> if necessary.
-
-=back
-
-=head1 DIAGNOSTICS
-
-None.
-
-=head1 CONFIGURATION AND ENVIRONMENT
-
-None.
-
-=head1 DEPENDENCIES
-
-Requires the module C<File::Spec>.
-
-=head1 INCOMPATIBILITIES
-
-None known.
-
-=head1 SEE ALSO
-
-C<CPANPLUS::Dist::Slackware>
-
-=head1 AUTHOR
-
-Andreas Voegele, C<< <andreas at andreasvoegele.com> >>
-
-=head1 BUGS AND LIMITATIONS
-
-Please report any bugs to C<bug-cpanplus-dist-slackware at rt.cpan.org>, or
-through the web interface at L<http://rt.cpan.org/>.
-
-=head1 LICENSE AND COPYRIGHT
-
-Copyright (c) 2012 Andreas Voegele
-
-This library is free software; you can redistribute it and/or modify it under
-the same terms as Perl itself.
-
-See http://dev.perl.org/licenses/ for more information.
-
-=cut

0 comments on commit 8830644

Please sign in to comment.