class RBT::Cookbooks::RawCookbook
Constants
- DIRECTORY_EXPANDED_COOKBOOKS
#¶ ↑
DIRECTORY_EXPANDED_COOKBOOKS
¶ ↑#¶ ↑
Public Class Methods
[](i = ARGV)
click to toggle source
new( commandline_arguments = nil, run_already = true ) { || ... }
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 49 def initialize( commandline_arguments = nil, run_already = true, &block ) reset set_commandline_arguments( commandline_arguments ) # ======================================================================= # # === Handle blocks next # ======================================================================= # if block_given? yielded = yield case yielded # ===================================================================== # # === :simple # ===================================================================== # when :simple, :simple_cookbook set_load_what(:simple_cookbook) # ===================================================================== # # === :use_expanded_dataset # # This variant is significantly faster than the :simple variant. # ===================================================================== # when :use_expanded_dataset, :fast, :complex set_complex # ===================================================================== # # === :be_quiet_if_the_file_was_not_found # ===================================================================== # when :be_quiet_if_the_file_was_not_found @be_quiet_if_the_file_was_not_found = true end end run if run_already end
Public Instance Methods
apply_patch?()
click to toggle source
#¶ ↑
apply_patch?¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 351 def apply_patch? obtain(__method__.to_s.delete('?')) end
Also aliased as: set_apply_patch?
archive_size?()
click to toggle source
archive_type?()
click to toggle source
autosymlink_lib64?()
click to toggle source
base_dir?()
click to toggle source
binaries?()
click to toggle source
blfs?()
click to toggle source
build_static?()
click to toggle source
can_be_compiled_statically?()
click to toggle source
cmake_configure_options?()
click to toggle source
configure_base_dir?()
click to toggle source
configure_command_to_use?()
click to toggle source
configure_options?()
click to toggle source
configure_options_explained?()
click to toggle source
cookbook_file?()
click to toggle source
#¶ ↑
cookbook_file?¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 865 def cookbook_file? @internal_hash[:cookbook_file] end
Also aliased as: yaml_file?, file?
copy_source?()
click to toggle source
dataset?()
click to toggle source
description?()
click to toggle source
do_not_download?()
click to toggle source
do_not_symlink?()
click to toggle source
echo_yes?()
click to toggle source
enable_static?()
click to toggle source
extra_information?()
click to toggle source
extract_to?()
click to toggle source
find( for_this_program = first_argument? )
click to toggle source
flatpak_url?()
click to toggle source
gir_files?()
click to toggle source
git_url?()
click to toggle source
github?()
click to toggle source
has_key?(i)
click to toggle source
has_to_be_compiled?()
click to toggle source
headers?()
click to toggle source
homepage?()
click to toggle source
installation_steps?()
click to toggle source
is_an_active_project?()
click to toggle source
is_the_program_included?()
click to toggle source
keep_extracted?()
click to toggle source
last_update?()
click to toggle source
libexec?()
click to toggle source
libraries?()
click to toggle source
licence?()
click to toggle source
load_up_the_dataset( for_this_program = first_argument? )
click to toggle source
#¶ ↑
load_up_the_dataset
¶ ↑
This method will load the dataset from the .yml file.
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 912 def load_up_the_dataset( for_this_program = first_argument? ) unless for_this_program.is_a? String for_this_program = for_this_program.to_s end # ======================================================================= # # End early here if the program is not included. # ======================================================================= # return unless ::RBT.is_this_program_included?(for_this_program) original_name = for_this_program.dup case load_what? # ======================================================================= # # === :simple_cookbook # # This refers to the unsanitized cookbook-dataset. # ======================================================================= # when :simple_cookbook, :default, :simple _ = RBT.cookbook_directory?+ for_this_program.to_s # ======================================================================= # # === :expanded_cookbook # # This is also known as :complex. # ======================================================================= # when :expanded_cookbook, :complex _ = ::RBT.directory_expanded_cookbooks?+ for_this_program.to_s end _ = _.dup _ << '.yml' unless _.end_with?('.yml') or _.empty? # ======================================================================= # # The file exists, so we continue here. # ======================================================================= # if File.exist? _ the_program_is_included @internal_hash[:cookbook_file] = _ require 'rbt/checks_and_validations/check_for_invalid_entries_in_this_cookbook.rb' if RBT.does_this_yaml_file_have_two_url1_entries?(cookbook_file?) opne 'Please fix the above issue first before we can continue here.' exit end # ===================================================================== # # Next, load the yaml file. # ===================================================================== # yaml_dataset = load_yaml(cookbook_file?) if dataset?.frozen? @internal_hash[:dataset] = @internal_hash[:dataset].dup end if yaml_dataset.nil? e "No value found for the file #{sfile(cookbook_file?)}." end @internal_hash[:dataset].update(yaml_dataset) if yaml_dataset if @internal_hash[:dataset].has_key?(original_name) and # Sync it down one level in this case. !@internal_hash[:dataset].has_value?(original_name) # =================================================================== # # Note that this will fail for "sed" because it may have an entry # called sed. :D # This explains the above ! check in use. # =================================================================== # @internal_hash[:dataset] = @internal_hash[:dataset][original_name] end @internal_hash[:dataset].freeze else the_program_is_not_included unless @be_quiet_if_the_file_was_not_found no_file_exists_at(_) end end return @internal_hash[:dataset] # Always return the dataset as-is. end
load_what?()
click to toggle source
#¶ ↑
load_what?¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 215 def load_what? @internal_hash[:load_what] end
Also aliased as: mode?
localstatedir?()
click to toggle source
m4_files?()
click to toggle source
maintainer?()
click to toggle source
manual_steps?()
click to toggle source
may_we_modify_the_configure_options?()
click to toggle source
md5sum?()
click to toggle source
meson_configure_options?()
click to toggle source
mirror?()
click to toggle source
modify_the_makefile?()
click to toggle source
obtain(i)
click to toggle source
#¶ ↑
obtain (obtain tag)¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 1016 def obtain(i) result = nil dataset = dataset? if dataset string_key = i.to_s # ===================================================================== # # First, we try to query the main Hash via string-key. # ===================================================================== # if dataset.has_key? string_key result = dataset[i] elsif dataset.has_key? string_key.to_sym result = dataset[string_key.to_sym] else # e 'The key is not available: '+i.to_s end return result end end
optional_start_message?()
click to toggle source
override?()
click to toggle source
parameters_to_make?()
click to toggle source
pkgconfig_files?()
click to toggle source
postinstall?()
click to toggle source
pre_configure_steps?()
click to toggle source
pre_make_commands?()
click to toggle source
pre_make_install_sed?()
click to toggle source
prefix?()
click to toggle source
preinstall?()
click to toggle source
program_name?()
click to toggle source
program_name_and_program_version?()
click to toggle source
program_path?()
click to toggle source
program_version?()
click to toggle source
rating?()
click to toggle source
recommended_deps_on?()
click to toggle source
required_deps_on?()
click to toggle source
#¶ ↑
required_deps_on?¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 266 def required_deps_on? obtain(__method__.to_s.delete('?')) end
Also aliased as: deps?, deps?, required_dependencies_on?
reset()
click to toggle source
reset_the_internal_variables()
click to toggle source
#¶ ↑
reset_the_internal_variables
¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 100 def reset_the_internal_variables # ======================================================================= # # === :dataset # # We will store all data into the following variable. The data # comes from a .yml file typically. # # Initialize the variable to an empty Hash. # ======================================================================= # @internal_hash[:dataset] = {} # ======================================================================= # # === :cookbook_file # # This variable will store from which location the dataset was read. # ======================================================================= # @internal_hash[:cookbook_file] = nil # ======================================================================= # # === :load_what # # The next variable will determine whether we will load from the # expanded cookbook-dataset or from a raw, simple .yml file. The # latter may contain less data. Ideally we should load from the # expanded_cookbook if possible and available. # # The two allowed states for the variable are: # # :simple_cookbook # :expanded_cookbook # # ======================================================================= # @internal_hash[:load_what] = :simple_cookbook # @internal_hash[:load_what] = :expanded_cookbook # ======================================================================= # # === @be_quiet_if_the_file_was_not_found # ======================================================================= # @be_quiet_if_the_file_was_not_found = false # ======================================================================= # # === :is_the_program_included # ======================================================================= # @internal_hash[:is_the_program_included] = false end
reset_the_main_hash()
click to toggle source
ruby_premake_commands?()
click to toggle source
run()
click to toggle source
run_configure?()
click to toggle source
run_ldconfig?()
click to toggle source
run_make?()
click to toggle source
run_make_check?()
click to toggle source
sed?()
click to toggle source
set_complex()
click to toggle source
set_env_variables?()
click to toggle source
set_load_what( i = :expanded_cookbook )
click to toggle source
#¶ ↑
set_load_what
¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 173 def set_load_what( i = :expanded_cookbook ) @internal_hash[:load_what] = i end
Also aliased as: set_mode
short_description?()
click to toggle source
#¶ ↑
short_description?¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 400 def short_description? obtain(__method__.to_s.delete('?')) end
Also aliased as: short_desc?
short_name?()
click to toggle source
show_help()
click to toggle source
sub_dir?()
click to toggle source
svn_url?()
click to toggle source
symlink_glib_schema?()
click to toggle source
symlink_headers?()
click to toggle source
symlink_pkgconfig_files?()
click to toggle source
the_program_is_included()
click to toggle source
the_program_is_not_included()
click to toggle source
toggle_the_state( i = load_what? )
click to toggle source
#¶ ↑
toggle_the_state
(toggle tag)¶ ↑
#¶ ↑
# File lib/rbt/cookbooks/raw_cookbook/raw_cookbook.rb, line 222 def toggle_the_state( i = load_what? ) case i # === :expanded_cookbook when :expanded_cookbook @internal_hash[:load_what] = :simple_cookbook else @internal_hash[:load_what] = :expanded_cookbook end end
Also aliased as: toggle
url1?()
click to toggle source
url2?()
click to toggle source
url3?()
click to toggle source
url4?()
click to toggle source
url5?()
click to toggle source
use_autoconf?()
click to toggle source
use_autogen?()
click to toggle source
use_build_directory?()
click to toggle source
use_glib_schema?()
click to toggle source
use_this_build_directory?()
click to toggle source
use_this_build_system?()
click to toggle source
use_this_make_command?()
click to toggle source
use_this_make_install_command?()
click to toggle source
use_this_program_name?()
click to toggle source
use_this_program_name_on_gobolinux?()
click to toggle source
wikipedia?()
click to toggle source