Depend www-nginx/ngx-lua-module if it is present, use default disable "(-)" USE-dependency on the nginx_module_http_lua USE flag of www-servers/nginx.
Signed-off-by: Zurab Kvachadze <zurabid2...@gmail.com> --- ...-lua-prometheus-0.1_pre20170610-r101.ebuild} | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) rename app-metrics/nginx-lua-prometheus/{nginx-lua-prometheus-0.1_pre20170610-r100.ebuild => nginx-lua-prometheus-0.1_pre20170610-r101.ebuild} (79%) diff --git a/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r100.ebuild b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild similarity index 79% rename from app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r100.ebuild rename to app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild index cd6f311c9ea0..19df5e6cefad 100644 --- a/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r100.ebuild +++ b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild @@ -1,7 +1,7 @@ -# Copyright 2019-2020 Gentoo Authors +# Copyright 2019-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 # This should be kept in sync with implementations supported # by www-servers/nginx @@ -16,6 +16,7 @@ inherit lua-single DESCRIPTION="Library that exports Nginx metrics to Prometheus" HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus" SRC_URI="https://github.com/knyar/${PN}/archive/${TAG}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${TAG}" LICENSE="MIT" SLOT="0" @@ -23,14 +24,16 @@ KEYWORDS="~amd64" REQUIRED_USE="${LUA_REQUIRED_USE}" +BDEPEND="virtual/pkgconfig" + COMMON_DEPEND="${LUA_DEPS}" DEPEND="${COMMON_DEPEND}" RDEPEND="${COMMON_DEPEND} - www-servers/nginx[nginx_modules_http_lua,${LUA_SINGLE_USEDEP}]" -BDEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -S="${WORKDIR}/${PN}-${TAG}" + || ( + www-nginx/ngx-lua-module[${LUA_SINGLE_USEDEP}] + www-servers/nginx[nginx_modules_http_lua(-),${LUA_SINGLE_USEDEP}] + ) +" src_install() { insinto "$(lua_get_lmod_dir)"/${PN} -- 2.45.3