mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
cleared up the CPAN indexing situation
1. generating bogus feedgnuplot.pm module. It's just a 'package' statement and the source. The source is there to get the POD 2. comments
This commit is contained in:
parent
d9e2c3c93a
commit
cae085ae49
1
MANIFEST
1
MANIFEST
@ -1,6 +1,7 @@
|
||||
Makefile.PL
|
||||
MANIFEST
|
||||
bin/feedgnuplot
|
||||
lib/App/feedgnuplot.pm
|
||||
t/manifest.t
|
||||
t/plots.t
|
||||
Changes
|
||||
|
20
Makefile.PL
20
Makefile.PL
@ -42,14 +42,30 @@ sub MY::libscan
|
||||
# Don't install any symlinks (i.e. README.pod)
|
||||
return undef if -l $file;
|
||||
|
||||
# Don't install any feedgnuplot.pm. This exists only to make CPAN index this
|
||||
# distribution
|
||||
return undef if $file =~ /feedgnuplot.pm/;
|
||||
|
||||
return $self->SUPER::libscan ($file);
|
||||
}
|
||||
|
||||
# I want my manpage to go into the man section '1', NOT '1p'. Here I add a
|
||||
# snippet to the end of the generated Makefile to force this
|
||||
#
|
||||
# I also generate the feedgnuplot.pm. This exists only to make CPAN index this
|
||||
# distribution
|
||||
sub MY::postamble
|
||||
{
|
||||
return "MAN1EXT := 1\n";
|
||||
return <<'EOF'
|
||||
MAN1EXT := 1
|
||||
lib/App/feedgnuplot.pm: bin/feedgnuplot
|
||||
mkdir -p lib/App
|
||||
echo 'package App::feedgnuplot;' > $@
|
||||
cat $^ >> $@
|
||||
echo '1;' >> $@
|
||||
|
||||
dist: lib/App/feedgnuplot.pm
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
@ -65,5 +81,5 @@ WriteMakefile
|
||||
EXE_FILES => [ 'bin/feedgnuplot' ],
|
||||
BUILD_REQUIRES => { 'String::ShellQuote' => 0},
|
||||
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
|
||||
clean => { FILES => 'feedgnuplot-*' },
|
||||
clean => { FILES => 'feedgnuplot-* lib' },
|
||||
);
|
||||
|
@ -3,6 +3,10 @@
|
||||
use strict;
|
||||
use Test::More tests => 1;
|
||||
|
||||
# Here I use my bogus package (which only exists for CPAN indexing), and make
|
||||
# sure it works. This test is needless too, it just exists to satisfy CPAN
|
||||
# checks
|
||||
|
||||
BEGIN{
|
||||
require_ok 'App::feedgnuplot';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user