package Cpanel::Easy::OptLib::monobasic;

# cpanel - Cpanel/Easy/OptLib/monobasic.pm        Copyright(c) 2014 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited

sub path_installed {
    my ($easy_obj) = @_;

    return {
        'name'         => 'monobasic',
        'install_path' => '/opt/mono/',
        'itis_up2date' => sub {
            if ( -e '/opt/mono/bin/vbnc' ) {
                my $mono_mtime = ( stat('/opt/mono/bin/mono') )[9];
                my $vbnc_mtime = ( stat('/opt/mono/bin/vbnc') )[9];
                return $vbnc_mtime > $mono_mtime;
            }
            return 0;
        },
        'working_path' => 'mono-basic-2.6.2',
        'command_list' => [ [qw(./configure --prefix=/opt/mono)], ['make'], [ 'make', 'install' ], ],
    };
}

1;
