root/trunk/POE-Component-Pool-Thread/Makefile.PL

Revision 13, 1.0 kB (checked in by scottmc, 3 years ago)

Added old perl modules
Starting to think maybe I should structure the new repository differently

Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings FATAL => "all";
5use ExtUtils::MakeMaker;
6
7# Touch CHANGES so it exists.
8open CHANGES, ">>CHANGES" and close CHANGES;
9
10# Dont laugh!
11sub MY::postamble {
12        q(
13document:
14        $(NOECHO) $(PERLRUN) "-MFile::Find"                       \
15         -le 'find { wanted => sub { if (m/otl$$/) { \
16                        my $$pod = $$_; \
17                        $$pod =~ s/otl/pod/; \
18                        print "Converting $$File::Find::name to $$pod"; \
19                        system("otl2pod $$_ > $$pod"); \
20                } } }, "lib";'
21         );
22}
23
24WriteMakefile
25  ( NAME         => 'POE::Component::Pool::Thread',
26    AUTHOR       => 'Scott S. McCoy (tag@cpan.org)',
27    ABSTRACT     => 'A POE Component for managing Boss/Worker Thread pools',
28    VERSION_FROM => 'Thread.pm',
29
30    PREREQ_PM    => {
31        POE      => 0.30,
32        threads  => 1.03,
33    },
34
35    dist         =>
36    { DIST_DEFAULT => "tardist document",
37          COMPRESS   => 'gzip -9f',
38      SUFFIX     => 'gz',
39      PREOP      => ( 'svn log | ' .
40                      'tee ./$(DISTNAME)-$(VERSION)/CHANGES > ./CHANGES'
41                    ),
42    },
43  );
Note: See TracBrowser for help on using the browser.