Sha256: a0fda7d07a13097c3f8b9770afb8cbd9de1625ae490bf2c2b71e688243400797
Contents?: true
Size: 737 Bytes
Versions: 6
Compression:
Stored size: 737 Bytes
Contents
require_relative '../lib/vips/version' version = Vips::VERSION[/\d+\.\d+\.\d+/] archive_path = "vips-#{version}.tar.gz" source_path = "vips-#{version}" prefix = ENV['PREFIX'] || File.dirname(__dir__) task :fetch do url = "https://github.com/libvips/libvips/releases/download/v#{version}/#{archive_path}" unless File.exist? archive_path sh "wget #{url} -O #{archive_path}" end end task :extract do unless File.exist? source_path sh "tar -xvf #{archive_path}" end end task :build do Dir.chdir source_path do sh "./configure --prefix=#{prefix} --exec-prefix=#{prefix}" sh "make install" end end task :clean do FileUtils.rm_rf archive_path FileUtils.rm_rf source_path end task :default => [:fetch, :extract, :build]
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
vips-8.12.2 | ext/Rakefile |
vips-8.12.1 | ext/Rakefile |
vips-8.11.3 | ext/Rakefile |
vips-8.10.5 | ext/Rakefile |
vips-8.9.1 | ext/Rakefile |
vips-8.8.4 | ext/Rakefile |