On 03/05/2013 10:42, Héctor Valverde Pareja wrote:

I have a question about CPAN installation progress. I have recently
upload a new module to CPAN (Molevol::Complex). It is a part of my work
in Molecular Evolution of Protein Complexes. This module needs several
requirements to work properly, such as PAML software
(http://abacus.gene.ucl.ac.uk/software/paml.html) and DSSP
(http://swift.cmbi.ru.nl/gv/dssp/). Also it needs Bioperl and
Bioperl-run. The two formers programs must be installed manually (not
through CPAN), so I want that during the installation progress of my
module, CPAN test if the environment variables $ENV{PAMLDIR} and
$ENV{DSSPBIN} are correctly declared.

You could use Devel::CheckLib as well as (or instead of) checking the environment. It comes with a tool to bundle itself with your module and insert the right magic in your Makefile.PL.

If you don't use Devel::CheckLib, then if you don't manage to detect the libraries through other means, have your Makefile.PL either:
    * die("OS unsupported\n")
 or * exit(0)

See also http://wiki.cpantesters.org/wiki/CPANAuthorNotes

--
David Cantrell | Enforcer, South London Linguistic Massive

Cum catapultae proscriptae erunt tum soli proscript catapultas habebunt

Reply via email to