Sha256: 666b3f4650ef27699191c228d1244d72160f737a8826a4e3701fa0592e742462

Contents?: true

Size: 719 Bytes

Versions: 7

Compression:

Stored size: 719 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}"
	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

7 entries across 7 versions & 1 rubygems

Version Path
vips-8.8.3 ext/Rakefile
vips-8.8.2 ext/Rakefile
vips-8.8.0.3 ext/Rakefile
vips-8.8.0.2 ext/Rakefile
vips-8.8.0.1 ext/Rakefile
vips-8.6.3.2 ext/Rakefile
vips-8.7.0.1 ext/Rakefile