aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/paludis/version_metadata.sr
blob: 1a11ad0a084659dedece7f2e1bfd4e2a313dc72a (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
#!/bin/bash
# vim: set sw=4 sts=4 et :

make_class_VersionMetadataDeps()
{
    key parser ParserFunction
    key build_depend_string std::string
    key run_depend_string std::string
    key post_depend_string std::string

    extra_constructors <<END
            VersionMetadataDeps(const ParserFunction &);
END

    extra_methods <<END
            /**
             * Our build depends.
             */
            DepAtom::ConstPointer build_depend() const;

            /**
             * Our runtime depends.
             */
            DepAtom::ConstPointer run_depend() const;

            /**
             * Our post depends.
             */
            DepAtom::ConstPointer post_depend() const;
END
}

make_class_VersionMetadataBase()
{
    key deps VersionMetadataDeps
    key slot SlotName
    key license_string std::string
    key eapi std::string
    key homepage std::string
    key description std::string

    allow_named_args
}

make_class_EbuildVersionMetadata()
{
    key provide_string std::string
    key src_uri std::string
    key restrict_string std::string
    key keywords std::string
    key eclass_keywords std::string
    key iuse std::string
    key inherited std::string

    extra_constructors <<END
            EbuildVersionMetadata();
END

    extra_methods <<END
            /**
             * PROVIDE, as a dep atom.
             */
            DepAtom::ConstPointer provide() const;
END

    allow_named_args
}

make_class_CRANVersionMetadata()
{
    key keywords std::string
    key package std::string
    key version std::string
    key is_bundle bool

    allow_named_args
}

make_class_EbinVersionMetadata()
{
    key bin_uri std::string
    key src_repository RepositoryName

    extra_constructors <<END
            EbinVersionMetadata();
END
}

make_class_VirtualMetadata()
{
    key virtual_for PackageDatabaseEntry
}