Sha256: e335cb521b64bab1a420ef3e3a72d284ea50482a8d2d1681e1c632dd8af61044
Contents?: true
Size: 930 Bytes
Versions: 2
Compression:
Stored size: 930 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-libarchive-binary-0.4.0.rc1-x64-mingw32 | lib/ffi-libarchive-binary/xz_recipe.rb |
ffi-libarchive-binary-0.4.0.rc1-x64-mingw-ucrt | lib/ffi-libarchive-binary/xz_recipe.rb |