Alien-Libgpg_error
view release on metacpan or search on metacpan
sub use_installed_version {
my $self = shift;
if (defined (my $type = $self->config_data('install_type'))) {
return ($type eq 'system');
}
!$Alien::Base::ModuleBuild::Force and
$self->alien_check_installed_version
}
sub system_libgpg_error_config_get {
my ($self, @keys) = @_;
my %result = $self->do_system(join(' ', 'gpg-error-config', map "--$_", @keys));
if ($result{success}) {
my $out = $result{stdout};
chomp $out;
return $out
}
return;
}
sub alien_provides_cflags {
my $self = shift;
if ($self->use_installed_version) {
return $self->system_libgpg_error_config_get('cflags');
}
return;
}
sub alien_provides_libs {
my $self = shift;
if ($self->use_installed_version) {
return $self->system_libgpg_error_config_get('libs');
}
return;
}
EOC
my $builder = Alien::Base::ModuleBuild
->new( module_name => 'Alien::Libgpg_error',
license => 'perl',
dist_author => q{Salvador Fandiño <sfandino@yahoo.com>},
dist_version_from => 'lib/Alien/Libgpg_error.pm',
configure_requires => { 'Alien::Base' => '0.024',
'Module::Build' => '0.36' },
build_requires => { 'Test::More' => 0 },
add_to_cleanup => [ 'Alien-Libgpg_error-*' ],
alien_name => 'libgpg-error',
alien_repository => { protocol => 'ftp',
host => 'ftp.gnupg.org',
location => '/gcrypt/libgpg-error/',
pattern => qr/^libgpg-error-(\d+\.\d+)\.tar\.gz$/ },
alien_msys => 1,
alien_stage_install => 0,
alien_build_commands => [ '%c --prefix=%s --disable-doc --disable-languages',
'%x ../../helpers/fix-makefile.pl',
'make' ],
alien_version_check => 'gpg-error-config --version',
);
$builder->create_build_script();
Revision history for Alien-Libgpg_error
0.02 2016-1-11
- force passive FTP mode
0.01 2016-1-10
First version, released on an unsuspecting world.
Build.PL
Changes
helpers/fix-makefile.pl
lib/Alien/Libgpg_error.pm
MANIFEST This list of files
README
t/00-load.t
t/manifest.t
t/pod.t
META.yml
META.json
{
"abstract" : "Download, configure, build and install libgpg-error automagically!",
"author" : [
"Salvador Fandiño <sfandino@yahoo.com>"
],
"dynamic_config" : 1,
"generated_by" : "Module::Build version 0.4214",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
},
"name" : "Alien-Libgpg_error",
"prereqs" : {
"build" : {
"requires" : {
"Test::More" : "0"
}
},
"configure" : {
"requires" : {
"Alien::Base" : "0.024",
"Module::Build" : "0.36"
}
},
"runtime" : {
"requires" : {
"File::ShareDir" : "1.00"
}
}
},
"provides" : {
"Alien::Libgpg_error" : {
"file" : "lib/Alien/Libgpg_error.pm",
"version" : "0.02"
}
},
"release_status" : "stable",
"resources" : {
"license" : [
"http://dev.perl.org/licenses/"
]
},
"version" : "0.02",
---
abstract: 'Download, configure, build and install libgpg-error automagically!'
author:
- 'Salvador Fandiño <sfandino@yahoo.com>'
build_requires:
Test::More: '0'
configure_requires:
Alien::Base: '0.024'
Module::Build: '0.36'
dynamic_config: 1
generated_by: 'Module::Build version 0.4214, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: Alien-Libgpg_error
provides:
Alien::Libgpg_error:
file: lib/Alien/Libgpg_error.pm
version: '0.02'
requires:
File::ShareDir: '1.00'
resources:
license: http://dev.perl.org/licenses/
version: '0.02'
x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
Alien-Libgpg_error
==================
Download, configure, compile and install the libgpg-error library.
INSTALLATION
To install this module, run the following commands:
perl Build.PL
./Build
./Build test
./Build install
SUPPORT
For support go to the GitHub repository:
https://github.com/salva/p5-Alien-Libgpg_error.git
LICENSE AND COPYRIGHT
Copyright (C) 2016 Salvador Fandiño
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.4 or,
at your option, any later version of Perl 5 you may have available.
lib/Alien/Libgpg_error.pm view on Meta::CPAN
package Alien::Libgpg_error;
our $VERSION = '0.02';
use 5.006;
use strict;
use warnings;
use base qw(Alien::Base);
1;
=head1 NAME
Alien::Libgpg_error - Download, configure, build and install libgpg-error automagically!
=head1 SYNOPSIS
use Module::Build;
use Alien::Libgpg_error;
my $alge = Alien::Libgpg_error->new();
...
=head1 SEE ALSO
L<Alien::Base>, L<Alien::Libgcrypt>.
=head1 SUPPORT
For support go to the GitHub repository at
L<https://github.com/salva/p5-Alien-Libgpg_error>.
=head1 COPYRIGHT AND LICENSE
Copyright E<copy> 2016 by Salvador Fandiño
(sfandino@yahoo.com)
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.4 or,
at your option, any later version of Perl 5 you may have available.
t/00-load.t view on Meta::CPAN
#!perl
use 5.006;
use strict;
use warnings;
use Test::More;
plan tests => 1;
BEGIN {
use_ok( 'Alien::Libgpg_error' ) || print "Bail out!\n";
}
diag( "Testing Alien::Libgpg_error $Alien::Libgpg_error::VERSION, Perl $], $^X" );
( run in 1.273 second using v1.01-cache-2.11-cpan-df04353d9ac )