Alien-bz2-Installer
view release on metacpan or search on metacpan
will generally return an instance of Alien::bz2::Installer which can be
queried to retrieve the settings needed to interact with bz2 via XS or
FFI::Raw.
versions_available
my @versions = Alien::bz2::Installer->versions_available;
my $latest_version = $version[-1];
Returns the list of versions of bzip2 available on the Internet. Will
throw an exception if available versions cannot be determined.
fetch
my($location, $version) = Alien::bz2::Installer->fetch(%options);
my $location = Alien::bz2::Installer->fetch(%options);
NOTE: using this method may (and probably does) require modules
returned by the build_requires method.
Download the bz2 source from the internet. By default it will download
the latest version t a temporary directory, which will be removed when
Perl exits. Will throw an exception on failure. Options include:
dir
Directory to download to
version
Version to download
build_requires
found. Usually this is what you want.
build_install
my $installer = Alien::bz2::Installer->build_install( '/usr/local', %options );
NOTE: using this method may (and probably does) require modules
returned by the build_requires method.
Build and install bz2 into the given directory. If there is an error an
exception will be thrown. On a successful build, an instance of
Alien::bz2::Installer will be returned.
These options may be passed into build_install:
tar
Filename where the bz2 source tar is located. If not specified the
latest version will be downloaded from the Internet.
dir
lib/Alien/bz2/Installer.pm view on Meta::CPAN
an instance of L<Alien::bz2::Installer> which can be
queried to retrieve the settings needed to interact with
bz2 via XS or L<FFI::Raw>.
=head2 versions_available
my @versions = Alien::bz2::Installer->versions_available;
my $latest_version = $version[-1];
Returns the list of versions of bzip2 available on the Internet.
Will throw an exception if available versions cannot be determined.
=head2 fetch
my($location, $version) = Alien::bz2::Installer->fetch(%options);
my $location = Alien::bz2::Installer->fetch(%options);
B<NOTE:> using this method may (and probably does) require modules
returned by the L<build_requires|Alien::bz2::Installer#build_requires>
method.
Download the bz2 source from the internet. By default it will
download the latest version t a temporary directory, which will
be removed when Perl exits. Will throw an exception on failure.
Options include:
=over 4
=item dir
Directory to download to
=item version
lib/Alien/bz2/Installer.pm view on Meta::CPAN
=head2 build_install
my $installer = Alien::bz2::Installer->build_install( '/usr/local', %options );
B<NOTE:> using this method may (and probably does) require modules
returned by the L<build_requires|Alien::bz2::Installer>
method.
Build and install bz2 into the given directory. If there
is an error an exception will be thrown. On a successful build, an
instance of L<Alien::bz2::Installer> will be returned.
These options may be passed into build_install:
=over 4
=item tar
Filename where the bz2 source tar is located.
If not specified the latest version will be downloaded
( run in 0.374 second using v1.01-cache-2.11-cpan-496ff517765 )