1 # Copyright 2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # This is the upstream tag which corresponds to this release.
7 # It needs to be updated with every bump.
10 inherit toolchain-funcs
12 DESCRIPTION="Library that exports Nginx metrics to Prometheus"
13 HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus"
14 SRC_URI="https://github.com/knyar/${PN}/archive/${TAG}.tar.gz -> ${P}.tar.gz"
20 COMMON_DEPEND=">=dev-lang/lua-5.1:="
21 DEPEND="${COMMON_DEPEND}"
22 RDEPEND="${COMMON_DEPEND}
23 www-servers/nginx[nginx_modules_http_lua]"
24 BDEPEND="${COMMON_DEPEND}
27 S="${WORKDIR}/${PN}-${TAG}"
30 insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"/${PN}