aboutsummaryrefslogtreecommitdiff
path: root/paludis/legacy/dep_list_options.se
blob: be548576abbe7d33191a31afbedbd8063bd4c04e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :

make_enum_DepListTargetType()
{
    prefix dl_target

    key dl_target_package       "A package, so force reinstalls."
    key dl_target_set           "A set, so don't force reinstalls."

    doxygen_comment << "END"
        /**
         * Type of target being handled at the top level.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListReinstallOption()
{
    prefix dl_reinstall

    key dl_reinstall_never           "Never"
    key dl_reinstall_always          "Always"
    key dl_reinstall_if_use_changed  "If a USE flag has changed"

    doxygen_comment << "END"
        /**
         * When we should reinstall.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListFallBackOption()
{
    prefix dl_fall_back

    key dl_fall_back_as_needed_except_targets      "As needed, except for targets"
    key dl_fall_back_as_needed                     "As needed"
    key dl_fall_back_never                         "Never"

    doxygen_comment << "END"
        /**
         * When we should fall back to an installed package.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListReinstallScmOption()
{
    prefix dl_reinstall_scm

    key dl_reinstall_scm_never        "Never"
    key dl_reinstall_scm_always       "Always"
    key dl_reinstall_scm_daily        "Daily"
    key dl_reinstall_scm_weekly       "Weekly"

    doxygen_comment << "END"
        /**
         * When we should reinstall SCM packages.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListUpgradeOption()
{
    prefix dl_upgrade

    key dl_upgrade_always             "Always"
    key dl_upgrade_as_needed          "Only as needed"

    doxygen_comment << "END"
        /**
         * When we should upgrade.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListDowngradeOption()
{
    prefix dl_downgrade
    key dl_downgrade_as_needed           "As needed"
    key dl_downgrade_warning             "As needed, but warn"
    key dl_downgrade_error               "Refuse to downgrade"

    doxygen_comment << "END"
        /**
         * What to do when we downgrade.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListNewSlotsOption()
{
    prefix dl_new_slots

    key dl_new_slots_always          "Always"
    key dl_new_slots_as_needed       "Only where necessary"

    doxygen_comment << "END"
        /**
         * When we should pull in a new slot.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListDepsOption()
{
    prefix dl_deps

    key dl_deps_discard           "Discard it"
    key dl_deps_pre               "As a pre dependency"
    key dl_deps_pre_or_post       "As a pre dependency with fallback to post"
    key dl_deps_post              "As a post dependency"
    key dl_deps_try_post          "As an optional post dependency"

    doxygen_comment << "END"
        /**
         * How we should handle a dep class.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListSuggestedOption()
{
    prefix dl_suggested
    key dl_suggested_show         "Show"
    key dl_suggested_discard      "Discard"
    key dl_suggested_install      "Install"

    doxygen_comment << "END"
        /**
         * How we should handle suggested deps.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListCircularOption()
{
    prefix dl_circular

    key dl_circular_error              "As an error"
    key dl_circular_discard            "Discard them"
    key dl_circular_discard_silently   "Discard them silently"

    doxygen_comment << "END"
        /**
         * How we should handle circular deps.
         *
         * \see DepListOptions
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListBlocksOption()
{
    prefix dl_blocks

    key dl_blocks_accumulate         "Accumulate them and show all errors together"
    key dl_blocks_error              "Error on the first one"
    key dl_blocks_discard            "Discard (dangerous)"
    key dl_blocks_discard_completely "Discard completely (not for user visible use)"

    doxygen_comment <<"END"
        /**
         * How we handle blocks.
         *
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListUseOption()
{
    prefix dl_use_deps
    key dl_use_deps_standard  "Behave as standard"
    key dl_use_deps_take_all  "Take both sides of use conditionals except on masks"

    doxygen_comment <<"END"
        /**
         * How we handle use deps.
         *
         * Not for end user use. Used by adjutrix and qa.
         *
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListEntryState()
{
    prefix dle
    want_destringify

    key dle_no_deps         "Dependencies have yet to be added"
    key dle_has_pre_deps    "Predependencies have been added"
    key dle_has_all_deps    "All dependencies have been added"

    doxygen_comment <<"END"
        /**
         * State of a DepListEntry.
         *
         * \ingroup g_dep_list
         */
END
}

make_enum_DepListEntryKind()
{
    prefix dlk
    want_destringify

    key dlk_package           "A package to be installed"
    key dlk_subpackage        "A package to be installed as part of the previous dlk_package"
    key dlk_already_installed "An already installed package"
    key dlk_virtual           "A virtual package"
    key dlk_provided          "A package provided by the previous dlk_package"
    key dlk_suggested         "A package suggested by the previous dlk_package"
    key dlk_block             "A blocked package that must be removed"
    key dlk_masked            "A masked package that must be unmasked"

    doxygen_comment <<"END"
        /**
         * Kind of a DepListEntry.
         *
         * \ingroup g_dep_list
         */
END
}