Alien-Libarchive-Installer
view release on metacpan or search on metacpan
code on the Internet will generally return an instance of
Alien::Libarchive::Installer which can be queried to retrieve the
settings needed to interact with libarchive via XS or FFI::Raw.
versions_available
my @versions = Alien::Libarchive::Installer->versions_available;
my $latest_version = $versions[-1];
Return the list of versions of libarchive available on the Internet.
Will throw an exception if the libarchive.org website is unreachable.
Versions will be sorted from oldest (smallest) to newest (largest).
fetch
my($location, $version) = Alien::Libarchive::Installer->fetch(%options);
my $location = Alien::Libarchive::Installer->fetch(%options);
NOTE: using this method may (and probably does) require modules
returned by the build_requires method.
Download libarchive source from the internet. By default it will
download the latest version to 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
if version 0.21 or better is found. Usually this is what you want.
build_install
my $installer = Alien::Libarchive::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 libarchive into the given directory. If there is an
error an exception will be thrown. On a successful build, an instance
of Alien::Libarchive::Installer will be returned.
These options may be passed into build_install:
tar
Filename where the libarchive source tar is located. If not specified
the latest version will be downloaded from the Internet.
dir
lib/Alien/Libarchive/Installer.pm view on Meta::CPAN
an instance of L<Alien::Libarchive::Installer> which can be
queried to retrieve the settings needed to interact with
libarchive via XS or L<FFI::Raw>.
=head2 versions_available
my @versions = Alien::Libarchive::Installer->versions_available;
my $latest_version = $versions[-1];
Return the list of versions of libarchive available on the Internet.
Will throw an exception if the libarchive.org website is unreachable.
Versions will be sorted from oldest (smallest) to newest (largest).
=head2 fetch
my($location, $version) = Alien::Libarchive::Installer->fetch(%options);
my $location = Alien::Libarchive::Installer->fetch(%options);
B<NOTE:> using this method may (and probably does) require modules
returned by the L<build_requires|Alien::Libarchive::Installer#build_requires>
method.
Download libarchive source from the internet. By default it will
download the latest version to 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/Libarchive/Installer.pm view on Meta::CPAN
=head2 build_install
my $installer = Alien::Libarchive::Installer->build_install( '/usr/local', %options );
B<NOTE:> using this method may (and probably does) require modules
returned by the L<build_requires|Alien::Libarchive::Installer>
method.
Build and install libarchive into the given directory. If there
is an error an exception will be thrown. On a successful build, an
instance of L<Alien::Libarchive::Installer> will be returned.
These options may be passed into build_install:
=over 4
=item tar
Filename where the libarchive source tar is located.
If not specified the latest version will be downloaded
( run in 0.408 second using v1.01-cache-2.11-cpan-496ff517765 )