Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/desmosomeorg/p5-alien-openjdk


https://github.com/desmosomeorg/p5-alien-openjdk

alien java perl

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# NAME

Alien::OpenJDK - Find or build OpenJDK

# SYNOPSIS

From [ExtUtils::MakeMaker](https://metacpan.org/pod/ExtUtils%3A%3AMakeMaker):

use ExtUtils::MakeMaker;
use Alien::Base::Wrapper ();

WriteMakefile(
Alien::Base::Wrapper->new('Alien::OpenJDK')->mm_args2(
NAME => 'FOO::XS',
...
),
);

From [Module::Build](https://metacpan.org/pod/Module%3A%3ABuild):

use Module::Build;
use Alien::Base::Wrapper qw( Alien::OpenJDK !export );
use Alien::OpenJDK;

my $build = Module::Build->new(
...
configure_requires => {
'Alien::Base::Wrapper' => '0',
'Alien::OpenJDK' => '0',
...
},
Alien::Base::Wrapper->mb_args,
...
);

$build->create_build_script;

From [Inline::C](https://metacpan.org/pod/Inline%3A%3AC) / [Inline::CPP](https://metacpan.org/pod/Inline%3A%3ACPP) script:

use Inline 0.56 with => 'Alien::OpenJDK';

From [Dist::Zilla](https://metacpan.org/pod/Dist%3A%3AZilla)

[@Filter]
-bundle = @Basic
-remove = MakeMaker

[Prereqs / ConfigureRequires]
Alien::OpenJDK = 0

[MakeMaker::Awesome]
header = use Alien::Base::Wrapper qw( Alien::OpenJDK !export );
WriteMakefile_arg = Alien::Base::Wrapper->mm_args

Command line tool:

use Alien::OpenJDK;
use Env qw( @PATH );

unshift @PATH, Alien::OpenJDK->bin_dir;

# DESCRIPTION

This distribution provides OpenJDK so that it can be used by other
Perl distributions that are on CPAN. It does this by first trying to
detect an existing install of OpenJDK on your system. If found it
will use that. If it cannot be found, the source code will be downloaded
from the internet and it will be installed in a private share location
for the use of other modules.

# SEE ALSO

- [Alien](https://metacpan.org/pod/Alien)

Documentation on the Alien concept itself.

- [Alien::Base](https://metacpan.org/pod/Alien%3A%3ABase)

The base class for this Alien.

- [Alien::Build::Manual::AlienUser](https://metacpan.org/pod/Alien%3A%3ABuild%3A%3AManual%3A%3AAlienUser)

Detailed manual for users of Alien classes.