tokuhirom's blog

How can I make ppport.h by Module::Build?

Following code is works for me.

my $class = Module::Build->subclass(
  code => q{
    use Devel::PPPort;

    sub ACTION_build {
        my $self = shift;

    sub ACTION_ppport_h {
        my $self = shift;
        my $filepath = 'lib/HTML/ppport.h';
        unless (-e $filepath) {
            print "Writing $filepath\n";

Code is taken from, thanks.

And if you want to run the code with older perl, you need to add build_requires part.

build_requires => {
  'Devel::PPPort' => '3.20',
Created: 2012-10-15T05:06:39Z
Updated: 2012-10-15T05:06:39Z
comments powered by Disqus