From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lua/lua-mmdb/
Date: Tue, 10 Dec 2024 11:32:16 +0000 (UTC) [thread overview]
Message-ID: <1733746525.17f9b0a61bb380c0a61e2a0b7c9109272aaa0efb.davidroman@gentoo> (raw)
commit: 17f9b0a61bb380c0a61e2a0b7c9109272aaa0efb
Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Dec 9 12:08:51 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Dec 9 12:15:25 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=17f9b0a6
dev-lua/lua-mmdb: new package, add 0.2
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
dev-lua/lua-mmdb/Manifest | 2 ++
dev-lua/lua-mmdb/lua-mmdb-0.2.ebuild | 60 ++++++++++++++++++++++++++++++++++++
dev-lua/lua-mmdb/metadata.xml | 11 +++++++
3 files changed, 73 insertions(+)
diff --git a/dev-lua/lua-mmdb/Manifest b/dev-lua/lua-mmdb/Manifest
new file mode 100644
index 000000000..2434dbed5
--- /dev/null
+++ b/dev-lua/lua-mmdb/Manifest
@@ -0,0 +1,2 @@
+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
diff --git a/dev-lua/lua-mmdb/lua-mmdb-0.2.ebuild b/dev-lua/lua-mmdb/lua-mmdb-0.2.ebuild
new file mode 100644
index 000000000..9a72b7c7a
--- /dev/null
+++ b/dev-lua/lua-mmdb/lua-mmdb-0.2.ebuild
@@ -0,0 +1,60 @@
+# 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
+}
diff --git a/dev-lua/lua-mmdb/metadata.xml b/dev-lua/lua-mmdb/metadata.xml
new file mode 100644
index 000000000..34a33461e
--- /dev/null
+++ b/dev-lua/lua-mmdb/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
next reply other threads:[~2024-12-10 11:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 11:32 David Roman [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-11 10:15 [gentoo-commits] repo/proj/guru:master commit in: dev-lua/lua-mmdb/ Florian Schmaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1733746525.17f9b0a61bb380c0a61e2a0b7c9109272aaa0efb.davidroman@gentoo \
--to=davidroman96@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox