diff options
Diffstat (limited to 'dev-lua/resty-lrucache')
-rw-r--r-- | dev-lua/resty-lrucache/Manifest | 2 | ||||
-rw-r--r-- | dev-lua/resty-lrucache/metadata.xml | 12 | ||||
-rw-r--r-- | dev-lua/resty-lrucache/resty-lrucache-0.13.ebuild | 47 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-lua/resty-lrucache/Manifest b/dev-lua/resty-lrucache/Manifest new file mode 100644 index 0000000..498b479 --- /dev/null +++ b/dev-lua/resty-lrucache/Manifest @@ -0,0 +1,2 @@ +DIST resty-lrucache-0.13.tar.gz 17429 BLAKE2B c82bfab854332787cac1ed6d8dc6975d8c1c372119e06361ff792012f7d24970adc189aaf4fccff09fd38240df74d8d981f7475979d769ebac41c63d25639e4e SHA512 d6491acdca5d7b02feef1bf7fafb31798ae3194ad759a9ba87e895ef4e71268a2785291504f73e07e6872bed0d30147ca5e2cd0a0250db11f0a361af43426dfe +EBUILD resty-lrucache-0.13.ebuild 953 BLAKE2B 328c37a25350e81eb5e090e27b0922c7a714e6282df9c977f6b876e31c961b714bb93909b7c12afbce1e51a3930ebc8d844959cf36efa40323f5b1c354c8db63 SHA512 a66eaa272da9f355fa5a24a1380234f6108320d686b95f2c22286404ac9812bb9476745e3b430e28d8c2f27879d033eca7a5711d3930bd81f89c869771c9f2b5 diff --git a/dev-lua/resty-lrucache/metadata.xml b/dev-lua/resty-lrucache/metadata.xml new file mode 100644 index 0000000..718dcf0 --- /dev/null +++ b/dev-lua/resty-lrucache/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/openresty/lua-resty-lrucache/issues</bugs-to> + <remote-id type="github">openresty/lua-resty-lrucache</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-lua/resty-lrucache/resty-lrucache-0.13.ebuild b/dev-lua/resty-lrucache/resty-lrucache-0.13.ebuild new file mode 100644 index 0000000..a7059b7 --- /dev/null +++ b/dev-lua/resty-lrucache/resty-lrucache-0.13.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( luajit ) + +inherit lua + +DESCRIPTION="A simple LRU cache for OpenResty and the ngx_lua module (based on LuaJIT FFI)" +HOMEPAGE="https://github.com/openresty/lua-resty-lrucache" + +if [[ "${PV}" =~ 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/openresty/lua-resty-lrucache" +else + SRC_URI="https://github.com/openresty/lua-resty-lrucache/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/lua-${P}" + KEYWORDS="~amd64 ~arm ~x86" + # TODO: arm64 and others +fi + +LICENSE="BSD" +SLOT="0" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +IUSE="+lua_targets_luajit" + +RDEPEND=" + ${LUA_DEPS} + www-servers/nginx:*[nginx_modules_http_lua] +" +DEPEND=" + ${RDEPEND} +" + +each_lua_install() { + insinto "$(lua_get_lmod_dir)" + doins -r lib/resty +} + +src_compile() { :; } + +src_install() { + lua_foreach_impl each_lua_install + einstalldocs +} |