rbt 0.16.14 → 0.16.15

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rbt might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d68b8e42329fbaeddd1975b0517ed3c6536d129e16d03ef1fbb05de575fa70f
4
- data.tar.gz: b0d4756fca9cb94a742b298c70e4bc94b5ec8b02667e6ea4752ee84ecf725bfa
3
+ metadata.gz: 650fe74758b23b34d56386d771c4f553acd3be566ca41532fd6406129fff3610
4
+ data.tar.gz: ee17ad81a638b5f0d5dfdf5fb497fb14fb510c7c2b1588c03896ce39f580e07b
5
5
  SHA512:
6
- metadata.gz: 7232181835ccc0e708f15f4ed072a39f39284fa7ac67a853190b2072f3ef0298c87aae3faa4082e426122d9253aee1429d07796ba9d571554101956b9d0c5667
7
- data.tar.gz: 3160f3f569c3228bf5d42032a4028a418a4237797077e72e99b333f2938ffd8f9a776401534a882ed2680ab165a3ae39f74dc6c2636e8e0100120e4335f58273
6
+ metadata.gz: c371c9a20d8573e217b3a03095d5ea58b1b3c527c27f68412592f73e8755656318ed03235dc6c89eac0dd9834b806eb42d1815c3e60a6a6122ae321e8e3552d2
7
+ data.tar.gz: 92850591bc2a12399f7c9fd5c6937e37524e95ab9ee2b4d4f8084c1e31f205ce4dff8837b5a610328508160407774fb1b2e36bbfd1fff24aa67fb6c8bebb3f3e
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![forthebadge](https://forthebadge.com/images/badges/made-with-ruby.svg)](https://www.ruby-lang.org/en/)
6
6
  [![Gem Version](https://badge.fury.io/rb/rbt.svg)](https://badge.fury.io/rb/rbt)
7
7
 
8
- This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">03.04.2024</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">06:07:40</span> o'clock.
8
+ This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">03.04.2024</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">08:43:26</span> o'clock.
9
9
 
10
10
  ## Introduction to the "Ruby Build Tools" Project (RBT)
11
11
 
@@ -11141,7 +11141,7 @@ caribou 0.4.20 16 February 2016 http://ftp.gnome.org/pub
11141
11141
  castlecombat 0.8.1 28 July 2016 http://prdownloads.sourceforge.net/castle-combat/castle-combat-0.8.1.tar.gz
11142
11142
  caxlsx 3.2.0 27 May 2022 https://rubygems.org/downloads/caxlsx-3.2.0.gem
11143
11143
  cbase 1.3.7 28 September 2019 http://www.hyperrealm.com/packages/cbase-1.3.7.tar.gz
11144
- cbindgen 0.24.3 11 September 2022 https://github.com/eqrion/cbindgen/archive/v0.24.3/cbindgen-0.24.3.tar.gz
11144
+ cbindgen 0.26.0 11 September 2022 https://github.com/mozilla/cbindgen/archive/refs/tags/0.26.0.tar.gz
11145
11145
  ccache 4.8.2 14 June 2023 https://github.com/ccache/ccache/releases/download/v4.8.2/ccache-4.8.2.tar.gz
11146
11146
  ccaudio2 2.2.0 19 March 2019 http://ftp.gnu.org/pub/gnu/ccaudio/ccaudio2-2.2.0.tar.gz
11147
11147
  ccmath 2.2.1 01 June 2014 http://www.ibiblio.org/pub/Linux/libs/ccmath-2.2.1.tar.gz
@@ -13697,7 +13697,7 @@ qqc2desktopstyle 5.115.0 20 February 2024 https://download.kde.org
13697
13697
  qqwing 1.3.4 09 August 2015 https://github.com/stephenostermiller/qqwing/archive/v1.3.4.zip
13698
13698
  qrencode 4.1.1 22 December 2021 https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.bz2
13699
13699
  qsynth 0.5.5 16 March 2019 https://downloads.sourceforge.net/qsynth/qsynth-0.5.5.tar.gz
13700
- qt 6.6.3 25 March 2024 https://download.qt-project.org/official_releases/qt/6.5/6.5.0/single/qt-everywhere-6.5.0.tar.xz
13700
+ qt 6.6.3 02 April 2024 https://download.qt-project.org/official_releases/qt/6.7/6.7.0/single/qt-everywhere-6.7.0.tar.xz
13701
13701
  qterminal 1.1.0 30 August 2022 https://github.com/lxqt/qterminal/releases/download/1.1.0/qterminal-1.1.0.tar.xz
13702
13702
  qtermwidget 1.4.0 02 February 2024 https://github.com/lxqt/qtermwidget/releases/download/1.4.0/qtermwidget-1.4.0.tar.xz
13703
13703
  qtgstreamer 1.2.0 10 July 2015 http://gstreamer.freedesktop.org/src/qt-gstreamer/qt-gstreamer-1.2.0.tar.xz
@@ -14334,7 +14334,7 @@ wlassistant 0.5.7 01 May 2014 http://wlassistant.sourcefor
14334
14334
  wmctrl 1.07 01 May 2014 http://www.sweb.cz/tripie/utils/wmctrl/dist/wmctrl-1.07.tar.gz
14335
14335
  wmii 3 01 May 2014 http://www.suckless.org/snaps/wmii-20071003.tgz
14336
14336
  woff2 1.0.2 22 December 2021 https://github.com/google/woff2/archive/v1.0.2/woff2-1.0.2.tar.gz
14337
- wordpress 5.9.1 23 February 2022 https://wordpress.org/wordpress-5.9.1.tar.gz
14337
+ wordpress 6.5 03 April 2024 https://wordpress.org/wordpress-6.5.tar.gz
14338
14338
  worker 4.7.0 10 March 2021 http://www.boomerangsworld.de/cms/worker/downloads/worker-4.7.0.tar.bz2
14339
14339
  wpasupplicant 2.10 11 October 2022 https://w1.fi/releases/wpa_supplicant-2.10.tar.gz
14340
14340
  wpebackendfdo 1.14.2 03 April 2023 https://wpewebkit.org/releases/wpebackend-fdo-1.14.2.tar.xz
@@ -1,18 +1,6 @@
1
1
  --------------------------------------------------------------------------------
2
- (1) Expand RBT.action() until we have listed ALL actions there.
3
- Evaluate at some point in the future when this will be
4
- achieved.
5
- ^^^ continue here. All bin/ files are now executable, since as
6
- of September 2022. But we probably should add even more
7
- actions here, in particular several troublemaking
8
- steps within RBT::Compile.
9
- Then also look at menu.rb of class RBT::Compile to see which
10
- individual tasks can be made "actionable" still.
11
- Once that is all done, perhaps in 2023 or so,
12
- remove this todo entry here.
13
- Ok, bin/ is now complete, we must go through menu() still
14
- and see.
15
- ^^^ we are doing this RIGHT NOW.
2
+ (1) always work on an Array for compiling something in RBT.
3
+ ^^^
16
4
  --------------------------------------------------------------------------------
17
5
  (2) → Handle these commandline instructions, which originated from the old
18
6
  class RBT::Commandline but are not yet completely ported:
@@ -4260,11 +4260,6 @@ class SanitizeCookbook < RBT::Action # === RBT::Action::Cookbooks::SanitizeCookb
4260
4260
  when /^program(-|_| )?name(-|_| )?and(-|_| )?program(-|_| )?version\??$/i
4261
4261
  program_name_and_program_version?
4262
4262
  # ======================================================================= #
4263
- # === extract_to?
4264
- # ======================================================================= #
4265
- when /^extract(-|_| )?to\??$/i
4266
- extract_to?
4267
- # ======================================================================= #
4268
4263
  # === "Build system to be used:"
4269
4264
  # ======================================================================= #
4270
4265
  when /^Build(-|_| )?system(-|_| )?to(-|_| )?be(-|_| )?used$/i
@@ -4280,6 +4275,12 @@ class SanitizeCookbook < RBT::Action # === RBT::Action::Cookbooks::SanitizeCookb
4280
4275
  when /^URL(-|_| )?to(-|_| )?the(-|_| )?source(-|_| )?archive$/i
4281
4276
  url_to_the_source_archive?
4282
4277
  # ======================================================================= #
4278
+ # === extract_to?
4279
+ # ======================================================================= #
4280
+ when /^extract(-|_| )?to\??$/i,
4281
+ /^extract(-|_| )?to(-|_| )?which(-|_| )?directory\??$/i
4282
+ extract_to?
4283
+ # ======================================================================= #
4283
4284
  # === "Keep the archive extracted"
4284
4285
  # ======================================================================= #
4285
4286
  when /^Keep(-|_| )?the(-|_| )?archive(-|_| )?extracted$/i
@@ -1,33 +1,5 @@
1
1
  class OBSOLETE
2
2
 
3
- def invoke_extracter
4
- # ===================================================================== #
5
- # Remove the extracted directory if it exists next. This will,
6
- # however had, NOT be done if we extract to another target
7
- # directory, such as when issuing a command like
8
- # "ry htop --extract-to=/opt/test".
9
- #^^^^ this must be ported still.
10
- # ===================================================================== #
11
- # possibly_existing_old_extracted_archive = cookbooks_dataset_extracted_towards?
12
- # unless possibly_existing_old_extracted_archive.include? extract_to?
13
-
14
- # =================================================================== #
15
- # In this case we reasonably assume that the user has NOT given a
16
- # --extract-to value.
17
- #
18
- # Keep in mind that the user may specify another temp-directory,
19
- # which explains the check for user-input.
20
- # =================================================================== #
21
- if cookbooks_for? and !keep_the_old_directory_if_it_exists
22
- _ = will_be_extracted_towards?
23
- if @internal_hash.has_key?(:extract_to_this_directory_as_specified_by_the_user) and
24
- @internal_hash[:extract_to_this_directory_as_specified_by_the_user]
25
- _ = @internal_hash[:extract_to_this_directory_as_specified_by_the_user]
26
- end
27
- # end
28
- end
29
- end
30
-
31
3
  # ========================================================================= #
32
4
  # === run_system_or_ioparser_command (iopen tag)
33
5
  #
@@ -12,6 +12,67 @@ class Action
12
12
 
13
13
  class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
14
14
 
15
+ # ========================================================================== #
16
+ # === query_configuration_options
17
+ #
18
+ # This method will query the configuration option of a given program.
19
+ #
20
+ # Invocation example:
21
+ #
22
+ # ry glibc qco
23
+ #
24
+ # ========================================================================== #
25
+ def query_configuration_options(
26
+ i = compile_this_program?
27
+ )
28
+ action(:show_configuration_options, i)
29
+ exit_program
30
+ end
31
+
32
+ # ========================================================================== #
33
+ # === check_for_available_versions
34
+ #
35
+ # Use this method if you wish to check for available program versions.
36
+ #
37
+ # Usage examples:
38
+ #
39
+ # ry bluefish available_versions
40
+ # ry gcc available_versions
41
+ #
42
+ # ========================================================================== #
43
+ def check_for_available_versions(
44
+ for_this_program = program?
45
+ )
46
+ action(:CheckForAvailableVersions, for_this_program) { :be_verbose }
47
+ end
48
+
49
+ # ========================================================================== #
50
+ # === search_for_tag (search tag)
51
+ #
52
+ # Use this to search for a tag.
53
+ #
54
+ # Usage examples:
55
+ #
56
+ # ry htop --tags pdf
57
+ # ry htop --tags term
58
+ #
59
+ # ========================================================================== #
60
+ def search_for_tag(
61
+ this_tag,
62
+ shall_we_exit = true
63
+ )
64
+ results = action(:SearchForTags, this_tag)
65
+ exit_program if shall_we_exit
66
+ return results
67
+ end
68
+
69
+ # ========================================================================== #
70
+ # === batch_validate_the_cookbooks
71
+ # ========================================================================== #
72
+ def batch_validate_the_cookbooks
73
+ action(:BatchValidateTheCookbookRecipes)
74
+ end
75
+
15
76
  # ========================================================================= #
16
77
  # === action_generate_a_big_shell_script
17
78
  # ========================================================================= #
@@ -1909,6 +1909,9 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
1909
1909
  set_cflags(:build_static)
1910
1910
  end
1911
1911
  end
1912
+ if extract_to_this_directory_as_specified_by_the_user?
1913
+ cookbook_dataset?.set_extract_to(extract_to_this_directory_as_specified_by_the_user?)
1914
+ end
1912
1915
  # ======================================================================== #
1913
1916
  # === (2) Next we will show the infobox, also called Flexbox (flexbox tag, infobox tag)
1914
1917
  #
@@ -2088,8 +2091,10 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
2088
2091
  #
2089
2092
  # We will next extract the source archive to the target directory.
2090
2093
  # ==================================================================== #
2091
- extract_what_to(local_path, File.dirname(to))
2094
+ new_target = File.dirname(to)
2095
+ extract_what_to(local_path, new_target)
2092
2096
  orev lightsalmon('The extraction-step has finished.')
2097
+ cd(to)
2093
2098
  end
2094
2099
  # ====================================================================== #
2095
2100
  # Next, exit if this was specified that way, that we only wish to
@@ -2130,9 +2135,9 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
2130
2135
  # honour the configure_base_dir setting.
2131
2136
  # ==================================================================== #
2132
2137
  cd_into_this_directory = rds(
2133
- log_dir?+
2134
- program_name_and_program_version?+'/'+
2135
- configure_base_directory?.to_s+'/'
2138
+ "#{extract_to_this_directory?}"\
2139
+ "#{program_name_and_program_version?}/"\
2140
+ "#{configure_base_directory?.to_s}/"
2136
2141
  )
2137
2142
  unless configure_base_directory?.empty? or (configure_base_directory? == '/')
2138
2143
  orev "Entering the #{steelblue('configure-base-directory')}#{rev}"\
@@ -67,9 +67,7 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
67
67
  _ = $3.to_s.dup if $3
68
68
  _ = $4.to_s.dup if $4
69
69
  _ = $5.to_s.dup if $5
70
- set_extract_to_this_directory_as_specified_by_the_user(
71
- _
72
- )
70
+ set_extract_to_this_directory_as_specified_by_the_user(_)
73
71
  # ===================================================================== #
74
72
  # === Query where we will extract to
75
73
  #
@@ -241,26 +241,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
241
241
  create_the_build_directory(i) if use_build_directory?
242
242
  end
243
243
 
244
- # ========================================================================== #
245
- # === search_for_tag (search tag)
246
- #
247
- # Use this to search for a tag.
248
- #
249
- # Usage examples:
250
- #
251
- # ry htop --tags pdf
252
- # ry htop --tags term
253
- #
254
- # ========================================================================== #
255
- def search_for_tag(
256
- this_tag,
257
- shall_we_exit = true
258
- )
259
- results = action(:SearchForTags, this_tag)
260
- exit_program if shall_we_exit
261
- return results
262
- end
263
-
264
244
  # ========================================================================== #
265
245
  # === show_the_everything_is_finished_message
266
246
  # ========================================================================== #
@@ -322,6 +302,70 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
322
302
  end
323
303
  end
324
304
 
305
+ # ========================================================================== #
306
+ # === consider_removing_empty_subdirectories
307
+ #
308
+ # We will remove empty subdirectories but only from AppDir-like prefixes.
309
+ # ========================================================================== #
310
+ def consider_removing_empty_subdirectories(
311
+ prefix = prefix?.to_s # ← This will be like "/Programs/Gcide/0.52/".
312
+ )
313
+ if uses_an_appdir_prefix?
314
+ subdirectories = Dir[prefix+'*'].select {|entry|
315
+ File.directory?(entry) and Dir.empty?(entry)
316
+ }
317
+ # ===================================================================== #
318
+ # Since as of December 2022 we will remove only some empty
319
+ # subdirectories.
320
+ # ===================================================================== #
321
+ subdirectories.select! {|entry|
322
+ RBT::SymlinkFromToCurrent::ARRAY_ALLOWED_SUBDIRECTORIES.include?(
323
+ File.basename(entry)
324
+ )
325
+ }
326
+ remove_directories(
327
+ subdirectories
328
+ )
329
+ consider_removing_the_current_symlink_if_the_directory_is_empty
330
+ consider_removing_the_settings_directory_if_it_is_empty
331
+ consider_removing_the_empty_versioned_directory
332
+ consider_removing_the_empty_base_directory_of_the_program
333
+ end
334
+ end; alias consider_running_cleanup_actions consider_removing_empty_subdirectories # === consider_running_cleanup_actions
335
+
336
+ # ========================================================================== #
337
+ # === show_the_flexbox
338
+ #
339
+ # This will show the flexbox.
340
+ #
341
+ # The first argument should be the dataset for the program that we
342
+ # are about to install/compile.
343
+ # ========================================================================== #
344
+ def show_the_flexbox(
345
+ compile_this_program = compile_which_program?
346
+ )
347
+ if show_the_flexbox?
348
+ # =================================================================== #
349
+ # Next determine whether we shall show the required dependencies
350
+ # via the flexbox. Since as of November 2020 this is now the
351
+ # default. At a later point we may disable it again, not sure
352
+ # yet - but I think showing the dependencies is useful for
353
+ # the end user, hence why it is now set to true by default.
354
+ # =================================================================== #
355
+ shall_we_show_the_required_dependencies_via_the_flexbox = always_show_dependencies?
356
+ # =================================================================== #
357
+ # Delegate into AsciiParadise::Flexbox next, if it is available:
358
+ # =================================================================== #
359
+ e
360
+ action(:Flexbox, compile_this_program) {{
361
+ show_required_dependencies_on: shall_we_show_the_required_dependencies_via_the_flexbox,
362
+ use_this_dataset: self, # sanitize_cookbook?
363
+ use_colours: use_colours?
364
+ }}.display
365
+ e
366
+ end
367
+ end; alias show_flexbox show_the_flexbox # === show_flexbox
368
+
325
369
  # ========================================================================== #
326
370
  # === enable_porg
327
371
  #
@@ -918,23 +962,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
918
962
  cd_to_the_configure_base_directory
919
963
  end
920
964
 
921
- # ========================================================================== #
922
- # === check_for_available_versions
923
- #
924
- # Use this method if you wish to check for available program versions.
925
- #
926
- # Usage examples:
927
- #
928
- # ry bluefish available_versions
929
- # ry gcc available_versions
930
- #
931
- # ========================================================================== #
932
- def check_for_available_versions(
933
- for_this_program = program?
934
- )
935
- action(:CheckForAvailableVersions, for_this_program) { :be_verbose }
936
- end
937
-
938
965
  # ========================================================================== #
939
966
  # === install_the_linux_kernel_header_files_via_this_prefix
940
967
  #
@@ -8625,49 +8652,6 @@ end # end false clause (DEBUG - FIXME!!!)
8625
8652
  alias consider_invoking_autoconf decide_whether_to_invoke_the_autoconf_command # === consider_invoking_autoconf
8626
8653
  alias consider_running_autoconf decide_whether_to_invoke_the_autoconf_command # === consider_running_autoconf
8627
8654
 
8628
- # ========================================================================== #
8629
- # === use_autoconf?
8630
- #
8631
- # This method determines as to whether we will use autoconf or whether
8632
- # we will not. By default the value of @internal_hash[:use_autoconf]
8633
- # is nil. If a user modifies this value from the commandline, to
8634
- # either true or false, then we will use that value; otherwise we
8635
- # will use the value defined in the cookbook-dataset for this
8636
- # particular program at hand.
8637
- # ========================================================================== #
8638
- def use_autoconf?
8639
- _ = cookbook_use_autoconf? # ← This is the default.
8640
- unless @internal_hash[:use_autoconf].nil?
8641
- _ = @internal_hash[:use_autoconf]
8642
- end
8643
- return _
8644
- end
8645
-
8646
- # ========================================================================== #
8647
- # === set_permanently_extract_to
8648
- #
8649
- # This method will permanently set a new directory to which we
8650
- # will extract to.
8651
- #
8652
- # To invoke this method, do something such as:
8653
- #
8654
- # ry --permanently_extract_to=/Depot
8655
- # ry --permanently_extract_to=/opt
8656
- # ry --permanently_extract_to=$TEMP_DIR
8657
- #
8658
- # ========================================================================== #
8659
- def set_permanently_extract_to(
8660
- i = nil
8661
- )
8662
- if i
8663
- target = RBT.permanently_set_temp_directory(i)
8664
- orev "The RBT scripts will henceforthwith be extracted "\
8665
- "towards `#{sdir(target)}#{rev}`."
8666
- else
8667
- orev 'Please provide an argument.'
8668
- end
8669
- end
8670
-
8671
8655
  # ========================================================================== #
8672
8656
  # === show_available_headers_of_this_program
8673
8657
  #
@@ -8750,13 +8734,6 @@ end # end false clause (DEBUG - FIXME!!!)
8750
8734
  set_user_prefix("$HOME#{static_appdir_prefix?}")
8751
8735
  end
8752
8736
 
8753
- # ========================================================================== #
8754
- # === set_user_prefix_to_nil
8755
- # ========================================================================== #
8756
- def set_user_prefix_to_nil
8757
- set_user_prefix(nil)
8758
- end
8759
-
8760
8737
  # ========================================================================== #
8761
8738
  # === check_for_sed_action (sed tag)
8762
8739
  #
@@ -8793,30 +8770,6 @@ end # end false clause (DEBUG - FIXME!!!)
8793
8770
  end
8794
8771
  end
8795
8772
 
8796
- # ========================================================================== #
8797
- # === query_configuration_options
8798
- #
8799
- # This method will query the configuration option of a given program.
8800
- #
8801
- # Invocation example:
8802
- #
8803
- # ry glibc qco
8804
- #
8805
- # ========================================================================== #
8806
- def query_configuration_options(
8807
- i = compile_this_program?
8808
- )
8809
- action(:show_configuration_options, i)
8810
- exit_program
8811
- end
8812
-
8813
- # ========================================================================== #
8814
- # === cookbook_dataset_manual_steps?
8815
- # ========================================================================== #
8816
- def cookbook_dataset_manual_steps?
8817
- cookbook_dataset?.manual_steps?
8818
- end
8819
-
8820
8773
  # ========================================================================== #
8821
8774
  # === deregistering_from_the_status_file
8822
8775
  #
@@ -8882,13 +8835,6 @@ end # end false clause (DEBUG - FIXME!!!)
8882
8835
  return remote_dataset
8883
8836
  end
8884
8837
 
8885
- # ========================================================================== #
8886
- # === set_archive_type
8887
- # ========================================================================== #
8888
- def set_archive_type(i)
8889
- cookbook_dataset?.set_archive_type(i)
8890
- end
8891
-
8892
8838
  # ========================================================================== #
8893
8839
  # === cookbook_dataset_set_configure_command
8894
8840
  # ========================================================================== #
@@ -9459,7 +9405,6 @@ end # end false clause (DEBUG - FIXME!!!)
9459
9405
  alias no_postinstall_actions skip_postinstall_actions # === no_postinstall_actions
9460
9406
  alias no_postinstall_step skip_postinstall_actions # === no_postinstall_step
9461
9407
 
9462
-
9463
9408
  # ========================================================================== #
9464
9409
  # === run_the_python_steps
9465
9410
  #
@@ -10720,48 +10665,6 @@ end # end false clause (DEBUG - FIXME!!!)
10720
10665
  @internal_hash[:show_the_flexbox] = true
10721
10666
  end
10722
10667
 
10723
- # ========================================================================== #
10724
- # === show_flexbox?
10725
- # ========================================================================== #
10726
- def show_flexbox?
10727
- @internal_hash[:show_the_flexbox]
10728
- end; alias show_the_flexbox? show_flexbox? # === show_the_flexbox?
10729
- alias show_the_infobox? show_flexbox? # === show_the_infobox?
10730
- alias show_infobox? show_flexbox? # === show_infobox?
10731
-
10732
- # ========================================================================== #
10733
- # === show_the_flexbox
10734
- #
10735
- # This will show the flexbox.
10736
- #
10737
- # The first argument should be the dataset for the program that we
10738
- # are about to install/compile.
10739
- # ========================================================================== #
10740
- def show_the_flexbox(
10741
- compile_this_program = compile_which_program?
10742
- )
10743
- if show_the_flexbox?
10744
- # =================================================================== #
10745
- # Next determine whether we shall show the required dependencies
10746
- # via the flexbox. Since as of November 2020 this is now the
10747
- # default. At a later point we may disable it again, not sure
10748
- # yet - but I think showing the dependencies is useful for
10749
- # the end user, hence why it is now set to true by default.
10750
- # =================================================================== #
10751
- shall_we_show_the_required_dependencies_via_the_flexbox = always_show_dependencies?
10752
- # =================================================================== #
10753
- # Delegate into AsciiParadise::Flexbox next, if it is available:
10754
- # =================================================================== #
10755
- e
10756
- action(:Flexbox, compile_this_program) {{
10757
- show_required_dependencies_on: shall_we_show_the_required_dependencies_via_the_flexbox,
10758
- use_this_dataset: self, # sanitize_cookbook?
10759
- use_colours: use_colours?
10760
- }}.display
10761
- e
10762
- end
10763
- end; alias show_flexbox show_the_flexbox # === show_flexbox
10764
-
10765
10668
  # ========================================================================== #
10766
10669
  # === verbose_do_extract_only
10767
10670
  # ========================================================================== #
@@ -10785,44 +10688,6 @@ end # end false clause (DEBUG - FIXME!!!)
10785
10688
  @internal_hash[:extract_to_this_directory] = i
10786
10689
  end
10787
10690
 
10788
- # ========================================================================== #
10789
- # === batch_validate_the_cookbooks
10790
- # ========================================================================== #
10791
- def batch_validate_the_cookbooks
10792
- action(:BatchValidateTheCookbookRecipes)
10793
- end
10794
-
10795
- # ========================================================================== #
10796
- # === consider_removing_empty_subdirectories
10797
- #
10798
- # We will remove empty subdirectories but only from AppDir-like prefixes.
10799
- # ========================================================================== #
10800
- def consider_removing_empty_subdirectories(
10801
- prefix = prefix?.to_s # ← This will be like "/Programs/Gcide/0.52/".
10802
- )
10803
- if uses_an_appdir_prefix?
10804
- subdirectories = Dir[prefix+'*'].select {|entry|
10805
- File.directory?(entry) and Dir.empty?(entry)
10806
- }
10807
- # ===================================================================== #
10808
- # Since as of December 2022 we will remove only some empty
10809
- # subdirectories.
10810
- # ===================================================================== #
10811
- subdirectories.select! {|entry|
10812
- RBT::SymlinkFromToCurrent::ARRAY_ALLOWED_SUBDIRECTORIES.include?(
10813
- File.basename(entry)
10814
- )
10815
- }
10816
- remove_directories(
10817
- subdirectories
10818
- )
10819
- consider_removing_the_current_symlink_if_the_directory_is_empty
10820
- consider_removing_the_settings_directory_if_it_is_empty
10821
- consider_removing_the_empty_versioned_directory
10822
- consider_removing_the_empty_base_directory_of_the_program
10823
- end
10824
- end; alias consider_running_cleanup_actions consider_removing_empty_subdirectories # === consider_running_cleanup_actions
10825
-
10826
10691
  # ========================================================================== #
10827
10692
  # === RBT::Action::SoftwareManager.display_standard_help_options
10828
10693
  #
@@ -12505,32 +12370,6 @@ EOF
12505
12370
  cd target
12506
12371
  end
12507
12372
 
12508
- # ========================================================================== #
12509
- # === extract_to_this_directory?
12510
- #
12511
- # This query-method tells us where we will extract (our archive) to.
12512
- #
12513
- # The temp-directory is initially the same as RBT.rbt_log_directory?.
12514
- # ========================================================================== #
12515
- def extract_to_this_directory?
12516
- _ = @internal_hash[:extract_to_this_directory]
12517
- # ======================================================================= #
12518
- # Allow the user to overrule this value.
12519
- # ======================================================================= #
12520
- if @internal_hash[:extract_to_this_directory_as_specified_by_the_user]
12521
- _ = @internal_hash[:extract_to_this_directory_as_specified_by_the_user]
12522
- end
12523
- return _
12524
- end; alias extract_to? extract_to_this_directory? # === extract_to?
12525
- alias extract_where_to? extract_to_this_directory? # === extract_where_to?
12526
- alias extracted_directory? extract_to_this_directory? # === extracted_directory?
12527
- alias extracted_dir? extract_to_this_directory? # === extracted_dir?
12528
- alias dir? extract_to_this_directory? # === dir?
12529
- alias extract_to_this_dir? extract_to_this_directory? # === extract_to_this_dir?
12530
- alias extract_to_which_directory? extract_to_this_directory? # === extract_to_which_directory?
12531
- alias extracted_path? extract_to_this_directory? # === extracted_path?
12532
- alias extracted_towards? extract_to_this_directory? # === extracted_towards?
12533
-
12534
12373
  # ========================================================================== #
12535
12374
  # === download_this_remote_url_into_that_local_directory
12536
12375
  #