Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/v4l-utils/
Date: Sat, 18 Mar 2023 23:38:46
Message-Id: 1679182701.ec462e5f4209a768987299030d463d6d4c5c4d2f.chewi@gentoo
1 commit: ec462e5f4209a768987299030d463d6d4c5c4d2f
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 18 22:42:17 2023 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 18 23:38:21 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec462e5f
7
8 media-tv/v4l-utils: Version bump to 1.24.1
9
10 Closes: https://bugs.gentoo.org/878225
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 media-tv/v4l-utils/Manifest | 1 +
14 media-tv/v4l-utils/v4l-utils-1.24.1.ebuild | 119 +++++++++++++++++++++++++++++
15 2 files changed, 120 insertions(+)
16
17 diff --git a/media-tv/v4l-utils/Manifest b/media-tv/v4l-utils/Manifest
18 index eaca215a25f2..9a88ad1c15fe 100644
19 --- a/media-tv/v4l-utils/Manifest
20 +++ b/media-tv/v4l-utils/Manifest
21 @@ -1 +1,2 @@
22 DIST v4l-utils-1.22.1.tar.bz2 2086238 BLAKE2B a3f01a17ea7c8925c74dd883d30b42f54b7926d253dac79e4cadaba43abc33672804257b3b92e5aa640ead6b5aaaa2458f05e21642044d7dea77e5580a8dbe9a SHA512 8a634d8995d13f453dfaf90ca5d0dfb26f2f4b10a0d200d76a949c46f77040d12fc0a5b35e05d7b1ba68bcfc85a445be5a5ab1d4a7d4eabfe3a254038ccc6170
23 +DIST v4l-utils-1.24.1.tar.bz2 2238340 BLAKE2B 1702918699d47b17467e012c2b1875c58851175c1007351a3b40d0b0fa40437eb695efa9e21afe3351f66780899d45798eef7f23c90a4831bface70a245b8a54 SHA512 1e82ba125285e875bf4a216adedab9147009e6af1aadd79a3a1770231d3c96ec29245b33e75f69a9ce1b25011e71746db242c778ac3369148de1e9de2e318663
24
25 diff --git a/media-tv/v4l-utils/v4l-utils-1.24.1.ebuild b/media-tv/v4l-utils/v4l-utils-1.24.1.ebuild
26 new file mode 100644
27 index 000000000000..b04a84c6a468
28 --- /dev/null
29 +++ b/media-tv/v4l-utils/v4l-utils-1.24.1.ebuild
30 @@ -0,0 +1,119 @@
31 +# Copyright 1999-2023 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit autotools toolchain-funcs udev xdg
37 +
38 +DESCRIPTION="Separate utilities ebuild from upstream v4l-utils package"
39 +HOMEPAGE="https://git.linuxtv.org/v4l-utils.git"
40 +SRC_URI="https://linuxtv.org/downloads/v4l-utils/${P}.tar.bz2"
41 +
42 +LICENSE="GPL-2+ LGPL-2.1+"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
45 +IUSE="+bpf dvb opengl qt5 +udev"
46 +
47 +RDEPEND="
48 + >=media-libs/libv4l-${PV}[dvb?]
49 + bpf? (
50 + dev-libs/libbpf:=
51 + virtual/libelf:=
52 + )
53 + udev? ( virtual/libudev )
54 + qt5? (
55 + dev-qt/qtcore:5
56 + dev-qt/qtgui:5
57 + dev-qt/qtwidgets:5
58 + opengl? ( dev-qt/qtopengl:5[-gles2(-)] virtual/opengl )
59 + media-libs/alsa-lib
60 + )
61 + !media-tv/v4l2-ctl
62 + !<media-tv/ivtv-utils-1.4.0-r2
63 +"
64 +
65 +DEPEND="
66 + ${RDEPEND}
67 +"
68 +
69 +BDEPEND="
70 + sys-devel/gettext
71 + virtual/pkgconfig
72 + bpf? ( sys-devel/clang:*[llvm_targets_BPF] )
73 +"
74 +
75 +# Not really prebuilt but BPF objects make our QA checks go crazy.
76 +QA_PREBUILT="*/rc_keymaps/protocols/*.o"
77 +
78 +check_llvm() {
79 + if [[ ${MERGE_TYPE} != binary ]] && use bpf; then
80 + local clang=${ac_cv_prog_CLANG:-${CLANG:-clang}}
81 + ${clang} -target bpf -print-supported-cpus &>/dev/null ||
82 + die "${clang} does not support the BPF target. Please check LLVM_TARGETS."
83 + fi
84 +}
85 +
86 +pkg_pretend() {
87 + has_version -b sys-devel/clang && check_llvm
88 +}
89 +
90 +pkg_setup() {
91 + check_llvm
92 +}
93 +
94 +src_prepare() {
95 + default
96 + eautoreconf
97 +}
98 +
99 +src_configure() {
100 + if use qt5; then
101 + local qt5_paths=( \
102 + MOC="$($(tc-getPKG_CONFIG) --variable=host_bins Qt5Core)/moc" \
103 + UIC="$($(tc-getPKG_CONFIG) --variable=host_bins Qt5Core)/uic" \
104 + RCC="$($(tc-getPKG_CONFIG) --variable=host_bins Qt5Core)/rcc" \
105 + )
106 + if ! use opengl; then
107 + sed -e 's/Qt5OpenGL/DiSaBlEd/g' -i configure || die
108 + fi
109 + fi
110 +
111 + # Hard disable the flags that apply only to the libs.
112 + econf \
113 + --disable-static \
114 + $(use_enable dvb libdvbv5) \
115 + $(use_enable qt5 qv4l2) \
116 + $(use_enable qt5 qvidcap) \
117 + $(use_enable bpf) \
118 + --without-jpeg \
119 + $(use_with udev libudev) \
120 + --with-udevdir="$(get_udevdir)" \
121 + "${qt5_paths[@]}"
122 +}
123 +
124 +src_install() {
125 + emake -C utils DESTDIR="${D}" install
126 + emake -C contrib DESTDIR="${D}" install
127 +
128 + dodoc README.md
129 + newdoc utils/libv4l2util/TODO TODO.libv4l2util
130 + newdoc utils/libmedia_dev/README README.libmedia_dev
131 + newdoc utils/dvb/README README.dvb
132 + newdoc utils/v4l2-compliance/fixme.txt fixme.txt.v4l2-compliance
133 +}
134 +
135 +pkg_postinst() {
136 + xdg_pkg_postinst
137 + use udev && udev_reload
138 +
139 + if [[ -n ${REPLACING_VERSIONS} ]] && ver_test 1.20.0 -ge ${REPLACING_VERSIONS%% *}; then
140 + ewarn "WARNING! ir-keytable has changed significantly from version 1.20.0 so"
141 + ewarn "you may need to take action to avoid breakage. See"
142 + ewarn "https://bugs.gentoo.org/767175 for more details."
143 + fi
144 +}
145 +
146 +pkg_postrm() {
147 + xdg_pkg_postrm
148 + use udev && udev_reload
149 +}