pantry/projects/luajit.org/package.yml
Andrew 6285966ee7
luajit.org (#2939)
* luajit.org

* ROLLING ver

* wip

* maybe LUAJIT_PATH

* LUA_PATH

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-09-06 16:30:23 -04:00

41 lines
1.1 KiB
YAML

distributable:
url: https://github.com/LuaJIT/LuaJIT/archive/v{{version.raw}}.ROLLING.tar.gz
strip-components: 1
versions:
github: LuaJIT/LuaJIT/tags
match: /v\d+\.\d+\.ROLLING/
strip:
- /^v/
- /\.ROLLING/
runtime:
env:
LUA_PATH: "{{prefix}}/share/luajit-{{version.marketing}}/?.lua"
build:
dependencies:
darwin:
tea.xyz/gx/cc: c99
linux:
gnu.org/gcc: '*'
tea.xyz/gx/make: '*'
script:
- make --jobs {{hw.concurrency}} amalg PREFIX={{prefix}}
- make --jobs {{hw.concurrency}} install PREFIX={{prefix}}
- mkdir -p {{prefix}}/doc
- mv doc/* {{prefix}}/doc/
- run: ln -s luajit-{{version.raw}}. luajit
working-directory: "{{prefix}}/bin"
- run: |
ln -s libluajit-5.1.dylib libluajit.dylib
ln -s libluajit-5.1.a libluajit.a
working-directory: "{{prefix}}/lib"
provides:
- bin/luajit
- bin/luajit-{{version.marketing}}.
test:
script:
- luajit -v | grep {{version.marketing}}
- luajit test.lua | grep 55
- luajit -e "print(package.path)"
- luajit -b test.lua test.o
- ls . | grep "test.o"