dev-lua/lpeg-patterns: new package, add 0.5

dep for dev-lua/lua-http

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT 2024-12-10 15:26:21 +00:00 committed by Sam James
parent d778bd77f6
commit e00f685c7b
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST lpeg-patterns-0.5.tar.gz 26183 BLAKE2B 005ca2d99710f4b3c6eddb6d07f89d65dd0450ca522fac9717318388d86b24b57b7a4460e6a10f35b0c1cbc7446f21ff0b4438e0a41ae7f5fdbcc839eeac1025 SHA512 74e36083872cfa7ff8bb03927d075680b490b4d7ba55cee0cad7e1e27e6744809b05286a80967a19cd79f526168f53d362efa2b87c318efad726fa1ba3708f80

View File

@ -0,0 +1,41 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-{1..4} luajit )
inherit lua
MY_PN="${PN/-/_}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A collection of LPEG patterns"
HOMEPAGE="https://github.com/daurnimator/lpeg_patterns"
SRC_URI="https://github.com/daurnimator/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
REQUIRED_USE="${LUA_REQUIRED_USE}"
DEPEND="
${LUA_DEPS}
dev-lua/lpeg[${LUA_USEDEP}]
"
RDEPEND="${DEPEND}"
lua_enable_tests busted
lua_src_install() {
insinto $(lua_get_lmod_dir)/${MY_PN}/
doins ${MY_PN}/*.lua
}
src_install() {
lua_foreach_impl lua_src_install
einstalldocs
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>nicolas.parlant@parhuet.fr</email>
<name>Nicolas PARLANT</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">daurnimator/lpeg_patterns</remote-id>
</upstream>
</pkgmetadata>