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