Sha256: f4b2d7cc209b327ef5111aace878a50d9b8383216c4f1705b69d8eec9767d0ba
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true require_relative "base_recipe" module LibarchiveBinary class LibexpatRecipe < BaseRecipe ROOT = Pathname.new(File.expand_path("../..", __dir__)) def initialize super("libexpat", "2.4.9") @files << { url: "https://github.com/libexpat/libexpat/releases/download/R_2_4_9/expat-2.4.9.tar.gz", sha256: "4415710268555b32c4e5ab06a583bea9fec8ff89333b218b70b43d4ca10e38fa", } @target = ROOT.join(@target).to_s end def configure_defaults [ "--host=#{@host}", "--disable-shared", "--enable-static", "--without-tests", "--without-examples" ] end def configure cmd = ["env", cflags(host), ldflags(host), "./configure"] + computed_options execute("configure", cmd) end def checkpoint File.join(@target, "#{name}-#{version}-#{host}.installed") end def cook_if_not cook unless File.exist?(checkpoint) end def cook super FileUtils.touch(checkpoint) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-libarchive-binary-0.3.0-x64-mingw32 | lib/ffi-libarchive-binary/libexpat_recipe.rb |
ffi-libarchive-binary-0.3.0-x64-mingw-ucrt | lib/ffi-libarchive-binary/libexpat_recipe.rb |