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 <nicolas.parlant@parhuet.fr>
Closes: https://github.com/gentoo/gentoo/pull/40510
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-02-10 10:42:03 +00:00
committed by Sam James
parent f0a0ec7d60
commit 1210a70831
3 changed files with 72 additions and 1 deletions

View File

@@ -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

View File

@@ -2,7 +2,11 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<use>
<flag name="proxy">Share V4L and V4L2 VBI devices between multiple applications</flag>
</use>
<upstream>
<remote-id type="sourceforge">zapping</remote-id>
<remote-id type="sourceforge">zapping</remote-id><!-- old -->
<remote-id type="github">zapping-vbi/zvbi</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}