mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-16 06:28:52 -04:00
dev-lua/lua-mmdb: treeclean, promoted to ::gentoo
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
parent
e811349d21
commit
71e54db834
@ -1,2 +0,0 @@
|
||||
DIST lua-mmdb-0.2-maxminddb-1ca40fbf5223b61bc26c5dae4335942b56327c85.tar.gz 279109 BLAKE2B 6e8274bc6825474284b417836203fb2110e5df059e7ff93036b03058541c0e0bc1f3ceefb91d0a96b1b3df40390d8a64ebb08d81a77e1c66075e4dfdd8f3d88d SHA512 c9df12280843ea43243cb1578602b26c5ba28a7195d00e605445fdf2f78e4885e569dbf7c55e2ad4d338611930531a4cbb15ebf701fafb133ebbcfe0d9483f29
|
||||
DIST lua-mmdb-0.2.tar.gz 6430 BLAKE2B a3dfb25c9987a5c223b2cd9174b5206013f71b86b10273ab3005cf08320c9de953f1091655f011e75d2d49368010331432a99abd29ff0080dd3bd8392a9f688b SHA512 f45dbff51fbf04f11d4cc7592aae4cc72c38a421476cb2c37829fd2c59953148f012ad977251b8c5f9a358d7dc7acbf2abd3bf9f11b0d018d1297831a0bd80e1
|
@ -1,60 +0,0 @@
|
||||
# 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="mmdblua"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Maxmind database parser for lua"
|
||||
HOMEPAGE="https://github.com/daurnimator/mmdblua"
|
||||
EGIT_COMMIT_MAXMIND="1ca40fbf5223b61bc26c5dae4335942b56327c85"
|
||||
SRC_URI="https://github.com/daurnimator/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
test? ( https://github.com/maxmind/MaxMind-DB/archive/${EGIT_COMMIT_MAXMIND}.tar.gz
|
||||
-> ${P}-maxminddb-${EGIT_COMMIT_MAXMIND}.tar.gz )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${LUA_DEPS}
|
||||
lua_targets_luajit? ( dev-lua/compat53[lua_targets_luajit(-)] )
|
||||
lua_targets_lua5-1? ( dev-lua/compat53[lua_targets_lua5-1(-)] )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
lua_enable_tests busted
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.gz
|
||||
|
||||
if use test; then
|
||||
tar -xf "${DISTDIR}"/${P}-maxminddb-${EGIT_COMMIT_MAXMIND}.tar.gz \
|
||||
-C "${S}"/spec/MaxMind-DB --strip-components=1 || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e 's:require "mmdb":require "mmdb.init":' -i spec/test-data_spec.lua || die
|
||||
lua_copy_sources
|
||||
}
|
||||
|
||||
lua_src_install() {
|
||||
insinto $(lua_get_lmod_dir)/mmdb/
|
||||
doins mmdb/init.lua
|
||||
}
|
||||
|
||||
src_install() {
|
||||
lua_foreach_impl lua_src_install
|
||||
einstalldocs
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
<?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>
|
||||
<upstream>
|
||||
<remote-id type="github">daurnimator/mmdblua</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user