mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 23:44:01 +02:00
3587190ac8
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).
28 lines
584 B
Makefile
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>
|