Alien::Build::MM - Alien::Build installer code for ExtUtils::MakeMaker
version 0.01
In your Makefile.PL:
use ExtUtils::MakeMaker; use Alien::Build::MM; my $abmm = Alien::Build::MM->new; WriteMakefile($abmm->mm_args( ABSTRACT => 'Discover or download and install libfoo', DISTNAME => 'ALien-Libfoo', NAME => 'Alien::Libfoo', VERSION_FROM => 'lib/Alien/Libfoo.pm', ... )); sub MY::postamble { $abmm->mm_postamble; }
In your lib/Alien/Libfoo.pm:
package Alien::Libfoo; use base qw( Alien::Base ); 1;
This class allows you to use Alien::Build and Alien::Base with ExtUtils::MakeMaker.
my $abmm = Alien::Build::MM->new;
Create a new instance of Alien::Build::MM.
my $build = $mm->build;
The Alien::Build instance.
my %args = $mm->mm_args(%args);
Adjust the arguments passed into WriteMakefile as needed by Alien::Build.
WriteMakefile
Returns the postamble for the Makefile needed for Alien::Build.
Makefile
Alien::Build, Alien::Base, Alien
Graham Ollis <plicease@cpan.org>
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.
To install Alien::Build, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::Build
CPAN shell
perl -MCPAN -e shell install Alien::Build
For more information on module installation, please visit the detailed CPAN module installation guide.