aboutsummaryrefslogtreecommitdiff
path: root/python/nice_names.nn
blob: da233373b8716101ed13e902755f30ca7bbe0f1e (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
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :

include_hh << END
#include <paludis/dep_spec-fwd.hh>
#include <paludis/spec_tree-fwd.hh>
#include <paludis/name.hh>
END

include_cc << END
#include "nice_names-nn.hh"
END

use_namespace "paludis"

make_nn_NiceNames() {
    namespace "paludis::python"

    name "std::string" "String"

    # paludis/dep_spec-fwd.hh
    name "DepSpec"
    name "PackageDepSpec"
    name "PlainTextDepSpec"
    name "LicenseDepSpec"
    name "FetchableURIDepSpec"
    name "SimpleURIDepSpec"
    name "AllDepSpec"
    name "AnyDepSpec"
    name "ExactlyOneDepSpec"
    name "AtMostOneDepSpec"
    name "ConditionalDepSpec"
    name "BlockDepSpec"
    name "StringDepSpec"
    name "NamedSetDepSpec"
    name "URILabelsDepSpec"
    name "PlainTextLabelDepSpec"
    name "DependenciesLabelsDepSpec"

    # paludis/dep_tree-fwd.hh
    name "GenericSpecTree"
    name "LicenseSpecTree"
    name "FetchableURISpecTree"
    name "SimpleURISpecTree"
    name "PlainTextSpecTree"
    name "RequiredUseSpecTree"
    name "DependencySpecTree"
    name "SetSpecTree"


    # paludis/name-fwd.hh
    name "PackageNamePart"
    name "PackageNamePartSet"
    name "CategoryNamePart"
    name "CategoryNamePartSet"
    name "QualifiedPackageName"
    name "QualifiedPackageNameSet"
    name "SlotName"
    name "RepositoryName"
    name "KeywordName"
    name "KeywordNameSet"
    name "SetName"
    name "SetNameSet"
}

make_nn_LowercaseNiceNames() {
    namespace "paludis::python"

    name "std::string" "string"

    name "KeywordName" "keyword_name"
    name "PackageDepSpec" "package_dep_spec"
    name "BlockDepSpec" "block_dep_spec"
    name "FetchableURIDepSpec" "fetchable_uri_dep_spec"
    name "SimpleURIDepSpec" "simple_uri_dep_spec"
    name "DependenciesLabelsDepSpec" "dependencies_labels_dep_spec"
    name "URILabelsDepSpec" "uri_labels_dep_spec"
    name "PlainTextLabelDepSpec" "plain_text_label_dep_spec"
    name "PlainTextDepSpec" "plain_text_dep_spec"
    name "LicenseDepSpec" "license_dep_spec"
    name "ConditionalDepSpec" "conditional_dep_spec"
    name "NamedSetDepSpec" "named_set_dep_spec"
}