10 Dec 2006 15:44:23 UTC
- Distribution: PAR-Dist-InstallPPD
- Module version: 0.02
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (668 / 0 / 0)
- KwaliteeBus factor: 1
- 87.50% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (14.5KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSMUELLER Steffen Müllerand 1 contributors
- Steffen Mueller (email@example.com)
PAR::Dist::InstallPPD - Installs PPM packages the PAR way
use PAR::Dist::InstallPPD; # Creates a .par distribution of the Tk module in the # current directory based on the Tk.ppd file from the excellent # bribes.org PPM repository. par_install_ppd(uri => 'http://www.bribes.org/perl/ppm/Tk.ppd'); # You could download the .ppd and .tar.gz files first and then do: par_install_ppd(uri => 'Tk.ppd', verbose => 1);
This module creates PAR distributions from PPD XML documents which are used by ActiveState's "Perl Package Manager", short PPM. Then, it installs these newly created temporary .par files in the default location using PAR::Dist's
Yes, that means you can install packages for the PPM without PPM.
The module uses PAR::Dist::FromPPD to create the .par files.
Please note that this code works for me but hasn't been tested to full extent.
By default, the
par_install_ppdsubroutine is exported to the caller's namespace.
This is a list of all public subroutines in the module.
This routine takes the same arguments as
ppd_to_parfrom PAR::Dist::FromPPD except for the output directory and the options that set the meta data for the produced .par file. The details are reproduced below.
The only mandatory parameter is an URI for the PPD file to parse.
uri => 'ftp://foo/bar' or 'file:///home/you/file.ppd', ... verbose => 1/0 (verbose mode on/off) selectarch => Regular Expression. selectperl => Regular Expression.
If a regular expression is specified using
selectarch, that expression is matched against the architecture settings of each implementation. The first matching implementation is chosen. If none matches, the implementations are tried in order of appearance.
selectperlworks the same as
selectarch, but operates on the (minimum) perl version of an implementation. If both
selectperloperates on the implementations matched by
selectarch. That means
PAR has a mailing list, <firstname.lastname@example.org>, that you can write to; send an empty mail to <email@example.com> to join the list and participate in the discussion.
Please send bug reports to <firstname.lastname@example.org>.
The official PAR website may be of help, too: http://par.perl.org
For details on the Perl Package Manager, please refer to ActiveState's website at http://activestate.com.
Steffen Mueller, <smueller at cpan dot org>
Copyright (C) 2006 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install PAR::Dist::InstallPPD, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install PAR::Dist::InstallPPD
For more information on module installation, please visit the detailed CPAN module installation guide.