Gentoo Archives: gentoo-commits

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