Created
January 15, 2012 18:45
-
-
Save jberger/1616740 to your computer and use it in GitHub Desktop.
Alien::Base with alternative FTP object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>', | |
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