Sha256: dac3c8a75aa8b94f60cab2a9c7a2520a66c5b87d448c9a40114a0d445c98849e
Contents?: true
Size: 889 Bytes
Versions: 5
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true require_relative "base_recipe" module LibarchiveBinary class XZRecipe < BaseRecipe def initialize super("xz") @target = ROOT.join(@target).to_s end def configure_defaults [ "--host=#{@host}", "--disable-doc", "--disable-xz", "--with-pic", "--disable-xzdec", "--disable-lzmadec", "--disable-lzmainfo", "--disable-scripts", "--disable-shared", "--enable-static" ] 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
5 entries across 5 versions & 1 rubygems