1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
use lib '.';
use inc::Module::Install;
# Package information
name 'Grinder';
all_from 'lib/Grinder.pm';
license 'gpl3'; # Module::Install 1.04 does not parse the GPL version number
resources
homepage 'http://sourceforge.net/projects/biogrinder/';
bugtracker 'http://sourceforge.net/tracker/?group_id=244196&atid=1124737';
repository 'git://biogrinder.git.sourceforge.net/gitroot/biogrinder/biogrinder';
# Dependencies for everyone
build_requires 'Test::More' => 0; # first released with Perl v5.6.2
build_requires 'Test::Warn' => 0;
requires 'Bio::Root::Version' => '1.006923'; # Bioperl v1.6.923
requires 'Bio::DB::Fasta' => 0;
requires 'Bio::Location::Split' => 0;
requires 'Bio::PrimarySeq' => 0;
requires 'Bio::Root::Root' => 0;
requires 'Bio::SeqIO' => 0;
requires 'Bio::SeqFeature::SubSeq' => 0;
requires 'Bio::Seq::SimulatedRead' => 0;
requires 'Bio::Tools::AmpliconSearch' => 0;
requires 'Getopt::Euclid' => '0.4.4';
requires 'List::Util' => 0; # first released with Perl v5.7.3
requires 'Math::Random::MT' => '1.16';
requires 'version' => '0.77'; # first released with Perl v5.9.0
# Dependencies for authors only
author_requires 'Module::Install';
author_requires 'Module::Install::AuthorRequires';
author_requires 'Module::Install::AutoLicense';
author_requires 'Module::Install::PodFromEuclid';
author_requires 'Module::Install::ReadmeFromPod' => '0.14';
author_requires 'Module::Install::AutoManifest';
author_requires 'Statistics::R' => '0.32';
# Also install R and the fitdistrplus R library
# Bundle dependencies
# This system does not support Build.PL based dependencies
#perl_version( '5.005' );
#auto_bundle_deps();
# Install dependencies
auto_install;
# Extra scripts to install
install_script 'bin/grinder';
install_script 'utils/average_genome_size';
install_script 'utils/change_paired_read_orientation';
# Generate MANIFEST file
auto_manifest();
# Generate Makefile and META.yml files
WriteAll;
# Generate the LICENSE file
auto_license();
# Generate the README and manpage files from the POD docs
auto_doc();
#--------- UTILS --------------------------------------------------------------#
sub auto_doc {
print "*** Building doc...\n";
pod_from 'bin/grinder';
my $grinder = 'bin/grinder.pod';
my $script1 = 'utils/average_genome_size';
my $script2 = 'utils/change_paired_read_orientation';
my $clean = 1;
my $man_dir = 'man';
if (not -d $man_dir) {
mkdir $man_dir or die "Could not write folder $man_dir:\n$!\n";
}
readme_from $grinder, $clean, 'txt', 'README';
readme_from $grinder, $clean, 'htm', 'README.htm';
readme_from $grinder, $clean, 'man', "$man_dir/grinder.1";
readme_from $script1, $clean, 'man', "$man_dir/average_genome_size.1";
readme_from $script2, $clean, 'man', "$man_dir/change_paired_read_orientation.1";
return 1;
}
|