Skip to content

Commit d1ed71e

Browse files
committed
feat(build): Add rockspec and build tooling for rusile module
1 parent 4744dff commit d1ed71e

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ endif !EMBEDDED_RESOURCES
7373
dist_doc_DATA = README.md CHANGELOG.md
7474
dist_pdf_DATA = $(_MANUAL)
7575
dist_license_DATA = LICENSE.md
76-
EXTRA_DIST = spec tests documentation sile-dev-1.rockspec fontconfig.conf
76+
EXTRA_DIST = spec tests documentation sile-dev-1.rockspec rusile-dev-1.rockspec fontconfig.conf
7777
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
7878
EXTRA_DIST += Dockerfile build-aux/docker-bootstrap.sh build-aux/docker-fontconfig.conf hooks/build
7979
EXTRA_DIST += build-aux/xml-entities-to-lua.xsl

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ AC_CONFIG_FILES([build-aux/transpile-tex-hyphen-patterns.lua], [chmod +x build-a
300300
AC_CONFIG_FILES([Makefile justenough/Makefile sile-lua.1 core/features.lua core/pathsetup.lua core/version.lua])
301301
AC_CONFIG_FILES([sile-lua:sile.in], [chmod +x sile-lua])
302302
AC_CONFIG_FILES([tests/regressions.pl], [chmod +x tests/regressions.pl])
303+
AC_CONFIG_FILES([rusile-dev-1.rockspec:rusile.rockspec.in])
303304
AC_CONFIG_FILES([sile-dev-1.rockspec:sile.rockspec.in])
304305
AC_CONFIG_FILES([src/sile-entry.sh], [chmod +x src/sile-entry.sh])
305306

rusile.rockspec.in

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
-- @ROCKSPECWARNING@
2+
rockspec_format = "3.0"
3+
package = "ru@PACKAGE_NAME@"
4+
version = "dev-@ROCKREV@"
5+
6+
source = {
7+
url = "git+https://github.com/sile-typesetter/sile.git",
8+
branch = "master",
9+
}
10+
11+
description = {
12+
summary = "Lua bridge to Rust components of SILE",
13+
detailed = [[The Rusty bits of SILE made available to Lua]],
14+
license = "MIT",
15+
homepage = "https://github.com/sile-typesetter/sile",
16+
issues_url = "https://github.com/sile-typesetter/sile/issues",
17+
maintainer = "Caleb Maclennan <caleb@alerque.com>",
18+
labels = { "typesetting" },
19+
}
20+
21+
dependencies = {
22+
"lua >= 5.1",
23+
"luarocks-build-rust-mlua >= 0.2.3-1",
24+
}
25+
26+
build = {
27+
type = "rust-mlua",
28+
modules = {
29+
"ru@PACKAGE_NAME@",
30+
},
31+
}
32+

0 commit comments

Comments
 (0)