This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
133 lines (102 loc) · 5.39 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="LuaDist : A distribution of the Lua programming language" />
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
<title>LuaDist</title>
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<h3 style="background-color:orange">⚠ The LuaDist project is no longer maintained! Please try <a href="https://luarocks.org">LuaRocks</a> instead.</h3>
<header class="inner">
<a id="forkme_banner" href="https://github.com/LuaDist">View on GitHub</a>
<h1 id="project_title">LuaDist</h1>
<h2 id="project_tagline">A distribution of the Lua programming language</h2>
</header>
</div>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<h3>About LuaDist</h3>
<p>LuaDist is a true multi-platform package management system that aims to provide both source and binary repository of modules for the Lua programming language. </p>
<hr><h3>Downloads</h3>
<ul>
<li>LuaDist 0.2.2 + batteries 0.9.8
<ul>
<li>
<a href="https://github.com/LuaDist/Binaries/archive/LuaDist-batteries-0.9.8-Windows-x86.zip">Windows x86</a> (MinGW32 4.7.1)</li>
<li>
<a href="https://github.com/LuaDist/Binaries/archive/LuaDist-batteries-0.9.8-Linux-x86_64.zip">Linux x86_64</a> (Ubuntu 12.10)</li>
<li>
<a href="https://github.com/LuaDist/Binaries/archive/LuaDist-batteries-0.9.8-Darwin-x86_64.zip">Mac OS X x86_64</a> (OS X 10.8.2)</li>
</ul>
</li>
</ul><hr><h3>Install</h3>
<p>You can install LuaDist from source using the following one-liner. </p>
<div class="highlight"><pre><span class="nv">$ curl -L </span><span class="s2">"https://tinyurl.com/luadist"</span> > <span class="s2">install.sh</span> <span class="nv"># you can review the file</span>
<span class="nv">$ sh </span><span class="s2">install.sh</span></pre></div>
<p>Windows users can follow our detailed <a href="https://github.com/LuaDist/Repository/wiki/LuaDist%3A-Installation">install instructions</a></p>
<hr><h3>Basic Use</h3>
<p>Install a package</p>
<div class="highlight"><pre><span class="nv">$ </span>./luadist install luaexpat
<span class="nv">$ </span>./lua
> require <span class="s2">"lxp"</span>
</pre></div>
<hr><p>LuaDist supports deployment into standalone directories.</p>
<div class="highlight"><pre><span class="nv">$ </span>./luadist /home/my_lua install lua luasocket
<span class="nv">$ </span>ls /home/my_lua
bin lib include share
<span class="nv">$ </span>ls /home/my_lua/bin
lua luac
<span class="nv">$ </span>ls /home/my_lua/lib
liblua.so
<span class="nv">$ </span>/home/my_lua/bin/lua
> require <span class="s2">"socket"</span>
</pre></div>
<hr><p>Use LuaDist functionality from Lua.</p>
<div class="highlight"><pre><span class="nv">$ </span>./lua
> <span class="nb">local </span><span class="nv">ld</span> <span class="o">=</span> require <span class="s2">"dist"</span>
> ld.install<span class="o">(</span><span class="s2">"luaexpat"</span><span class="o">)</span>
</pre></div>
<hr><p>Install modules manually so you can integrate them into your projects directly. LuaDist relies on <a href="http://www.cmake.org">CMake</a> to generate native build system for your platform, compiler and IDE. For example you can build Lua directly from its repository using the following approach.</p>
<div class="highlight"><pre><span class="nv">$ </span>git clone git://github.com/LuaDist/lua.git lua
<span class="nv">$ </span><span class="nb">cd </span>lua
<span class="nv">$ </span>mkdir _build <span class="o">&&</span> <span class="nb">cd </span>_build
<span class="nv">$ </span>cmake .. <span class="c"># or use ccmake or cmake-gui</span>
<span class="nv">$ </span>make install <span class="c"># or cmake --build . --target install</span>
</pre></div>
<p>More information about <a href="https://github.com/LuaDist/Repository/wiki/LuaDist:-Manual-Installation">building and configuring packages manually</a> is available on our <a href="https://github.com/LuaDist/Repository/wiki">Wiki</a>.</p>
<hr><h3>Links</h3>
<ul>
<li>
<a href="https://github.com/LuaDist/Repository">Repository</a> - Main repository of modules</li>
<li>
<a href="https://github.com/LuaDist/Repository/issues">Issues</a> - Please report bugs here</li>
<li>
<a href="https://github.com/LuaDist/Repository/wiki">Wiki</a> - Wiki containing detailed documentation</li>
<li>
<a href="https://github.com/LuaDist/Repository/wiki/LuaDist%3A-Creating-Packages">How to contribute</a> - Quick guide to module creation</li>
</ul>
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-39106542-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>