author | Myhailo Danylenko <isbear@ukrpost.net> |
Sat, 05 Mar 2016 15:43:04 +0200 | |
changeset 59 | 19cfaceda6bb |
parent 54 | 6bef2082e5f9 |
permissions | -rw-r--r-- |
0 | 1 |
|
49 | 2 |
# Loudmouth interface for lua |
3 |
||
54
6bef2082e5f9
v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents:
52
diff
changeset
|
4 |
This interface to loudmouth XMPP client library for lua 5.1 or 5.2. |
49 | 5 |
|
6 |
Main loudmouth project is now unmaintained, but mcabber community keeps |
|
7 |
working version with some improvements at |
|
8 |
<http://github.com/mcabber/loudmouth>. |
|
6
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
9 |
|
49 | 10 |
Test script depends on my glib module, and thus is unusable as is. |
11 |
Still, it is a good example of how things are working. |
|
12 |
||
13 |
This module should be used as follows: |
|
14 |
lm = require 'lm' |
|
15 |
i.e., you should assign return value of *require* to some variable. |
|
16 |
||
17 |
Loudmouth uses glib main loop to work, thus you should use this module |
|
18 |
in a glib loop environment, provided either by your glib-based program |
|
19 |
or by some other module, eg lua binding for gtk+ or my glib module. |
|
20 |
||
21 |
# Installation |
|
23 | 22 |
|
11
a8c6460d612b
Naming scheme change to more ld-friendly
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
23 |
To install it, you need: |
49 | 24 |
|
25 |
* lua (optional, to run test) |
|
26 |
* liblua headers and library |
|
27 |
* glib headers and library |
|
28 |
* loudmouth headers and library |
|
29 |
* cmake |
|
30 |
* c compiler (gcc) |
|
31 |
* linker (binutils) |
|
32 |
* pkg-config (to detect glib and loudmouth) |
|
33 |
* perl (optional, to generate documentation) |
|
11
a8c6460d612b
Naming scheme change to more ld-friendly
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
34 |
|
49 | 35 |
Then do: |
0 | 36 |
|
49 | 37 |
$ mkdir build |
38 |
$ cd build |
|
39 |
$ cmake .. |
|
52 | 40 |
$ make edit_cache |
49 | 41 |
$ make |
42 |
# make install |
|
43 |
||
44 |
Debian users can instead of make install do: |
|
45 |
||
46 |
$ make package |
|
54
6bef2082e5f9
v0.9.2 Support for lua 5.2
Myhailo Danylenko <isbear@ukrpost.net>
parents:
52
diff
changeset
|
47 |
# dpkg -i lua5.?-loudmouth_*.deb |
0 | 48 |
|
26
1f7e8b53b255
Detect lua interpreter presence for testing
Myhailo Danylenko <isbear@ukrpost.net>
parents:
24
diff
changeset
|
49 |
Users of other systems can set other CPack generator using cache editor. |
20 | 50 |
|
49 | 51 |
# License |
24
1ad539cb8dc6
Turn off debugging, note on require'ing
Myhailo Danylenko <isbear@ukrpost.net>
parents:
23
diff
changeset
|
52 |
|
49 | 53 |
This code underlies terms of GNU GPL v2 or later. You can find it in |
54 |
file COPYING from this distribution or on a GNU web-site |
|
55 |
<http://www.gnu.org/licenses/>. |
|
26
1f7e8b53b255
Detect lua interpreter presence for testing
Myhailo Danylenko <isbear@ukrpost.net>
parents:
24
diff
changeset
|
56 |
|
49 | 57 |
# Contact |
0 | 58 |
|
59 |
I will be happy to get feedback, patches, suggestions, etc. |
|
33 | 60 |
You can send me email or contact via jabber <isbear@unixzone.org.ua>. |
0 | 61 |
|
5
e617c9cf6dd3
Updates to build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
62 |
-- Myhailo Danylenko <isbear@ukrpost.net> |
0 | 63 |