-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlua-fort-dev-1.rockspec
48 lines (40 loc) · 1.31 KB
/
lua-fort-dev-1.rockspec
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
local package_name = "lua-fort"
local package_version = "dev"
local rockspec_revision = "1"
local github_account_name = "nathanrpage97"
local github_repo_name = package_name
local git_checkout = package_version == "dev" and "master" or package_version
package = package_name
version = package_version .. "-" .. rockspec_revision
rockspec_format = "3.0"
source = {
url = "git://github.com/" .. github_account_name .. "/" .. package_name,
tag = git_checkout
}
description = {
summary = "A lua wrapper around the libfort ascii table c library",
detailed = [[
The lua-fort module provides ASCII table support for Lua. It wraps the fort library
https://github.com/seleznevae/libfort.
]],
homepage = "https://" .. github_account_name .. ".github.io/" ..
github_repo_name,
license = "MIT"
}
dependencies = {"lua >= 5.1"}
build = {
type = "builtin",
modules = {
cfort = {
sources = {"src/lfort.c", "src/fort.c"},
-- disable wchar as it isnt needed for lua
defines = {"FT_CONGIG_DISABLE_WCHAR"}
}
},
install = {lua = {fort = "src/fort.lua"}},
-- Override default build options (per platform)
platforms = {},
copy_directories = {"examples", "spec", "docs"}
}
test_dependencies = {"busted"}
test = {type = "busted"}