Compare commits

..

2 Commits

Author SHA1 Message Date
Dima Kogan
cae085ae49 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
2013-11-22 13:19:23 -08:00
Matthias Ries
d9e2c3c93a add a simple test for the App::feedgnuplot package 2013-11-22 12:58:52 -08:00
5 changed files with 43 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
Makefile.PL Makefile.PL
MANIFEST MANIFEST
bin/feedgnuplot bin/feedgnuplot
lib/App/feedgnuplot.pm
t/manifest.t t/manifest.t
t/plots.t t/plots.t
Changes Changes

View File

@@ -42,14 +42,30 @@ sub MY::libscan
# Don't install any symlinks (i.e. README.pod) # Don't install any symlinks (i.e. README.pod)
return undef if -l $file; 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); return $self->SUPER::libscan ($file);
} }
# I want my manpage to go into the man section '1', NOT '1p'. Here I add a # 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 # 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 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' ], EXE_FILES => [ 'bin/feedgnuplot' ],
BUILD_REQUIRES => { 'String::ShellQuote' => 0}, BUILD_REQUIRES => { 'String::ShellQuote' => 0},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'feedgnuplot-*' }, clean => { FILES => 'feedgnuplot-* lib' },
); );

11
debian/changelog vendored
View File

@@ -1,7 +1,11 @@
feedgnuplot (1.26-1) unstable; urgency=low feedgnuplot (1.26-1) unstable; urgency=low
[ Dima Kogan ]
* Minor POD update * Minor POD update
-- Dima Kogan <dima@secretsauce.net> Sun, 20 Oct 2013 01:19:51 -0700
feedgnuplot (1.25-1) unstable; urgency=low
* Added test suite * Added test suite
* Added initial support for --timefmt. Currently time/date data is * Added initial support for --timefmt. Currently time/date data is
supported only at the x-axis domain supported only at the x-axis domain
@@ -12,10 +16,7 @@ feedgnuplot (1.26-1) unstable; urgency=low
* --hardcopy now handles piped output (gnuplot 'set output |process' * --hardcopy now handles piped output (gnuplot 'set output |process'
syntax) syntax)
[ Anton Gladky ] -- Dima Kogan <dima@secretsauce.net> Sun, 20 Oct 2013 00:57:23 -0700
* Add libipc-run-perl to Build-Depends to execute tests
-- Dima Kogan <dima@secretsauce.net> Sun, 20 Oct 2013 01:19:51 -0700
feedgnuplot (1.24-2) unstable; urgency=low feedgnuplot (1.24-2) unstable; urgency=low

2
debian/control vendored
View File

@@ -1,7 +1,7 @@
Source: feedgnuplot Source: feedgnuplot
Section: science Section: science
Priority: optional Priority: optional
Build-Depends: debhelper (>= 9), libstring-shellquote-perl, perl, gawk, gnuplot, libipc-run-perl Build-Depends: debhelper (>= 9), libstring-shellquote-perl, perl, gawk, gnuplot
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org> Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Uploaders: Dima Kogan <dima@secretsauce.net>, Anton Gladky <gladk@debian.org> Uploaders: Dima Kogan <dima@secretsauce.net>, Anton Gladky <gladk@debian.org>
Standards-Version: 3.9.4 Standards-Version: 3.9.4

17
t/happy_cpantesters.t Normal file
View File

@@ -0,0 +1,17 @@
#!perl
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';
}
diag("App::feedgnuplot/$App::feedgnuplot::VERSION");
__DATA__