Browse Source

LuaRocks: Run test suite

Peter Colberg 4 years ago
parent
commit
be525ac478
4 changed files with 38 additions and 4 deletions
  1. 1
    0
      .gitignore
  2. 2
    2
      doc/INSTALL.html
  3. 2
    2
      doc/INSTALL.mdwn
  4. 33
    0
      rockspec/gcc-lua-cdecl-2.0.1-1.rockspec

+ 1
- 0
.gitignore View File

@@ -1 +1,2 @@
1 1
 /ffi-cdecl/C.lua
2
+*.rock

+ 2
- 2
doc/INSTALL.html View File

@@ -56,9 +56,9 @@
56 56
 <p>To use the module, set the Lua module path in your shell's startup file:</p>
57 57
 <pre><code>eval `luarocks path`</code></pre>
58 58
 <p>If the LuaRocks mirror is not available, install from the git repository above:</p>
59
-<pre><code>luarocks install --local rockspec/gcc-lua-cdecl-2.0.0-1.rockspec</code></pre>
59
+<pre><code>luarocks install --local rockspec/gcc-lua-cdecl-2.0.1-1.rockspec</code></pre>
60 60
 <p>To install the module directly from the git source, use:</p>
61
-<pre><code>luarocks make --local rockspec/gcc-lua-cdecl-2.0.0-1.rockspec</code></pre>
61
+<pre><code>luarocks make --local rockspec/gcc-lua-cdecl-2.0.1-1.rockspec</code></pre>
62 62
 <p>In this case you must manually git checkout the corresponding version beforehand.</p>
63 63
 </div>
64 64
 <div class="footer">

+ 2
- 2
doc/INSTALL.mdwn View File

@@ -89,13 +89,13 @@ eval `luarocks path`
89 89
 If the LuaRocks mirror is not available, install from the git repository above:
90 90
 
91 91
 ~~~
92
-luarocks install --local rockspec/gcc-lua-cdecl-2.0.0-1.rockspec
92
+luarocks install --local rockspec/gcc-lua-cdecl-2.0.1-1.rockspec
93 93
 ~~~
94 94
 
95 95
 To install the module directly from the git source, use:
96 96
 
97 97
 ~~~
98
-luarocks make --local rockspec/gcc-lua-cdecl-2.0.0-1.rockspec
98
+luarocks make --local rockspec/gcc-lua-cdecl-2.0.1-1.rockspec
99 99
 ~~~
100 100
 
101 101
 In this case you must manually git checkout the corresponding version beforehand.

+ 33
- 0
rockspec/gcc-lua-cdecl-2.0.1-1.rockspec View File

@@ -0,0 +1,33 @@
1
+package = "gcc-lua-cdecl"
2
+version = "2.0.1-1"
3
+source = {
4
+   url = "git://git.colberg.org/gcc-lua-cdecl",
5
+   tag = "2.0.1",
6
+}
7
+description = {
8
+   summary = "C declaration composer for the GNU Compiler Collection",
9
+   detailed = [[
10
+      cdecl for GCC is a Lua module that composes C declarations from a C
11
+      source file using the Lua plugin for GCC. The module generates C99
12
+      function, variable and type declarations, and supports the GCC extensions
13
+      for attributes and vector types. The module may be used to generate C
14
+      library bindings for a foreign function interface, e.g., LuaJIT FFI.
15
+   ]],
16
+   homepage = "http://colberg.org/gcc-lua-cdecl/",
17
+   license = "MIT/X11",
18
+}
19
+build = {
20
+   type = "make",
21
+   build_target = "test",
22
+   build_variables = {
23
+      CC = "$(CC)",
24
+      GCCLUA = "$(GCCLUA)",
25
+   },
26
+   install_variables = {
27
+      PREFIX = "$(PREFIX)",
28
+      LUADIR = "$(LUADIR)",
29
+      DOCDIR = "$(PREFIX)/doc",
30
+   },
31
+   copy_directories = {
32
+   },
33
+}

Loading…
Cancel
Save