Class: CSD::Application::Minisip::Unix::Base
- Inherits:
-
Base
show all
- Defined in:
- lib/csd/application/minisip/unix/base.rb
Constant Summary
collapse
- DEBIAN_DEPENDENCIES =
A list of apt-get packages that are required by this application.
%w{ libssl-dev libglademm-2.4-dev libsdl-dev git-core subversion automake libtool libltdl3-dev build-essential libavcodec-dev libswscale-dev libasound2-dev libsdl-ttf2.0-dev nasm yasm ffmpeg }
Instance Method Summary
collapse
Methods inherited from Base
#checkout_hdviper, #checkout_minisip, #compile!, #compile_process, #define_paths, #define_root_path, #fix_ubuntu_10_04, #make_hdviper, #make_minisip
Instance Method Details
#after_compile ⇒ Object
18
19
20
|
# File 'lib/csd/application/minisip/unix/base.rb', line 18
def after_compile
ldconfig_and_gtkgui
end
|
#before_compile ⇒ Object
13
14
15
16
|
# File 'lib/csd/application/minisip/unix/base.rb', line 13
def before_compile
install_aptitude_dependencies if Options.apt_get
end
|
#fix_aclocal_dirlist ⇒ Object
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/csd/application/minisip/unix/base.rb', line 28
def fix_aclocal_dirlist
return
content = '/usr/local/share/aclocal'
target = Pathname.new('/usr/share/aclocal/dirlist')
unless target.exist? and File.new(target).read == content
begin
File.new(target, 'w').write(content).close
rescue Errno::EACCES => e
say "Please run the following commands with the right permissions.".red.bold
say " sudo rm /usr/share/aclocal/dirlist".green.bold
say " sudo touch /usr/share/aclocal/dirlist".green.bold
say " sudo echo /usr/local/share/aclocal >> /usr/share/aclocal/dirlist".green.bold
exit
end
end
end
|
#install_aptitude_dependencies ⇒ Object
22
23
24
25
26
|
# File 'lib/csd/application/minisip/unix/base.rb', line 22
def install_aptitude_dependencies
DEBIAN_DEPENDENCIES.each do |apt|
Cmd.run("sudo apt-get --yes install #{apt}")
end
end
|
#ldconfig_and_gtkgui ⇒ Object
45
46
47
|
# File 'lib/csd/application/minisip/unix/base.rb', line 45
def ldconfig_and_gtkgui
Cmd.run(Path.build_gtkgui)
end
|