Skip to content

Commit

Permalink
Update rockspec
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Mar 29, 2024
1 parent 616d7a8 commit b0133e1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 32 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,14 @@ jobs:
sudo apt install --no-install-recommends libvips-dev
fi
- name: Lua dependencies
run: |
make dev
if [[ ${{ matrix.luaVersion }} == 5.* ]]; then make ffi; fi
- name: Lint with luacheck
run: |
luarocks install luacheck
luacheck -q .
- name: Busted tests
run: |
busted -o gtest -v spec
luarocks test spec/ -- -o gtest -v spec
windows:
Expand Down Expand Up @@ -86,17 +82,19 @@ jobs:
luarocks config --scope system lua_interpreter ${{ matrix.lua.exe }}.exe
luarocks config --scope system variables.LUA_DIR /mingw64/bin
luarocks config --scope system variables.LUA_INCDIR ${{ matrix.lua.incdir }}
make dev
if [[ ${{ matrix.lua.exe }} != luajit ]]; then make ffi; fi
if [[ ${{ matrix.lua.exe }} == luajit ]]; then
luarocks config --scope system rocks_provided.luaffi-tkl = 2.1-1
fi
- name: Add to PATH
run: |
echo $RUNNER_TEMP/msys64/mingw64/bin:$HOME/.luarocks/bin >> $GITHUB_PATH
- name: Lint with luacheck
run: |
luarocks install luacheck
luacheck.bat -q .
- name: Busted tests
run: |
busted.bat --lua=${{ matrix.lua.exe }} -o gtest -v spec
luarocks test --lua=${{ matrix.lua.exe }} spec -- -o gtest -v
16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

27 changes: 20 additions & 7 deletions lua-vips-1.1-10.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,29 @@ source = {
description = {
summary = "A fast image processing library with low memory needs.",
detailed = [[
This LuaJIT rock implements a binding for the libvips image
processing library. It is usually faster and needs less memory than
similar libraries.
This rock implements a binding for the libvips image processing library.
It is usually faster and needs less memory than similar libraries.
For use with standard Lua, the dependency luaffi-tkl is used as a drop-in
replacement for LuaJIT's ffi module.
]],
homepage = "https://github.com/libvips/lua-vips",
license = "MIT"
license = "MIT",
labels = { "image" }
}

dependencies = {
"lua >= 5.1", -- "luajit >= 2.0.0"
"luaffi-tkl >= 1.0.0",
"lua >= 5.1, < 5.5", -- standard Lua or LuaJIT >= 2.0
"luaffi-tkl >= 1.0" -- provided by VM with LuaJIT, use `luarocks config rocks_provided.luaffi-tkl = 2.1-1` in that case
}

test_dependencies = {
"luaffi-tkl >= 1.0", -- provided by VM with LuaJIT
"busted"
}

test = {
type = "busted"
}

build = {
Expand All @@ -36,5 +48,6 @@ build = {
["vips.Image"] = "src/vips/Image.lua",
["vips.Image_methods"] = "src/vips/Image_methods.lua",
["vips.Interpolate"] = "src/vips/Interpolate.lua"
}
},
copy_directories = { "example" }
}

0 comments on commit b0133e1

Please sign in to comment.