media-libs/zvbi - 0.2.44 (gentoo)

Search

Package Information

Description:
VBI Decoding Library for Zapping
Homepage:
https://github.com/zapping-vbi/zvbi/
License:
GPL-2+ LGPL-2+ LGPL-2.1+ MIT

Ebuild Details

Version EAPI Keywords Slot
0.2.44 8 ~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools multilib-minimal

DESCRIPTION="VBI Decoding Library for Zapping"
HOMEPAGE="https://github.com/zapping-vbi/zvbi/"
SRC_URI="https://github.com/zapping-vbi/zvbi/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+ MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
IUSE="doc dvb nls proxy test v4l X"
RESTRICT="!test? ( test )"

RDEPEND="
	media-libs/libpng:=[${MULTILIB_USEDEP}]
	nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
	X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
"
DEPEND="${RDEPEND}
	virtual/os-headers
	X? ( x11-libs/libXt )
"
BDEPEND="
	doc? ( app-text/doxygen )
	nls? ( sys-devel/gettext )
"

PATCHES=(
	# fix typo/c23
	# https://github.com/zapping-vbi/zvbi/pull/59.patch
	"${FILESDIR}"/${P}-fix_typo.patch
)

src_prepare() {
	default
	eautoreconf
}

multilib_src_configure() {
	ECONF_SOURCE="${S}" econf \
		$(use_enable dvb) \
		$(use_enable nls) \
		$(use_enable proxy) \
		$(use_enable test tests) \
		$(use_enable v4l) \
		$(use_with X x) \
		$(multilib_native_use_with doc doxygen)
}

multilib_src_install() {
	emake DESTDIR="${D}" install

	if multilib_is_native_abi; then
		if use doc; then
			local HTML_DOCS=( doc/html/. )
			einstalldocs
		fi
	fi
}

multilib_src_install_all() {
	# examples are not built but used as doc
	local DOCS=( AUTHORS BUGS ChangeLog NEWS README.md TODO examples )
	docompress -x /usr/share/doc/${PF}/examples
	einstalldocs

	find "${ED}" -name '*.la' -delete
}

USE Flags

doc
dvb
nls
v4l
X

Dependencies

DEPEND

	media-libs/libpng:=[${MULTILIB_USEDEP}]
	nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
	X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )

	virtual/os-headers
	X? ( x11-libs/libXt )

RDEPEND

	media-libs/libpng:=[${MULTILIB_USEDEP}]
	nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
	X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )

BDEPEND

	doc? ( app-text/doxygen )
	nls? ( sys-devel/gettext )

Manifest for 0.2.44

Type File Size Source URLs
DIST zvbi-0.2.44.tar.gz 942350 bytes https://github.com/zapping-vbi/zvbi/archive/v0.2.44.tar.gz