Perl::Dist::Asset::Library - "C Library" asset for a Win32 Perl
my $library = Perl::Dist::Asset::Library->new( name => 'zlib', url => 'http://strawberryperl.com/packages/zlib-1.2.3.win32.zip', unpack_to => 'zlib', build_a => { 'dll' => 'zlib-1.2.3.win32/bin/zlib1.dll', 'def' => 'zlib-1.2.3.win32/bin/zlib1.def', 'a' => 'zlib-1.2.3.win32/lib/zlib1.a', }, install_to => { 'zlib-1.2.3.win32/bin' => 'c/bin', 'zlib-1.2.3.win32/lib' => 'c/lib', 'zlib-1.2.3.win32/include' => 'c/include', }, );
Perl::Dist::Asset::Library is a data class that provides encapsulation and error checking for a "C library" to be installed in a Perl::Dist-based Perl distribution.
It is normally created on the fly by the <Perl::Dist::Inno> install_library method (and other things that call it).
install_library
Perl::Dist::Asset::Library is similar to Perl::Dist::Asset::Binary, in that it captures a name, source URL, and paths for where to install files.
It also takes a few more pieces of information to support certain more esoteric functions unique to C library builds.
The specification of the location to retrieve the package is done via the standard mechanism implemented in Perl::Dist::Asset.
This class inherits from Perl::Dist::Asset and shares its API.
TO BE COMPLETED
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perl-Dist
For other issues, contact the author.
Adam Kennedy <adamk@cpan.org>
Perl::Dist, Perl::Dist::Inno, Perl::Dist::Asset
Copyright 2007 - 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Perl::Dist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Dist
CPAN shell
perl -MCPAN -e shell install Perl::Dist
For more information on module installation, please visit the detailed CPAN module installation guide.