# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

MY_PN="nginx-vod-module"
MY_PV="1.$(ver_cut 3-)"

NGINX_MOD_INSTALL_CONF_STUB=1
inherit nginx-module

DESCRIPTION="NGINX-based MP4 Repackager"
HOMEPAGE="https://github.com/dio-az/nginx-vod-module"
SRC_URI="https://github.com/dio-az/${MY_PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/${MY_PN}-${MY_PV}

LICENSE="AGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

# Uses custom Python-based testing framework.
RESTRICT="test"

DEPEND="
	dev-libs/openssl:=
	dev-libs/libxml2:=
	media-video/ffmpeg:=
	virtual/zlib:=
	virtual/libiconv
"
RDEPEND="${DEPEND}"
