# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module systemd DESCRIPTION="OpenVox View - OpenVox Viewer Board" HOMEPAGE="https://github.com/voxpupuli/openvoxview" SRC_URI="https://github.com/voxpupuli/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz https://conan.grifon.fr/ftp/gentoo/${P}-deps.tar.xz https://conan.grifon.fr/ftp/gentoo/${P}-node_modules.tar.xz" LICENSE="Apache-2.0" LICENSE+=" BSD MIT" SLOT="0" KEYWORDS="amd64" DEPEND=" acct-group/openvoxview acct-user/openvoxview " RDEPEND="${DEPEND}" BDEPEND=" sys-apps/yarn " src_prepare() { eapply_user echo "yarn-offline-mirror \"${WORKDIR}/${P}-node_modules\"" >> ui/.yarnrc } src_compile() { pushd ui || die yarn install --offline --frozen-lockfile --no-progress || die yarn build || die popd go build -o ${PN} } src_install() { newinitd "${FILESDIR}/${PN}-initd" ${PN} newconfd "${FILESDIR}/${PN}-confd" ${PN} systemd_dounit "${S}/build/${PN}.service" dobin ${PN} insinto /etc/voxpupuli dodir /etc/voxpupuli newins "${S}/build/${PN}.yml" "${PN}.yml" }