From d1ed71e548a858631b083c7da3985f157f0ce809 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Wed, 27 Nov 2024 14:52:47 +0300 Subject: [PATCH] feat(build): Add rockspec and build tooling for rusile module --- Makefile.am | 2 +- configure.ac | 1 + rusile.rockspec.in | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 rusile.rockspec.in diff --git a/Makefile.am b/Makefile.am index bb44bdb5e..eaa1a4836 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/configure.ac b/configure.ac index 098f34d58..ac639e639 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/rusile.rockspec.in b/rusile.rockspec.in new file mode 100644 index 000000000..95c75f9b1 --- /dev/null +++ b/rusile.rockspec.in @@ -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 ", + labels = { "typesetting" }, +} + +dependencies = { + "lua >= 5.1", + "luarocks-build-rust-mlua >= 0.2.3-1", +} + +build = { + type = "rust-mlua", + modules = { + "ru@PACKAGE_NAME@", + }, +} +