I am building a private podspec to build Lua specifically in version 5.1.5 and with a number of add-ons for Lua.
The following podspec should match our "manual union" code and provide Lua with support for openssl, socket, and zlib.
{
"name": "Lua51",
"version": "5.1.5",
"summary": "The lua language (for embedding).",
"homepage": "https://github.com/qmx/lua",
"license": {
"type": "MIT"
},
"authors": {
"The Lua team": "team@lua.org"
},
"source": {
"http": "http://www.lua.org/ftp/lua-5.1.5.tar.gz",
"sha1": "b3882111ad02ecc6b972f8c1241647905cb2e3fc"
},
"platforms": {
"ios": "4.0",
"osx": "10.6"
},
"public_header_files": "src/*.h",
"source_files": "src/*.{c,h}",
"exclude_files": [
"src/lua.c",
"src/luac.c"
],
"requires_arc": false,
"subspecs": [
{
"name": "Socket",
"license": {
"file": "LICENSE"
},
"authors": {
"Bruno Silvestre": ""
},
"source": {
"git": "https://github.com/brunoos/luasocket.git",
"commit": "5edf093643cceb329392aec9606ab3988579b821"
},
"source_files": "src/*.*"
},
{
"name": "Sec",
"license": {
"file": "LICENSE"
},
"authors": {
"Bruno Silvestre": ""
},
"source": {
"git": "https://github.com/brunoos/luasec.git",
"tag": "luasec-0.5"
},
"source_files": [
"src/*.c",
"src/*.h",
"src/*.lua",
"src/luasocket/*.c",
"src/luasocket/*.h"
],
"public_header_files": [
"src/*.h",
"src/luasocket/*.h"
]
},
{
"name": "z",
"license": {
"type": "Info-ZIP"
},
"authors": {
"Kresten Krab Thorup": "krab@trifork.com"
},
"source": {
"git": "https://github.com/krestenkrab/luaz.git",
"commit": "ff51dbce77997d5e1c3fce206a7e5885bdf135a8"
},
"source_files": "src/*.*",
"exclude_files": []
}
]
}
However, when checking the output from:
pod spec lint Specs/Lua51/5.1.5/Lua51.podspec.json --verbose
I noticed that the .c files that were supposed to be downloaded and compiled are not.
For example, the luaz repository contains a luau.c file that is not visible anywhere. Only .c files compiled in the main specification (lua-5.1.5.tar.gz) are compiled, none of any routines are compiled.
I read and re-read cocoapods guides in the last day and a half, and this did not help me understand what was wrong.
, Lua -?