Skip to content

Commit

Permalink
rake vendor: use git to download taglib
Browse files Browse the repository at this point in the history
This will help with the switch to TagLib 2 because that version has a
dependency in a Git submodule.
  • Loading branch information
jacobvosmaer committed Apr 11, 2024
1 parent 15e6ec1 commit b77c279
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
4 changes: 0 additions & 4 deletions tasks/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ def source
"#{tmp}/#{dir}"
end

def tarball
"#{source}.tar.gz"
end

def tmp_arch
"#{tmp}/#{plat}"
end
Expand Down
17 changes: 4 additions & 13 deletions tasks/ext.rake
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,8 @@ directory Build.install_dir
directory Build.build_dir
directory Build.tmp

file Build.source => [Build.tarball] do
chdir Build.tmp do
sh "tar xzf #{Build.tarball}"
end
end

file Build.tarball => [Build.tmp] do |t|
require 'open-uri'
puts "Downloading #{taglib_url}"

File.open(t.name, 'wb') do |f|
IO.copy_stream(URI.open(taglib_url), f)
end
file Build.source do
sh "git clone --depth=1 --branch=v#{Build.version} https://github.com/taglib/taglib.git #{Build.source}"
sh "git -C #{Build.source} submodule init"
sh "git -C #{Build.source} submodule update --depth=1"
end

0 comments on commit b77c279

Please sign in to comment.