The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
NAME

    Alien::Role::Alt - Alien::Base role that supports alternates

VERSION

    version 0.03

SYNOPSIS

    From your alienfile

     use alienfile;
     
     plugin 'PkgConfig' => (
       pkg_name => [ 'libfoo', 'libbar', ],
     );

    The in your base class:

     package Alien::Libfoo;
     
     use base qw( Alien::Base );
     use Role::Tiny::With qw( with );
     
     with 'Alien::Role::Alt';
     
     1;

    Then you can use it:

     use Alien::Libfoo;
     
     my $cflags = Alien::Libfoo->alt('foo1')->cflags;
     my $libs   = Alien::Libfoo->alt('foo1')->libs;

DESCRIPTION

    Some packages come with multiple libraries, and multiple .pc files to
    use with them. This Role::Tiny role can be used with Alien::Base to
    access different configurations.

METHODS

 alt

     my $new_alien = $old_alien->alt($alt_name);

    Returns an Alien::Base instance with the alternate configuration.

AUTHOR

    Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

    This software is copyright (c) 2017 by Graham Ollis.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.