I have a collection of XS modules that link to common libraries.  So I
created a Dist::Zilla plugin that
extends Dist::Zilla::Plugin::MakeMaker::Awesome to modify the Makefile
created.

It essentially adds this to the module's Makefile.PL that uses the plugin:

use Devel::CheckLib;
use strict;
use warnings;

check_lib_or_exit(
    lib => $_,
    libpath => [ {{ join ', ', map { "'$_'," } @lib_dirs }} ],
) for qw/ {{ join ' ', @libs }} /;


Where @lib_dirs and @libs are defined by the plugin parameters.


The problem, of course, is that Devel::CheckLib is used in Makefile.PL, so
it needs to be installed first.
The normal fix is to put Devel::CheckLib in inc/.

How can I get my Plugin to install a copy of Devel::CheckLib into the inc/
directly of my consuming module?   Do I need to put a copy of
Devel::CheckLib in my Plugin's share directly and then copy it from there?

Is there an example how to do this in any exiting plugin I could use as a
guide?


-- 
Bill Moseley
mose...@hank.org



-------------------------------------------
Dist::Zilla
Archives: https://www.listbox.com/member/archive/139292/=now
RSS Feed: https://www.listbox.com/member/archive/rss/139292/21080831-4b8afa6a
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21080831&id_secret=21080831-2b0ee212
Powered by Listbox: http://www.listbox.com

Reply via email to