csd 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.17
|
data/csd.gemspec
CHANGED
@@ -47,7 +47,8 @@ module CSD
|
|
47
47
|
if !Options.work_dir and Options.temp and !Options.this_user and Path.work.directory?
|
48
48
|
UI.info "Removing working directory".green.bold
|
49
49
|
UI.debug "MILESTONE: deleting-work-dir"
|
50
|
-
|
50
|
+
# TODO: Make this Windows working
|
51
|
+
Cmd.run "sudo rm -Rf #{Path.work}", :announce_pwd => false
|
51
52
|
end
|
52
53
|
end
|
53
54
|
|
@@ -41,6 +41,7 @@ module CSD
|
|
41
41
|
def remove_ffmpeg
|
42
42
|
ffmpeg_available = Cmd.run('ffmpeg -h', :internal => true, :die_on_failure => false).success?
|
43
43
|
return if Options.ffmpeg_first or !Options.configure or !libraries.include?('libminisip') or !ffmpeg_available
|
44
|
+
UI.debug "MILESTONE: removing_ffmpeg"
|
44
45
|
if Gem::Platform.local.debian?
|
45
46
|
# Note that FFmpeg must have been installed via apt-get or via the AI in order for this to work,
|
46
47
|
# because manual compilations of FFmpeg cannot be removed automatically
|
@@ -49,7 +50,7 @@ module CSD
|
|
49
50
|
Cmd.run "sudo apt-get remove ffmpeg --yes", :announce_pwd => false
|
50
51
|
else
|
51
52
|
# On other linux distributions we don't know how to remove ffmpeg
|
52
|
-
UI.debug "MILESTONE:
|
53
|
+
UI.debug "MILESTONE: cannot_remove_ffmpeg"
|
53
54
|
raise Error::Minisip::Core::FFmpegInstalled, "Please remove ffmpeg from your system first, or run the #{CSD.executable} with --no-configure" unless Options.testmode
|
54
55
|
end
|
55
56
|
end
|
@@ -144,6 +145,7 @@ module CSD
|
|
144
145
|
libraries.each do |library|
|
145
146
|
directory = Pathname.new(File.join(Path.repository, library))
|
146
147
|
if Cmd.cd(directory, :internal => true).success? or Options.reveal
|
148
|
+
UI.debug "MILESTONE: processing_#{library}"
|
147
149
|
UI.info "Processing MiniSIP -> #{library}".green.bold
|
148
150
|
bootstrap
|
149
151
|
configure library
|
@@ -34,7 +34,9 @@ Categories=Application;Internet;Network;Chat;AudioVideo}
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def create_desktop_entry
|
37
|
-
|
37
|
+
# In fact, we would like to update the desktop entry it each time the AI (re-)compiles minisip
|
38
|
+
# So we do not return here now
|
39
|
+
# return if Path.minisip_gnome_pixmap.file? and Path.minisip_desktop_entry.file?
|
38
40
|
UI.info "Installing Gnome menu item".green.bold
|
39
41
|
Cmd.run("sudo cp #{Path.minisip_gnome_png} #{Path.minisip_gnome_pixmap}", :announce_pwd => false)
|
40
42
|
Path.new_desktop_entry = Pathname.new File.join(Path.work, 'minisip.desktop')
|
@@ -32,7 +32,7 @@ class TestMinisip < Test::Unit::TestCase
|
|
32
32
|
assert_equal %w{ libmutil minisip }, Core.libraries
|
33
33
|
end
|
34
34
|
|
35
|
-
context "in theory when compiling" do
|
35
|
+
context "*in theory* when compiling" do
|
36
36
|
|
37
37
|
setup do
|
38
38
|
Options.clear
|
@@ -42,8 +42,11 @@ class TestMinisip < Test::Unit::TestCase
|
|
42
42
|
Options.testmode = true
|
43
43
|
end
|
44
44
|
|
45
|
-
should "by default use
|
45
|
+
should "by default use all minisip compiling options" do
|
46
|
+
assert Options.bootstrap
|
46
47
|
assert Options.configure
|
48
|
+
assert Options.make
|
49
|
+
assert Options.make_install
|
47
50
|
end
|
48
51
|
|
49
52
|
should "know how to checkout the default branch of the source code" do
|
@@ -62,17 +65,22 @@ class TestMinisip < Test::Unit::TestCase
|
|
62
65
|
end
|
63
66
|
|
64
67
|
should "use sudo make install instead of make install by default" do
|
65
|
-
Options.make_install = true
|
66
|
-
Options.force_ffmpeg = true
|
67
68
|
out, err = capture { Core.compile }
|
68
69
|
# TODO: This should be a more strict test
|
69
70
|
assert_match /sudo make install/, out
|
70
71
|
end
|
71
72
|
|
72
|
-
should "" do
|
73
|
-
|
74
|
-
|
73
|
+
should "proclaim that it was called in debug mode" do
|
74
|
+
Options.debug = true
|
75
|
+
out, err = capture { Core.compile }
|
76
|
+
assert_match /Minisip::Component::Core\.compile was called/, out
|
77
|
+
end
|
75
78
|
|
79
|
+
should "remove ffmpeg before compiling minisip" do
|
80
|
+
Options.debug = true
|
81
|
+
out, err = capture { Core.compile }
|
82
|
+
assert_match /MILESTONE: removing_ffmpeg.+MILESTONE: processing_libminisip/m, out
|
83
|
+
assert_no_match /MILESTONE: processing_libminisip.+MILESTONE: removing_ffmpeg/m, out
|
76
84
|
end
|
77
85
|
|
78
86
|
end # context "in theory when compiling"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 17
|
10
|
+
version: 0.1.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Technology Transfer Alliance Team
|