package Cpanel::Easy::OptLib::glib2;

# cpanel - Cpanel/Easy/OptLib/glib2.pm            Copyright(c) 2010 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'         => 'glib2',
        'install_path' => '/opt/glib2/',
        'itis_up2date' => sub {
            `/opt/glib2/bin/glib-genmarshal --version 2>&1` =~ m{ 2 [.] 24 [.] 2 }xms;
        },
        'working_path' => 'glib-2.24.2',
        'command_list' => [ [qw(./configure --prefix=/opt/glib2)], ['make'], [qw(make install)], ],
    };
}

1;
