Alien-OpenSSL-Static
view release on metacpan or search on metacpan
license => 'perl',
configure_requires => {
'Alien::Base::ModuleBuild' => '0.025',
'Module::Build' => '0.38',
'Test::More' => 0,
},
requires => {
'perl' => '5.8.1',
'Alien::Base' => '0.025',
},
alien_name => 'openssl',
alien_repository => {
protocol => 'local',
location => 'source',
exact_filename => "openssl-${minver}.tar.gz",
},
alien_version_check => '%{pkg_config} --atleast-version '
. $minver .' %n && %{pkg_config} --modversion %n',
alien_stage_install => 0,
alien_build_commands => [
'sh config no-shared --prefix=%s',
'make',
],
alien_install_commands => [
'make install_sw',
],
meta_merge => {
resources => {
homepage => 'https://github.com/ollyg/alien-openssl-static',
bugtracker => 'https://github.com/ollyg/alien-openssl-static/issues',
repository => 'git://github.com/ollyg/alien-openssl-static.git',
},
},
script_files => [
'bin/openssl-env-bash',
'bin/openssl-env-perl'
],
);
my %args = $builder->args;
my $version;
$version = $args{version} if(exists $args{version});
if ( defined($version) ) {
my $location = ".../source/openssl-".$version.".tar.gz";
print "Downloading from $location\n";
$builder->alien_version_check('%{pkg_config} --exact-version '
. $version .' %n && %{pkg_config} --modversion %n');
$builder->alien_repository->{exact_filename} = "openssl-$version.tar.gz";
}
$builder->create_build_script;
bin/openssl-env-bash
bin/openssl-env-perl
Build.PL
Changes
lib/Alien/OpenSSL/Static.pm
MANIFEST This list of files
MANIFEST.SKIP
META.json
META.yml
source/openssl-1.1.0j.tar.gz
t/00-use.t
t/01-signature.t
t/author-pod.t
},
"provides" : {
"Alien::OpenSSL::Static" : {
"file" : "lib/Alien/OpenSSL/Static.pm",
"version" : "1.000001"
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/ollyg/alien-openssl-static/issues"
},
"homepage" : "https://github.com/ollyg/alien-openssl-static",
"license" : [
"http://dev.perl.org/licenses/"
],
"repository" : {
"url" : "git://github.com/ollyg/alien-openssl-static.git"
}
},
"version" : "1.000001",
"x_serialization_backend" : "JSON::PP version 2.97001"
}
version: '1.4'
name: Alien-OpenSSL-Static
provides:
Alien::OpenSSL::Static:
file: lib/Alien/OpenSSL/Static.pm
version: '1.000001'
requires:
Alien::Base: '0.025'
perl: v5.8.1
resources:
bugtracker: https://github.com/ollyg/alien-openssl-static/issues
homepage: https://github.com/ollyg/alien-openssl-static
license: http://dev.perl.org/licenses/
repository: git://github.com/ollyg/alien-openssl-static.git
version: '1.000001'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
use Text::ParseWords qw/shellwords/;
BEGIN { use_ok( 'Alien::OpenSSL::Static' ); }
diag("Libs: ".Alien::OpenSSL::Static->libs);
diag("Cflags: ".Alien::OpenSSL::Static->cflags);
diag("Install type: ".Alien::OpenSSL::Static->install_type);
my %libs = map { $_ => 1 } shellwords( Alien::OpenSSL::Static->libs );
if ($^O eq 'MSWin32') {
ok(1, 'Library defined') if ( defined($libs{'-lssl32'}) || defined($libs{'-lcrypto'}) );
} else {
ok(defined($libs{'-lcrypto'}), 'Libcrypto defined');
}
( run in 0.635 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )