Skip to content

Commit

Permalink
feat(build): Add rockspec and build tooling for rusile module
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 27, 2024
1 parent 4744dff commit d1ed71e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ endif !EMBEDDED_RESOURCES
dist_doc_DATA = README.md CHANGELOG.md
dist_pdf_DATA = $(_MANUAL)
dist_license_DATA = LICENSE.md
EXTRA_DIST = spec tests documentation sile-dev-1.rockspec fontconfig.conf
EXTRA_DIST = spec tests documentation sile-dev-1.rockspec rusile-dev-1.rockspec fontconfig.conf
EXTRA_DIST += build-aux/action-updater.js build-aux/cargo-updater.js build-aux/config.ld build-aux/decore-automake.sh build-aux/git-version-gen
EXTRA_DIST += Dockerfile build-aux/docker-bootstrap.sh build-aux/docker-fontconfig.conf hooks/build
EXTRA_DIST += build-aux/xml-entities-to-lua.xsl
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ AC_CONFIG_FILES([build-aux/transpile-tex-hyphen-patterns.lua], [chmod +x build-a
AC_CONFIG_FILES([Makefile justenough/Makefile sile-lua.1 core/features.lua core/pathsetup.lua core/version.lua])
AC_CONFIG_FILES([sile-lua:sile.in], [chmod +x sile-lua])
AC_CONFIG_FILES([tests/regressions.pl], [chmod +x tests/regressions.pl])
AC_CONFIG_FILES([rusile-dev-1.rockspec:rusile.rockspec.in])
AC_CONFIG_FILES([sile-dev-1.rockspec:sile.rockspec.in])
AC_CONFIG_FILES([src/sile-entry.sh], [chmod +x src/sile-entry.sh])

Expand Down
32 changes: 32 additions & 0 deletions rusile.rockspec.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
-- @ROCKSPECWARNING@
rockspec_format = "3.0"
package = "ru@PACKAGE_NAME@"
version = "dev-@ROCKREV@"

source = {
url = "git+https://github.com/sile-typesetter/sile.git",
branch = "master",
}

description = {
summary = "Lua bridge to Rust components of SILE",
detailed = [[The Rusty bits of SILE made available to Lua]],
license = "MIT",
homepage = "https://github.com/sile-typesetter/sile",
issues_url = "https://github.com/sile-typesetter/sile/issues",
maintainer = "Caleb Maclennan <caleb@alerque.com>",
labels = { "typesetting" },
}

dependencies = {
"lua >= 5.1",
"luarocks-build-rust-mlua >= 0.2.3-1",
}

build = {
type = "rust-mlua",
modules = {
"ru@PACKAGE_NAME@",
},
}

0 comments on commit d1ed71e

Please sign in to comment.