Skip to content

Instantly share code, notes, and snippets.

@jberger
Created January 15, 2012 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jberger/1616740 to your computer and use it in GitHub Desktop.
Save jberger/1616740 to your computer and use it in GitHub Desktop.
Alien::Base with alternative FTP object
use strict;
use warnings;
use Alien::Base::ModuleBuild;
my $ftp = FTP::Other->new( host => 'my.host.org', folder => '/folder' );
$ftp->binary();
my $builder = Alien::Base::ModuleBuild->new(
module_name => 'Alien::GSL',
dist_abstract => 'Easy installation of the GNU Scientific Library',
license => 'perl',
configure_requires => {
'Alien::Base' => 0,
},
requires => {
'perl' => '5.8.1',
'Alien::Base' => 0,
},
dist_author => 'Joel A. Berger <joel.a.berger@gmail.com>',
alien_name => 'gsl',
alien_repository => {
connection => $ftp,
pattern => qr/^gsl-([\d\.])+\.tar\.gz$/,
},
);
$builder->create_build_script;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment