rbt 0.16.13 → 0.16.14

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.

Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/doc/README.gen +1 -1
  4. data/lib/rbt/actions/individual_actions/create_app_dir_skeleton/create_app_dir_skeleton.rb +1 -1
  5. data/lib/rbt/actions/individual_actions/installer/aggregate.rb +3 -86
  6. data/lib/rbt/actions/individual_actions/software_manager/extract_related_code.rb +26 -9
  7. data/lib/rbt/actions/individual_actions/software_manager/logic_related_code.rb +50 -73
  8. data/lib/rbt/actions/individual_actions/software_manager/menu.rb +94 -94
  9. data/lib/rbt/actions/individual_actions/software_manager/misc.rb +1389 -1445
  10. data/lib/rbt/actions/individual_actions/software_manager/query_related_methods.rb +77 -14
  11. data/lib/rbt/actions/individual_actions/software_manager/reset.rb +7 -7
  12. data/lib/rbt/actions/individual_actions/software_manager/setters.rb +101 -28
  13. data/lib/rbt/version/version.rb +1 -1
  14. data/lib/rbt/yaml/cookbooks/exiv2.yml +1 -0
  15. data/lib/rbt/yaml/cookbooks/glibnetworking.yml +1 -0
  16. data/lib/rbt/yaml/cookbooks/kitinerary.yml +5 -0
  17. data/lib/rbt/yaml/cookbooks/ncurses.yml +1 -2
  18. data/lib/rbt/yaml/cookbooks/wordpress.yml +4 -2
  19. data/lib/rbt/yaml/expanded_cookbooks/cbindgen.yml +16 -13
  20. data/lib/rbt/yaml/expanded_cookbooks/erlang.yml +1 -1
  21. data/lib/rbt/yaml/expanded_cookbooks/exiv2.yml +1 -1
  22. data/lib/rbt/yaml/expanded_cookbooks/gdkpixbuf.yml +2 -2
  23. data/lib/rbt/yaml/expanded_cookbooks/kitinerary.yml +3 -3
  24. data/lib/rbt/yaml/expanded_cookbooks/libmpeg3.yml +2 -1
  25. data/lib/rbt/yaml/expanded_cookbooks/nuvie.yml +1 -1
  26. data/lib/rbt/yaml/expanded_cookbooks/qt.yml +5 -5
  27. data/lib/rbt/yaml/expanded_cookbooks/sendmail.yml +14 -7
  28. data/lib/rbt/yaml/expanded_cookbooks/sharutils.yml +1 -1
  29. data/lib/rbt/yaml/expanded_cookbooks/squashfstools.yml +3 -3
  30. data/lib/rbt/yaml/expanded_cookbooks/wordpress.yml +10 -10
  31. data/lib/rbt/yaml/programs_version/available_programs_versions.md +3 -3
  32. metadata +2 -2
@@ -37,6 +37,100 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
37
37
  else
38
38
  case i # (case tag, cas tag)
39
39
  # ===================================================================== #
40
+ # === Set extract to
41
+ #
42
+ # Specify our target directory for extracting an archive. Special
43
+ # shortcuts, such as pwd for "current working directry", also
44
+ # exist.
45
+ #
46
+ # Usage examples:
47
+ #
48
+ # ry htop --extract_to=pwd
49
+ # ry htop --base-dir=/tmp/
50
+ # ry htop --base-dir=/opt/
51
+ # ry htop --extract-to=/opt/test
52
+ # ry mesa --use-this-as-temp-dir=/opt/foo
53
+ # ry htop ntrad --use-this-temp-dir=/opt/foobar_create_it
54
+ #
55
+ # ===================================================================== #
56
+ when /^-?-?extract(_|-| )?to=(.*)$/, # === $2
57
+ /^-?-?temp(_|-| )?dir=(.*)$/, # === $2
58
+ /^-?-?use(_|-| )?temp(_|-| )?dir=(.*)$/, # === $3
59
+ /^-?-?base(_|-| )?dir=(.+)$/, # === $2
60
+ /^-?-?use(_|-| )?this(_|-| )?temp(_|-| )?directory=(.*)$/, # === $4
61
+ /^-?-?use(_|-| )?this(_|-| )?temp(_|-| )?dir=(.*)$/, # === $4
62
+ /^-?-?use(_|-| )?this(_|-| )?as(_|-| )?temp(_|-| )?dir=(.*)$/, # === $5
63
+ /^-?-?use(_|-| )?this(_|-| )?as(_|-| )?temp(_|-| )?directory=(.*)$/, # === $4
64
+ /^-?e=(.*)$/ # === $1
65
+ _ = $1.to_s.dup
66
+ _ = $2.to_s.dup if $2
67
+ _ = $3.to_s.dup if $3
68
+ _ = $4.to_s.dup if $4
69
+ _ = $5.to_s.dup if $5
70
+ set_extract_to_this_directory_as_specified_by_the_user(
71
+ _
72
+ )
73
+ # ===================================================================== #
74
+ # === Query where we will extract to
75
+ #
76
+ # This entry point can be used to determine where to we will extract
77
+ # archives.
78
+ #
79
+ # Invocation example:
80
+ #
81
+ # ry --extract-to?
82
+ #
83
+ # ===================================================================== #
84
+ when /^-?-?extract(-|_)?to\??$/i
85
+ report_where_archives_will_be_extracted_into
86
+ exit_program
87
+ # ===================================================================== #
88
+ # === Keep the archive extracted
89
+ #
90
+ # The user can use this entry point if he/she dodoes not want
91
+ # to delete the extracted archive again.
92
+ #
93
+ # Keep our source archive extracted:
94
+ #
95
+ # ry htop ke
96
+ #
97
+ # ===================================================================== #
98
+ when *ARRAY_HELP_KEEP_EXTRACTED_OPTIONS
99
+ do_retain_the_extracted_source_archive
100
+ # ===================================================================== #
101
+ # === Do not keep the archive
102
+ #
103
+ # After extracting and compiling, we will get rid of the archive
104
+ # again. We will get rid of the archive independent over whether
105
+ # the installation process was a success or whether it was not,
106
+ # mind you.
107
+ #
108
+ # Usage examples:
109
+ #
110
+ # ry htop --remove-archive
111
+ # ry htop dontkeeparchive
112
+ #
113
+ # ===================================================================== #
114
+ when *ARRAY_HELP_DONT_KEEP_EXTRACTED_OPTIONS
115
+ set_dont_keep_archive # Remove archive(s) after a successful build.
116
+ # ===================================================================== #
117
+ # === Do not remove empty directories
118
+ #
119
+ # This entry point exists so that we can keep empty directories
120
+ # in the respective /Programs/PROGRAM_NAME/PROGRAM_VERSION/
121
+ # subdirectory.
122
+ #
123
+ # Invocation examples:
124
+ #
125
+ # rbt feh --ntrad --do-not-remove-empty-directories
126
+ # rbt htop --ntrad --do-not-remove-empty-directories
127
+ #
128
+ # ===================================================================== #
129
+ when /^-?-?do(-|_| )?not(-|_| )?remove(-|_| )?empty(-|_| )?directories$/
130
+ opne slateblue('class RBT::SymlinkProgram')+' will '+
131
+ crimson('not')+' remove empty directories.'
132
+ symlink_program?.do_keep_empty_directories
133
+ # ===================================================================== #
40
134
  # === Generate a big shell script
41
135
  #
42
136
  # This entry point can be used to quickly generate the big
@@ -2578,22 +2672,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
2578
2672
  'rall'
2579
2673
  compile_all_programs(:do_exit_afterwards) # Argument true for "shall we exit".
2580
2674
  # ===================================================================== #
2581
- # === Do not keep the archive
2582
- #
2583
- # After extracting and compiling, we will get rid of the archive
2584
- # again. We will get rid of the archive independent over whether
2585
- # the installation process was a success or whether it was not,
2586
- # mind you.
2587
- #
2588
- # Usage examples:
2589
- #
2590
- # ry htop --remove-archive
2591
- # ry htop dontkeeparchive
2592
- #
2593
- # ===================================================================== #
2594
- when *ARRAY_HELP_DONT_KEEP_EXTRACTED_OPTIONS
2595
- set_dont_keep_archive # Remove archive(s) after a successful build.
2596
- # ===================================================================== #
2597
2675
  # === Download a remote program into a given directory at hand
2598
2676
  #
2599
2677
  # This entry point allows us to download a remote program into
@@ -2724,20 +2802,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
2724
2802
  pin_this_program(this_program)
2725
2803
  exit_program
2726
2804
  # ===================================================================== #
2727
- # === Query where we will extract to
2728
- #
2729
- # This entry point can be used to determine where to we will extract
2730
- # archives.
2731
- #
2732
- # Invocation example:
2733
- #
2734
- # rbt --extract-to?
2735
- #
2736
- # ===================================================================== #
2737
- when /^-?-?extract(-|_)?to\??$/i
2738
- report_where_archives_will_be_extracted_into
2739
- exit_program
2740
- # ===================================================================== #
2741
2805
  # === Query whether we are on windows
2742
2806
  #
2743
2807
  # This entry point can be quickly used to determine whether we are
@@ -4557,40 +4621,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
4557
4621
  try_to_show_the_BLFS_content_of_this_program
4558
4622
  exit_program
4559
4623
  # ===================================================================== #
4560
- # === Set extract to
4561
- #
4562
- # Specify our target directory for extracting an archive. Special
4563
- # shortcuts, such as pwd for "current working directry", also
4564
- # exist.
4565
- #
4566
- # Usage examples:
4567
- #
4568
- # ry htop --extract_to=pwd
4569
- # ry htop --base-dir=/tmp/
4570
- # ry htop --base-dir=/opt/
4571
- # ry htop --extract-to=/opt/test
4572
- # ry mesa --use-this-as-temp-dir=/opt/foo
4573
- # ry htop ntrad --use-this-temp-dir=/opt/foobar_create_it
4574
- #
4575
- # ===================================================================== #
4576
- when /^-?-?extract(_|-| )?to=(.*)$/, # === $2
4577
- /^-?-?temp(_|-| )?dir=(.*)$/, # === $2
4578
- /^-?-?use(_|-| )?temp(_|-| )?dir=(.*)$/, # === $3
4579
- /^-?-?base(_|-| )?dir=(.+)$/, # === $2
4580
- /^-?-?use(_|-| )?this(_|-| )?temp(_|-| )?directory=(.*)$/, # === $4
4581
- /^-?-?use(_|-| )?this(_|-| )?temp(_|-| )?dir=(.*)$/, # === $4
4582
- /^-?-?use(_|-| )?this(_|-| )?as(_|-| )?temp(_|-| )?dir=(.*)$/, # === $5
4583
- /^-?-?use(_|-| )?this(_|-| )?as(_|-| )?temp(_|-| )?directory=(.*)$/, # === $4
4584
- /^-?e=(.*)$/ # === $1
4585
- _ = $1.to_s.dup
4586
- _ = $2.to_s.dup if $2
4587
- _ = $3.to_s.dup if $3
4588
- _ = $4.to_s.dup if $4
4589
- _ = $5.to_s.dup if $5
4590
- set_extract_to_this_directory_as_specified_by_the_user(
4591
- _
4592
- )
4593
- # ===================================================================== #
4594
4624
  # === Show whether RBT uses ccache or whether it does not
4595
4625
  #
4596
4626
  # This entry point just queries whether RBT will be making use of
@@ -6220,23 +6250,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
6220
6250
  install_palemoon
6221
6251
  exit_program
6222
6252
  # ===================================================================== #
6223
- # === Do not remove empty directories
6224
- #
6225
- # This entry point exists so that we can keep empty directories
6226
- # in the respective /Programs/PROGRAM_NAME/PROGRAM_VERSION/
6227
- # subdirectory.
6228
- #
6229
- # Invocation examples:
6230
- #
6231
- # rbt feh --ntrad --do-not-remove-empty-directories
6232
- # rbt htop --ntrad --do-not-remove-empty-directories
6233
- #
6234
- # ===================================================================== #
6235
- when /^-?-?do(-|_| )?not(-|_| )?remove(-|_| )?empty(-|_| )?directories$/
6236
- opne slateblue('class RBT::SymlinkProgram')+' will '+
6237
- crimson('not')+' remove empty directories.'
6238
- symlink_program?.do_keep_empty_directories
6239
- # ===================================================================== #
6240
6253
  # === Perform an intelligent bootstrap-operation
6241
6254
  #
6242
6255
  # This entry point has been added in November 2020, as means to
@@ -8945,19 +8958,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
8945
8958
  when /^-?-?LC_?ALL$/i
8946
8959
  ENV['LC_ALL'] = 'C'
8947
8960
  # ===================================================================== #
8948
- # === Keep the archive extracted
8949
- #
8950
- # The user can use this entry point if he/she dodoes not want
8951
- # to delete the extracted archive again.
8952
- #
8953
- # Keep our source archive extracted:
8954
- #
8955
- # ry htop ke
8956
- #
8957
- # ===================================================================== #
8958
- when *ARRAY_HELP_KEEP_EXTRACTED_OPTIONS
8959
- do_set_keep_extracted
8960
- # ===================================================================== #
8961
8961
  # === Check for the latest program
8962
8962
  #
8963
8963
  # Check for the latest program: