Sha256: 6908f366979904bca68e3d1de8fd1baf1af6187354b83b216dce242ce4be1af2

Contents?: true

Size: 969 Bytes

Versions: 3

Compression:

Stored size: 969 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'minisip')

module CSD
  module Application
    module Minisip
      class MinisipLinux < Minisip
        
        def build!
          define_paths
          create_working_dir
          install_aptitude_dependencies
          checkout_repository
          fix_aclocal_dirlist
          ldconfig_and_gtkgui
          make_libraries
        end
        
        def install_aptitude_dependencies
          ['git-core', 'subversion', 'automake', 'libssl-dev', 'libtool', 'libglademm-2.4-dev'].each do |apt|
            run_command("sudo apt-get --yes install #{apt}")
          end
        end
        
        def fix_aclocal_dirlist
          run_command "sudo echo /usr/local/share/aclocal >> /usr/share/aclocal/dirlist"
        end

        def ldconfig_and_gtkgui
          run_command("ldconfig /usr/local/lib/libminisip.so.0")
          run_command("minisip_gtkgui")
        end
        
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csd-0.0.12 lib/csd/applications/minisip/linux/minisip_linux.rb
csd-0.0.11 lib/csd/applications/minisip/linux/minisip_linux.rb
csd-0.0.10 lib/csd/applications/minisip/linux/minisip_linux.rb