dev-lua/fnlfmt - 0.3.2 (dm9pZCAq)

Search

Package Information

Description:
A formatter for Fennel code
Homepage:
https://git.sr.ht/~technomancy/fnlfmt
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
0.3.2 8 amd64 ~x86 0
View Raw Ebuild
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

LUA_COMPAT=(lua5-{1..4} luajit)

inherit lua-single

DESCRIPTION="A formatter for Fennel code"
HOMEPAGE="https://git.sr.ht/~technomancy/fnlfmt"
SRC_URI="
	https://git.sr.ht/~technomancy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"

DEPEND="${LUA_DEPS}"
RDEPEND="${DEPEND}"
BDEPEND="dev-lang/fennel"

src_compile() {
	(
		set -x
		{
			printf '%s\n\n' "#!${LUA}" &&
				fennel --require-as-include --compile cli.fnl
		} >"./${PN}" || die
	)
}

src_install() {
	dobin "./${PN}"
}

Dependencies

DEPEND

${LUA_DEPS}

RDEPEND

${LUA_DEPS}

BDEPEND

dev-lang/fennel

Manifest for 0.3.2

Type File Size Source URLs
DIST fnlfmt-0.3.2.tar.gz 130528 bytes https://git.sr.ht/~technomancy/fnlfmt/archive/0.3.2.tar.gz