From 1210a708317f63ab7bd35a07b6d4327ff6f54cad Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Mon, 10 Feb 2025 10:42:03 +0000 Subject: [PATCH] media-libs/zvbi: add 0.2.44 project moved to github use eautoreconf for libtoolize and aclocal deps : remove zlib useflags : add test add proxy licenses : add BSD-2, LGPL-2.1+ and MIT (see COPYING.md) Signed-off-by: Nicolas PARLANT Closes: https://github.com/gentoo/gentoo/pull/40510 Signed-off-by: Sam James --- media-libs/zvbi/Manifest | 1 + media-libs/zvbi/metadata.xml | 6 ++- media-libs/zvbi/zvbi-0.2.44.ebuild | 66 ++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 media-libs/zvbi/zvbi-0.2.44.ebuild diff --git a/media-libs/zvbi/Manifest b/media-libs/zvbi/Manifest index 8a4f4a33460b1..126199c52c5a8 100644 --- a/media-libs/zvbi/Manifest +++ b/media-libs/zvbi/Manifest @@ -1 +1,2 @@ DIST zvbi-0.2.35.tar.bz2 1047761 BLAKE2B 5fa5fec7e39c9adc6590f3f6841a40ca723ffb6a017854f71f92f32232103672a6f48678b244a84f0cad742c378ffdb247fe33e5e3cdb1ee4d737e92f650a548 SHA512 3d73eb0a7d05fdf1e3f8a74cc9d4fcb2a0287285904d59230c832f42b91afb072e96bda7e396ef07f268348061a51242925746db124bbb713cf56bdfabdada5d +DIST zvbi-0.2.44.tar.gz 942350 BLAKE2B 1e032acb376f29fbf15a63892d44d24e5a49e834bd0503331b8b86ae67934eeb0736e8a8f8ffa054dc0a096cc2ceccf117e2523654b28aacd7639e8500e88e5c SHA512 74b7d44faf42f919ebd3ccb69f8567f56909075d3acf4a3b4dfcbdf85489492f27d8a04173e0010f59706356e4078cd10911945f87e2596de2b897672d1e55cb diff --git a/media-libs/zvbi/metadata.xml b/media-libs/zvbi/metadata.xml index 3a6775a703766..ec73fb51d77a2 100644 --- a/media-libs/zvbi/metadata.xml +++ b/media-libs/zvbi/metadata.xml @@ -2,7 +2,11 @@ + + Share V4L and V4L2 VBI devices between multiple applications + - zapping + zapping + zapping-vbi/zvbi diff --git a/media-libs/zvbi/zvbi-0.2.44.ebuild b/media-libs/zvbi/zvbi-0.2.44.ebuild new file mode 100644 index 0000000000000..1457dcbb6b7c8 --- /dev/null +++ b/media-libs/zvbi/zvbi-0.2.44.ebuild @@ -0,0 +1,66 @@ +# 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 ) +" + +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/*.{css,gif,html,js,png,svg} ) + 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 +}