]> Sergey Matveev's repositories - public-inbox.git/blobdiff - ci/deps.perl
make Plack optional for non-WWW and non-httpd users
[public-inbox.git] / ci / deps.perl
index ad2c11d28f6bc1a4e48799d4d6d8447ec3ad6d67..08722e1c41902275704a85b97f99be258192831d 100755 (executable)
@@ -9,7 +9,7 @@ my $usage = "$0 PKG_FMT PROFILE [PROFILE_MOD]";
 my $pkg_fmt = shift;
 @ARGV or die $usage, "\n";
 
-my @test_essential = qw(Test::Simple Plack::Test);
+my @test_essential = qw(Test::Simple); # we actually use Test::More
 
 # package profiles
 my $profiles = {
@@ -19,7 +19,6 @@ my $profiles = {
        essential => [ qw(
                git
                perl
-               Date::Parse
                Devel::Peek
                Digest::SHA
                Email::Simple
@@ -28,18 +27,20 @@ my $profiles = {
                Encode
                ExtUtils::MakeMaker
                Filesys::Notify::Simple
-               Plack
                URI::Escape
                ), @test_essential ],
 
        # everything optional for normal use
        optional => [ qw(
+               Date::Parse
                BSD::Resource
                DBD::SQLite
                DBI
                IO::Compress::Gzip
                Inline::C
                Net::Server
+               Plack
+               Plack::Test
                Plack::Middleware::Deflater
                Plack::Middleware::ReverseProxy
                Search::Xapian
@@ -50,7 +51,6 @@ my $profiles = {
 
        # optional developer stuff
        devtest => [ qw(
-               IPC::Run
                XML::Feed
                curl
                w3m
@@ -60,7 +60,7 @@ my $profiles = {
 # account for granularity differences between package systems and OSes
 my @precious;
 if ($^O eq 'freebsd') {
-       @precious = qw(perl curl Socket6 IO::Compress::Gzip IO::KQueue);
+       @precious = qw(perl curl Socket6 IO::Compress::Gzip);
 } elsif ($pkg_fmt eq 'rpm') {
        @precious = qw(perl curl);
 }
@@ -149,6 +149,9 @@ my (@pkg_install, @pkg_remove, %all);
 for my $ary (values %$profiles) {
        $all{$_} = \@pkg_remove for @$ary;
 }
+if ($^O eq 'freebsd') {
+       $all{'IO::KQueue'} = \@pkg_remove;
+}
 $profiles->{all} = [ keys %all ]; # pseudo-profile for all packages
 
 # parse the profile list from the command-line