1#!perl 2 3use strict; 4use warnings; 5use Module::Build; 6use File::Spec; 7 8# Copyright (C) 2010-2012 Science and Technology Facilities Council. 9# All Rights Reserved. 10 11# This program is free software; you can redistribute it and/or modify 12# it under the terms of the GNU General Public License as published by 13# the Free Software Foundation; either version 3 of the License, or 14# (at your option) any later version. 15 16# This program is distributed in the hope that it will be useful,but 17# WITHOUT ANY WARRANTY; without even the implied warranty of 18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19# General Public License for more details. 20 21# You should have received a copy of the GNU General Public License 22# along with this program; if not, write to the Free Software 23# Foundation, Inc., 59 Temple Place,Suite 330, Boston, MA 02111-1307, 24# USA 25 26my $file = File::Spec->catfile(File::Spec->curdir, "lib", "Astro", 27 "Coords.pm"); 28 29# Set it up. 30my $build = Module::Build->new 31 ( 32 module_name => 'Astro::Coords', 33 abstract_from => $file, 34 license => 'gpl3', 35 author => [ 36 'Tim Jenness <t.jenness@jach.hawaii.edu>', 37 ], 38 dist_version => '0.20', 39 meta_merge => { 40 resources => { 41 repository => "git://github.com/timj/perl-Astro-Coords.git", 42 homepage => "http://github.com/timj/perl-Astro-Coords/tree/master", 43 }, 44 }, 45 requires => { 46 'Scalar::Util' => 1.13, 47 'Astro::PAL' => 0, 48 'Time::Piece' => 1.10, 49 'Astro::Telescope' => 0.71, 50 'DateTime' => 0.76, 51 }, 52 configure_requires => { 53 "Module::Build" => 0.30, 54 }, 55 build_requires => { 56 'Test::More' => 0, 57 'Test::Number::Delta' => 0, 58 'Test::Pod' => 1.00, 59 }, 60 ); 61 62$build->create_build_script; 63