Alien-UnicornEngine

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

        protocol => 'http',
        host => 'github.com',
        location => '/unicorn-engine/unicorn/archive/',
        exact_filename => '1.0.tar.gz',
        exact_version => '1.0',
    },
    alien_msys => 1,
    alien_bin_requires => {
        'Alien::gmake' => 0.11,
    },
    alien_provides_cflags => '-fPIC',
    alien_build_commands => [
        '%{gmake} clean all',
    ],
    alien_install_commands => [
        '%{gmake} install PREFIX=%s',
    ],
    meta_merge => {
        resources => {
            repository => 'https://github.com/selectiveintellect/p5-alien-unicorn',
            bugtracker => 'https://github.com/selectiveintellect/p5-alien-unicorn/issues',

README  view on Meta::CPAN

    http://www.unicorn-engine.org on the system or locate the existing
    installation if any. It is currently setup to use the Github master
    branch.

    You can use it in the Build.PL file if you're using Module::Build or
    Makefile.PL file if you're using ExtUtils::MakeMaker.

                my $unicorn= Alien::UnicornEngine->new;
                my $build = Module::Build->new(
                    ...
                    extra_compiler_flags => $unicorn->cflags(),
                    extra_linker_flags => $unicorn->libs(),
                    ...
                );

VERSION

    0.05

METHODS

    new

      Creates the object. Refer Alien::Base for more information.

    cflags

      This method provides the compiler flags needed to use the library on
      the system.

    libs

      This method provides the linker flags needed to use the library on
      the system.

SEE ALSO

    Alien::Base

AUTHORS

    Vikas N Kumar <vikas@cpan.org>

lib/Alien/UnicornEngine.pm  view on Meta::CPAN

source disassembly library Unicorn-Engine from
L<http://www.unicorn-engine.org> on the system or locate the existing
installation if any. It is currently setup to use the Github master branch.

You can use it in the C<Build.PL> file if you're using Module::Build or
C<Makefile.PL> file if you're using ExtUtils::MakeMaker.

            my $unicorn= Alien::UnicornEngine->new;
            my $build = Module::Build->new(
                ...
                extra_compiler_flags => $unicorn->cflags(),
                extra_linker_flags => $unicorn->libs(),
                ...
            );


=head1 VERSION

0.05

=head1 METHODS

=over

=item B<new>

Creates the object. Refer C<Alien::Base> for more information.

=item B<cflags>

This method provides the compiler flags needed to use the library on the system.

=item B<libs>

This method provides the linker flags needed to use the library on the system.

=back

=head1 SEE ALSO

=over

=item C<Alien::Base>

=back

t/00_use.t  view on Meta::CPAN

use Test::More;
use blib;
use Data::Dumper;
use_ok 'Alien::UnicornEngine';
my $unicorn = new_ok('Alien::UnicornEngine');
note $unicorn->cflags;
note $unicorn->libs;
note Alien::UnicornEngine::ConfigData->config('finished_installing');
my $insttype = Alien::UnicornEngine::ConfigData->config('install_type');
note "Install type: $insttype";
if ($insttype eq 'system') {
    is(Alien::UnicornEngine::ConfigData->config('finished_installing'), 0, 'Using system install of unicorn.');
} else {
    is(Alien::UnicornEngine::ConfigData->config('finished_installing'), 1, 'Installation complete of custom build of unicorn');
}



( run in 0.291 second using v1.01-cache-2.11-cpan-a5abf4f5562 )