I've just finished writing the rockspec for org.conman.iconv, a wrapper
for the iconv() library call to transform strings from one character set to
another.
Yes, the actual module is called "org.conman.iconv". The modules I write
I usually stick under the "org.conman" namespace and while this didn't go
over that well on the main Lua mailing list, it wasn't because of the
concept (namespaces are good) but the actual namespace used (org.conman).
I'm not sure how people here will react though.
Anyway, it's for Lua 5.1. If there is enough interest, I could do patches
for Lua 5.2.
-spc
package = "org.conman.iconv"
version = "1.1.0-1"
source =
{
url = "https://raw.github.com/spc476/lua-conmanorg/iconv-1.1.0/src/iconv.c"
}
description =
{
homepage =
"https://github.com/spc476/lua-conmanorg/blob/iconv-1.1.0/src/iconv.c",
maintainer = "Sean Conner <s...@conman.org>",
license = "LGPL",
summary = "Lua wrapper for IConv",
detailed = [[
A Lua module that wraps the iconv library call. It's simple to use:
iconv = require "org.conman.iconv"
trans = iconv.open("iso-8859-1","utf-8") -- from ISO-8869-1 to UTF-8
x = This is \255 test" -- in ISO-8869-1
y = trans(x) -- to UTF-8
]]
}
dependencies =
{
"lua ~> 5.1"
}
external_dependencies =
{
ICONV = { header = "iconv.h" }
}
build =
{
type = "builtin",
copy_directories = {},
modules =
{
['org.conman.iconv'] = "iconv.c"
},
}
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers