Files
ports/devel/stylua/Makefile
T
edd 3587190ac8 Import devel/stylua.
pkg/DESCR:
```
Deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and
Luau, built using full-moon. StyLua is inspired by the likes of
prettier, it parses your Lua codebase, and prints it back out from
scratch, enforcing a consistent code style.
```

Tested by Laurent Cheylus and rsadowski@, thanks.

OK rsadowski@ for a slightly earlier version of the port (only the version and
deps have changed in the meantime).
2025-04-24 08:09:04 +00:00

28 lines
584 B
Makefile

COMMENT = Lua code formatter
V = 2.1.0
DIST_TUPLE += github JohnnyMorganz StyLua v${V} .
DISTNAME = stylua-${V}
CATEGORIES = devel textproc
MAINTAINER = Edd Barrett <edd@openbsd.org>
# MPL-2.0
PERMIT_PACKAGE = Yes
WANTLIB += ${MODCARGO_WANTLIB}
MODULES = devel/cargo
CONFIGURE_STYLE = cargo
SEPARATE_BUILD = Yes
WRKSRC = ${WRKDIR}/StyLua-${V}
EXAMPLES_DIR = ${PREFIX}/share/examples/stylua
post-install:
${INSTALL_DATA_DIR} ${EXAMPLES_DIR}
${INSTALL_DATA} ${FILESDIR}/example_stylua.toml \
${EXAMPLES_DIR}/stylua.toml
.include "crates.inc"
.include <bsd.port.mk>