Devel::CheckLib.

The idea is: don't write the Makefile (or Build file) if they don't have the right libs installed.

Devel::CheckLib can help with this (although it's still experimental) because it gives you a standard lib to install in your dist that checks for the existence of the lib. If it's not there, you error out, don't write the Makefile (or Build file) and the smokers will skip you.

On second thought, I think I may have misread. Do you just need to instruct your Makefile.PL to PREREQ_PM (or your Build.PL to requires) the Prima module?

On third thought, it's actually kindof a combination of the two. Test the Prima install in your Makefile.PL/Build.PL and if it doesn't work as expected, print an error and don't write the Makefile/Build. (UPDATE: This is actually harder than it sounds, since you have to write the Makefile to require the module, but don't want to write the Makefile if it's not installed properly. Supposedly M::B has a solution for this, but EU::MM does not.)

-Paul


In reply to Re: Need advice about CPAN tests by jettero
in thread Need advice about CPAN tests by dk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.