1 |
commit: 0c4fa0909a8ff4cf6e295d67fe4ec7c5f573cb10 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 29 21:12:49 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 29 21:12:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c4fa090 |
7 |
|
8 |
media-libs/libcanberra: migrate to libpulse dep |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
media-libs/libcanberra/libcanberra-0.30-r7.ebuild | 83 +++++++++++++++++++++++ |
13 |
1 file changed, 83 insertions(+) |
14 |
|
15 |
diff --git a/media-libs/libcanberra/libcanberra-0.30-r7.ebuild b/media-libs/libcanberra/libcanberra-0.30-r7.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..9cd8f36ea291 |
18 |
--- /dev/null |
19 |
+++ b/media-libs/libcanberra/libcanberra-0.30-r7.ebuild |
20 |
@@ -0,0 +1,83 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+inherit multilib-minimal systemd |
26 |
+ |
27 |
+DESCRIPTION="Portable sound event library" |
28 |
+HOMEPAGE="http://0pointer.de/lennart/projects/libcanberra/" |
29 |
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.xz" |
30 |
+ |
31 |
+LICENSE="LGPL-2.1+" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris" |
34 |
+IUSE="alsa gnome gstreamer gtk2 +gtk3 oss pulseaudio +sound tdb udev" |
35 |
+ |
36 |
+DEPEND=" |
37 |
+ dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
38 |
+ media-libs/libvorbis[${MULTILIB_USEDEP}] |
39 |
+ alsa? ( |
40 |
+ media-libs/alsa-lib:=[${MULTILIB_USEDEP}] |
41 |
+ udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) ) |
42 |
+ gstreamer? ( media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] ) |
43 |
+ gtk2? ( |
44 |
+ >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}] |
45 |
+ >=x11-libs/gtk+-2.20.0:2[${MULTILIB_USEDEP}] |
46 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] ) |
47 |
+ gtk3? ( |
48 |
+ >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}] |
49 |
+ x11-libs/gtk+:3[X,${MULTILIB_USEDEP}] |
50 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] ) |
51 |
+ pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] ) |
52 |
+ tdb? ( sys-libs/tdb:=[${MULTILIB_USEDEP}] ) |
53 |
+" |
54 |
+RDEPEND="${DEPEND} |
55 |
+ gnome? ( |
56 |
+ gnome-base/dconf |
57 |
+ gnome-base/gsettings-desktop-schemas ) |
58 |
+ sound? ( x11-themes/sound-theme-freedesktop )" # Required for index.theme wrt #323379 |
59 |
+BDEPEND=" |
60 |
+ app-arch/xz-utils |
61 |
+ virtual/pkgconfig |
62 |
+" |
63 |
+ |
64 |
+REQUIRED_USE="udev? ( alsa )" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ # gtk: Don't assume all GdkDisplays are GdkX11Displays: broadway/wayland (from 'master') |
68 |
+ "${FILESDIR}/${PN}-0.30-wayland.patch" |
69 |
+) |
70 |
+ |
71 |
+multilib_src_configure() { |
72 |
+ ECONF_SOURCE="${S}" econf \ |
73 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
74 |
+ $(use_enable alsa) \ |
75 |
+ $(use_enable oss) \ |
76 |
+ $(use_enable pulseaudio pulse) \ |
77 |
+ $(use_enable gstreamer) \ |
78 |
+ $(use_enable gtk2 gtk) \ |
79 |
+ $(use_enable gtk3) \ |
80 |
+ $(use_enable tdb) \ |
81 |
+ $(use_enable udev) \ |
82 |
+ --disable-lynx \ |
83 |
+ --disable-gtk-doc \ |
84 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
85 |
+ |
86 |
+ if multilib_is_native_abi; then |
87 |
+ ln -s "${S}"/gtkdoc/html gtkdoc/html || die |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+multilib_src_install() { |
92 |
+ # Disable parallel installation until bug #253862 is solved |
93 |
+ emake DESTDIR="${D}" -j1 install |
94 |
+} |
95 |
+ |
96 |
+multilib_src_install_all() { |
97 |
+ einstalldocs |
98 |
+ find "${ED}" -type f -name '*.la' -delete || die |
99 |
+ |
100 |
+ # This is needed for desktops different than GNOME, bug #520550 |
101 |
+ exeinto /etc/X11/xinit/xinitrc.d |
102 |
+ newexe "${FILESDIR}"/libcanberra-gtk-module.sh 40-libcanberra-gtk-module |
103 |
+} |