diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/core/types/rockspec.tl | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/luarocks/core/types/rockspec.tl b/src/luarocks/core/types/rockspec.tl new file mode 100644 index 00000000..c3880cf0 --- /dev/null +++ b/src/luarocks/core/types/rockspec.tl | |||
@@ -0,0 +1,78 @@ | |||
1 | local type Query = require("luarocks.core.types.query").Query | ||
2 | |||
3 | local type Build = require("luarocks.core.types.build").Build | ||
4 | |||
5 | local record rockspec | ||
6 | record Description | ||
7 | summary: string | ||
8 | detailed: string | ||
9 | homepage: string | ||
10 | issues_url: string | ||
11 | maintainer: string | ||
12 | license: string | ||
13 | labels: {string} | ||
14 | end | ||
15 | |||
16 | record Source | ||
17 | url: string | ||
18 | module: string | ||
19 | pathname: string | ||
20 | tag: string | ||
21 | md5: string | ||
22 | file: string | ||
23 | dir: string | ||
24 | branch: string | ||
25 | cvs_tag: string | ||
26 | cvs_module: string | ||
27 | protocol: string --! not in the rockspec definition but used | ||
28 | dir_set: boolean | ||
29 | identifier: string | ||
30 | end | ||
31 | |||
32 | record Test | ||
33 | type: string | ||
34 | script: string | ||
35 | command: string | ||
36 | busted_executable: string | ||
37 | flags: {string} | ||
38 | end | ||
39 | |||
40 | record Dependencies | ||
41 | {string} | ||
42 | -- when converted: | ||
43 | queries: {Query} | ||
44 | end | ||
45 | |||
46 | record Hooks | ||
47 | post_install: string | ||
48 | substituted_variables: boolean | ||
49 | end | ||
50 | |||
51 | record Deploy | ||
52 | wrap_bin_scripts: boolean | ||
53 | end | ||
54 | |||
55 | record Rockspec | ||
56 | rockspec_format: string | ||
57 | name: string --! not in the rockspec definition but used | ||
58 | package: string | ||
59 | version: string | ||
60 | local_abs_filename: string | ||
61 | rocks_provided: {string : string} | ||
62 | source: Source | ||
63 | description: Description | ||
64 | build: Build | ||
65 | dependencies: Dependencies | ||
66 | build_dependencies: Dependencies | ||
67 | test_dependencies: Dependencies | ||
68 | supported_platforms: {string} | ||
69 | external_dependencies: {string: {string: string}} | ||
70 | variables: {string: string} | ||
71 | hooks: Hooks | ||
72 | test: Test | ||
73 | deploy: Deploy | ||
74 | format_is_at_least: function(Rockspec, string): boolean | ||
75 | end | ||
76 | end | ||
77 | |||
78 | return rockspec | ||