gstreamer 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/Rakefile +15 -123
  2. metadata +32 -52
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require './../glib2/lib/gnome2-raketask'
4
- require 'open-uri'
3
+ $LOAD_PATH.unshift("./../glib2/lib")
4
+ require 'gnome2-raketask'
5
5
 
6
6
  package = GNOME2Package.new do |_package|
7
7
  _package.summary = "Ruby/GStreamer is a Ruby binding for GStreamer."
@@ -9,36 +9,11 @@ package = GNOME2Package.new do |_package|
9
9
  _package.dependency.gem.runtime = ["glib2"]
10
10
  _package.win32.packages = ["libsoup"]
11
11
  _package.win32.dependencies = ["jpeg", "libxml2"]
12
- _package.post_install_message = "This library is experimental."
13
- _package.cross_compiling do |spec|
14
- if /mingw|mswin/ =~ spec.platform.to_s
15
- spec.add_runtime_dependency("cairo", ">= 1.10.1")
16
- spec.add_runtime_dependency("pango", ">= #{_package.version}")
17
- spec.add_runtime_dependency("gdk_pixbuf2", ">= #{_package.version}")
18
- end
19
- end
20
- end
21
- package.define_tasks
22
-
23
- namespace :win32 do
24
- host = "i686-w64-mingw32"
25
-
26
- dist_dir = Pathname.new("vendor/local").expand_path
27
- license_dir = dist_dir + "share" + "license"
28
- tmp_dir = Pathname.new("tmp").expand_path
29
- download_dir = tmp_dir + "download"
30
- patch_dir = (Pathname.new(__FILE__).dirname + "patches").expand_path
31
-
32
- rcairo_win32_path = ENV["RCAIRO_WIN32_PATH"] || "../../rcairo.win32"
33
- rcairo_win32_path = File.expand_path(rcairo_win32_path)
34
- rcairo_win32_include_path = "#{rcairo_win32_path}/vendor/local/include"
35
- rcairo_win32_lib_path = "#{rcairo_win32_path}/vendor/local/lib"
36
-
37
12
  xiph_download_url_base = "http://downloads.xiph.org/releases"
38
13
  freedesktop_download_url_base = "http://gstreamer.freedesktop.org/src"
39
14
  sf_net_download_url_base = "http://downloads.sourceforge.net/project"
40
15
  libmad_version = "0.15.1b"
41
- packages = [
16
+ _package.win32.build_packages = [
42
17
  {
43
18
  :name => "libogg",
44
19
  :download_base_url => "#{xiph_download_url_base}/ogg",
@@ -104,7 +79,7 @@ namespace :win32 do
104
79
  :download_base_url => "#{freedesktop_download_url_base}/gst-plugins-good",
105
80
  :label => "GStreamer plugins (good)",
106
81
  :version => "0.10.30",
107
- :configure_args => ["--disable-gconf"],
82
+ :configure_args => ["--disable-gconf", "--disable-shout2"],
108
83
  },
109
84
  {
110
85
  :name => "gst-plugins-bad",
@@ -126,7 +101,7 @@ namespace :win32 do
126
101
  :label => "GStreamer ffmpeg",
127
102
  :version => "0.10.12",
128
103
  :configure_args => ["--with-ffmpeg-extra-configure=" +
129
- "--cross-prefix=#{host}- " +
104
+ "--cross-prefix=#{_package.win32.build_host}- " +
130
105
  "--target-os=mingw32 " +
131
106
  "--arch=i686 " +
132
107
  "--pkg-config=pkg-config"],
@@ -141,99 +116,16 @@ namespace :win32 do
141
116
  ],
142
117
  },
143
118
  ]
144
-
145
- namespace :download do
146
- packages.each do |_package|
147
- base = "#{_package[:name]}-#{_package[:version]}"
148
- tar_gz = "#{base}.tar.gz"
149
- tar_gz_url = "#{_package[:download_base_url]}/#{tar_gz}"
150
- tar_gz_full_path = download_dir + tar_gz
151
-
152
- desc "Download #{_package[:label]} into #{download_dir}."
153
- task _package[:name] => tar_gz_full_path.to_s
154
-
155
- directory_path = tar_gz_full_path.dirname
156
- directory directory_path.to_s
157
- file tar_gz_full_path.to_s => directory_path.to_s do
158
- rake_output_message "downloading... #{tar_gz_url}"
159
- open(tar_gz_url) do |downloaded_tar_gz|
160
- tar_gz_full_path.open("wb") do |tar_gz_file|
161
- tar_gz_file.print(downloaded_tar_gz.read)
162
- end
163
- end
164
- end
165
- end
166
- end
167
-
168
- namespace :build do
169
- task :prepare do
170
- depended_packages = ["glib2", "atk", "pango", "gdk_pixbuf2", "gtk2"]
171
- pkg_config_path = (["gstreamer"] + depended_packages).collect do |_package|
172
- "../#{_package}/vendor/local/lib/pkgconfig"
173
- end
174
- ENV["PKG_CONFIG_PATH"] = pkg_config_path.collect do |path|
175
- File.expand_path(path)
176
- end.join(":")
177
- ENV["PKG_CONFIG_LIBDIR"] = "#{rcairo_win32_path}/vendor/local/lib/pkgconfig"
178
- end
179
-
180
- packages.each do |_package|
181
- desc "Build #{_package[:label]} and install it into #{dist_dir}."
182
- task _package[:name] => [:prepare, "win32:download:#{_package[:name]}"] do
183
- package_tmp_dir = tmp_dir + _package[:name]
184
- rm_rf(package_tmp_dir)
185
- mkdir_p(package_tmp_dir)
186
-
187
- base = "#{_package[:name]}-#{_package[:version]}"
188
- tar_gz = "#{base}.tar.gz"
189
- tar_gz_full_path = download_dir + tar_gz
190
- Dir.chdir(package_tmp_dir.to_s) do
191
- sh("tar", "xzf", tar_gz_full_path.to_s) or exit(false)
192
- end
193
-
194
- Dir.chdir((package_tmp_dir + base).to_s) do
195
- (_package[:patches] || []).each do |patch|
196
- sh("patch -p1 < #{patch_dir}/#{patch}")
197
- end
198
- sh("./autogen.sh") if _package[:need_autogen]
199
- sh("autoreconf -i") if _package[:need_autoreconf]
200
- sh("./configure",
201
- "CPPFLAGS=-I#{rcairo_win32_include_path} -I#{dist_dir + 'include'}",
202
- "LDFLAGS=-L#{rcairo_win32_lib_path} -L#{dist_dir + 'lib'}",
203
- "--prefix=#{dist_dir}",
204
- "--host=#{host}",
205
- *_package[:configure_args]) or exit(false)
206
- common_make_args = []
207
- common_make_args << "GLIB_COMPILE_SCHEMAS=glib-compile-schemas"
208
- build_make_args = common_make_args.dup
209
- install_make_args = common_make_args.dup
210
- make_n_jobs = ENV["MAKE_N_JOBS"]
211
- build_make_args << "-j#{make_n_jobs}" if make_n_jobs
212
- ENV["GREP_OPTIONS"] = "--text"
213
- sh("nice", "make", *build_make_args) or exit(false)
214
- sh("make", "install", *install_make_args) or exit(false)
215
-
216
- package_license_dir = license_dir + _package[:name]
217
- mkdir_p(package_license_dir)
218
- package_license_files = ["AUTHORS", "COPYING", "COPYING.LIB"]
219
- package_license_files = package_license_files.reject do |file|
220
- not File.exist?(file)
221
- end
222
- cp(package_license_files, package_license_dir)
223
- bundled_packages = _package[:bundled_packages] || []
224
- bundled_packages.each do |bundled_package|
225
- bundled_package_license_dir = license_dir + bundled_package[:name]
226
- mkdir_p(bundled_package_license_dir)
227
- license_files = bundled_package[:license_files].collect do |file|
228
- File.join(bundled_package[:path], file)
229
- end
230
- cp(license_files, bundled_package_license_dir)
231
- end
232
- end
233
- end
119
+ _package.win32.build_dependencies = [
120
+ "glib2", "atk", "pango", "gdk_pixbuf2", "gtk2",
121
+ ]
122
+ _package.post_install_message = "This library is experimental."
123
+ _package.cross_compiling do |spec|
124
+ if /mingw|mswin/ =~ spec.platform.to_s
125
+ spec.add_runtime_dependency("cairo", ">= 1.10.1")
126
+ spec.add_runtime_dependency("pango", ">= #{_package.version}")
127
+ spec.add_runtime_dependency("gdk_pixbuf2", ">= #{_package.version}")
234
128
  end
235
129
  end
236
-
237
- desc "Build GStreamer binaries"
238
- task :build => packages.collect {|_package| "win32:build:#{_package[:name]}"}
239
130
  end
131
+ package.define_tasks
metadata CHANGED
@@ -1,47 +1,39 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gstreamer
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.5
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 4
10
- version: 1.1.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - The Ruby-GNOME2 Project Team
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-07-21 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-08-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: glib2
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 27
29
- segments:
30
- - 1
31
- - 1
32
- - 4
33
- version: 1.1.4
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.1.5
34
22
  type: :runtime
35
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.1.5
36
30
  description: Ruby/GStreamer is a Ruby binding for GStreamer.
37
31
  email: ruby-gnome2-devel-en@lists.sourceforge.net
38
32
  executables: []
39
-
40
- extensions:
33
+ extensions:
41
34
  - ext/gstreamer/extconf.rb
42
35
  extra_rdoc_files: []
43
-
44
- files:
36
+ files:
45
37
  - README
46
38
  - Rakefile
47
39
  - extconf.rb
@@ -128,38 +120,26 @@ files:
128
120
  - test/test_static_pad_template.rb
129
121
  homepage: http://ruby-gnome2.sourceforge.jp/
130
122
  licenses: []
131
-
132
123
  post_install_message: This library is experimental.
133
124
  rdoc_options: []
134
-
135
- require_paths:
125
+ require_paths:
136
126
  - lib
137
- required_ruby_version: !ruby/object:Gem::Requirement
127
+ required_ruby_version: !ruby/object:Gem::Requirement
138
128
  none: false
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- hash: 61
143
- segments:
144
- - 1
145
- - 8
146
- - 5
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
147
132
  version: 1.8.5
148
- required_rubygems_version: !ruby/object:Gem::Requirement
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
134
  none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 0
156
- version: "0"
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
157
139
  requirements: []
158
-
159
140
  rubyforge_project:
160
- rubygems_version: 1.8.24
141
+ rubygems_version: 1.8.23
161
142
  signing_key:
162
143
  specification_version: 3
163
144
  summary: Ruby/GStreamer is a Ruby binding for GStreamer.
164
145
  test_files: []
165
-