Skip to content

Commit de92ab5

Browse files
authored
Merge pull request #142 from robinst/jv-taglib-git
rake vendor: use git to download taglib
2 parents 15e6ec1 + b77c279 commit de92ab5

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

tasks/build.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ def source
2222
"#{tmp}/#{dir}"
2323
end
2424

25-
def tarball
26-
"#{source}.tar.gz"
27-
end
28-
2925
def tmp_arch
3026
"#{tmp}/#{plat}"
3127
end

tasks/ext.rake

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,8 @@ directory Build.install_dir
9393
directory Build.build_dir
9494
directory Build.tmp
9595

96-
file Build.source => [Build.tarball] do
97-
chdir Build.tmp do
98-
sh "tar xzf #{Build.tarball}"
99-
end
100-
end
101-
102-
file Build.tarball => [Build.tmp] do |t|
103-
require 'open-uri'
104-
puts "Downloading #{taglib_url}"
105-
106-
File.open(t.name, 'wb') do |f|
107-
IO.copy_stream(URI.open(taglib_url), f)
108-
end
96+
file Build.source do
97+
sh "git clone --depth=1 --branch=v#{Build.version} https://github.com/taglib/taglib.git #{Build.source}"
98+
sh "git -C #{Build.source} submodule init"
99+
sh "git -C #{Build.source} submodule update --depth=1"
109100
end

0 commit comments

Comments
 (0)