Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/pipewire/
Date: Tue, 25 Aug 2020 21:51:08
Message-Id: 1598392260.82437e8eb66de196816c2c547b027b23ad024215.prometheanfire@gentoo
1 commit: 82437e8eb66de196816c2c547b027b23ad024215
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 25 21:50:33 2020 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 25 21:51:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82437e8e
7
8 media-video/pipewire: 0.3.10 bump
9
10 Package-Manager: Portage-3.0.4, Repoman-2.3.23
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 media-video/pipewire/Manifest | 1 +
14 media-video/pipewire/pipewire-0.3.10.ebuild | 136 ++++++++++++++++++++++++++++
15 2 files changed, 137 insertions(+)
16
17 diff --git a/media-video/pipewire/Manifest b/media-video/pipewire/Manifest
18 index 54aa64d33b8..51011de456e 100644
19 --- a/media-video/pipewire/Manifest
20 +++ b/media-video/pipewire/Manifest
21 @@ -1,2 +1,3 @@
22 DIST pipewire-0.2.7.tar.gz 421644 BLAKE2B d2ccb56a9ea5ea7782678deb6eae0b0a70da1fa69e807398062d388733901839f15a2f0f7db982fbebd2b2759f443709e6c1950b6367f3ed4801d6c2d6109e73 SHA512 10d3e20cc3d233fbcd1fc39702ae3043a656ebcd9cd3c39c77f0cc2bf42ff4956fc03e7933c7b397bca446c63f45ddacea948d5ec7e4a3300499fa2794f14334
23 +DIST pipewire-0.3.10.tar.gz 1148297 BLAKE2B d890b8e6697b17be9f8706a7228b9c79631120550ac51d7fbea8b5d05ca161ce6142a5666a6a61db618d4da0519676160ba1180cf9274865d879f4bb0da2a8e7 SHA512 f2f3dd7ce9b9f3a5ab55b6da97cd64419dad5115714848ce8893795c0ed2fd2fe0059240ec9fe1c92fb1442caf8d7071e415afe6712500be1c29fd001293cf0d
24 DIST pipewire-0.3.7.tar.gz 1095307 BLAKE2B 31f266d39683f53ea8cd7823d40b241bae29a59c2658f390fb9178dbdbbe1f7145638b5bd1bdae0dc13a30c1d8d2f44ff224f230211e75ab5936cfb8ccacc928 SHA512 2adaa8689b77c5a3a4710f979d23a737daa66f37ebfca9cf95f6c6a1dad770c52a2998959d52c45540b5b885568146b42981d106a2653ff8f167e0b531ee92f9
25
26 diff --git a/media-video/pipewire/pipewire-0.3.10.ebuild b/media-video/pipewire/pipewire-0.3.10.ebuild
27 new file mode 100644
28 index 00000000000..7396ae3ab65
29 --- /dev/null
30 +++ b/media-video/pipewire/pipewire-0.3.10.ebuild
31 @@ -0,0 +1,136 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit meson
38 +
39 +if [[ ${PV} == 9999 ]]; then
40 + EGIT_REPO_URI="https://github.com/PipeWire/pipewire.git"
41 + EGIT_BRANCH="work"
42 + inherit git-r3
43 +else
44 + SRC_URI="https://github.com/PipeWire/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
46 +fi
47 +
48 +DESCRIPTION="Multimedia processing graphs"
49 +HOMEPAGE="https://pipewire.org/"
50 +
51 +LICENSE="LGPL-2.1+"
52 +SLOT="0/0.3"
53 +IUSE="bluetooth debug doc ffmpeg gstreamer jack pulseaudio systemd test vulkan X"
54 +
55 +BDEPEND="
56 + app-doc/xmltoman
57 + doc? (
58 + app-doc/doxygen
59 + media-gfx/graphviz
60 + )
61 +"
62 +RDEPEND="
63 + >=media-libs/alsa-lib-1.1.7
64 + media-libs/libsdl2
65 + >=media-libs/libsndfile-1.0.20
66 + sys-apps/dbus
67 + virtual/libudev
68 + bluetooth? (
69 + media-libs/sbc
70 + net-wireless/bluez:=
71 + )
72 + ffmpeg? ( media-video/ffmpeg:= )
73 + gstreamer? (
74 + >=dev-libs/glib-2.32.0:2
75 + >=media-libs/gstreamer-1.10.0:1.0
76 + media-libs/gst-plugins-base:1.0
77 + )
78 + jack? ( >=media-sound/jack2-1.9.10:2 )
79 + pulseaudio? (
80 + dev-libs/glib:2
81 + >=media-sound/pulseaudio-11.1
82 + )
83 + systemd? ( sys-apps/systemd )
84 + vulkan? ( media-libs/vulkan-loader )
85 + X? ( x11-libs/libX11 )
86 +"
87 +DEPEND="${RDEPEND}
88 + vulkan? ( dev-util/vulkan-headers )
89 +"
90 +
91 +DOCS=( {README,INSTALL}.md NEWS )
92 +
93 +RESTRICT="!test? ( test )"
94 +
95 +src_prepare() {
96 + spa_use() {
97 + if ! in_iuse ${1} || ! use ${1}; then
98 + sed -e "/^add-spa-lib.*${1}/s/^/#${2-$1}-disabled-by-USE-no-${1}\:/" \
99 + -e "/^load-module.*${1}/s/^/#${2-$1}-disabled-by-USE-no-${1}\:/" \
100 + -i src/daemon/pipewire.conf.in || die
101 + fi
102 + }
103 +
104 + default
105 + spa_use libcamera
106 + spa_use rtkit
107 + spa_use bluetooth bluez5
108 + spa_use jack
109 + spa_use vulkan
110 +}
111 +
112 +src_configure() {
113 + local emesonargs=(
114 + -Dexamples=true # contains required pipewire-media-session
115 + -Dman=true
116 + -Dspa=true
117 + -Dspa-plugins=true
118 + --buildtype=$(usex debug debugoptimized plain)
119 + # alsa plugin and jack/pulseaudio emulation
120 + -Dpipewire-alsa=true
121 + $(meson_use jack pipewire-jack)
122 + $(meson_use pulseaudio pipewire-pulseaudio)
123 + # spa-plugins
124 + # we install alsa support unconditionally
125 + $(meson_use bluetooth bluez5)
126 + $(meson_use ffmpeg)
127 + $(meson_use jack)
128 + $(meson_use vulkan)
129 + # libcamera is not packaged
130 + # misc
131 + $(meson_use doc docs)
132 + $(meson_use gstreamer)
133 + $(meson_use systemd)
134 + $(meson_use test test)
135 + $(meson_use test tests)
136 + )
137 + meson_src_configure
138 +}
139 +
140 +src_install() {
141 + meson_src_install
142 +
143 + dosym ../../../usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d/50-pipewire.conf
144 +
145 +# # TODO: this breaks alsa users
146 +# if use alsa; then
147 +# dosym ../../../usr/share/alsa/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/99-pipewire-default.conf
148 +# fi
149 +}
150 +
151 +pkg_postinst() {
152 + elog "Package has optional sys-auth/rtkit RUNTIME support that may be disabled"
153 + elog "by setting DISABLE_RTKIT env var."
154 + elog "To enable rtkit, uncomment the load-module line in /etc/pipewire/pipewire.conf"
155 + elog
156 + if use jack; then
157 + elog "Please note that even though the libraries for JACK emulation have"
158 + elog "been installed, this ebuild is not yet wired up to replace a JACK server."
159 + elog
160 + fi
161 + if use pulseaudio; then
162 + elog "Please note that even though the libraries for PulseAudio emulation have"
163 + elog "been installed, this ebuild is not yet wired up to replace PulseAudio."
164 + elog
165 + fi
166 + elog "Read INSTALL.md for information about ALSA plugin or JACK/PulseAudio emulation."
167 +}