Add --gui argument to Build.PL
This commit is contained in:
parent
b857d79604
commit
f1978ce50a
12
Build.PL
12
Build.PL
@ -28,6 +28,15 @@ my %recommends = qw(
|
|||||||
Growl::GNTP 0.15
|
Growl::GNTP 0.15
|
||||||
XML::SAX::ExpatXS 0
|
XML::SAX::ExpatXS 0
|
||||||
);
|
);
|
||||||
|
if ($ARGV[0] eq '--gui') {
|
||||||
|
%prereqs = (%prereqs, qw(
|
||||||
|
Wx 0.9901
|
||||||
|
));
|
||||||
|
%recommends = (%recommends, qw(
|
||||||
|
Wx::GLCanvas 0
|
||||||
|
OpenGL 0
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
# removed:
|
# removed:
|
||||||
# Wx 0.9901
|
# Wx 0.9901
|
||||||
@ -80,6 +89,9 @@ If it is installed in a non-standard location you can do:
|
|||||||
EOF
|
EOF
|
||||||
if !$cpanm;
|
if !$cpanm;
|
||||||
|
|
||||||
|
# make sure our cpanm is updated (old ones don't support the ~ syntax)
|
||||||
|
system $cpanm, 'App::cpanminus';
|
||||||
|
|
||||||
my %modules = (%prereqs, %recommends);
|
my %modules = (%prereqs, %recommends);
|
||||||
foreach my $module (sort keys %modules) {
|
foreach my $module (sort keys %modules) {
|
||||||
my $version = $modules{$module};
|
my $version = $modules{$module};
|
||||||
|
Loading…
Reference in New Issue
Block a user