From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E7232158094 for ; Mon, 29 Aug 2022 21:13:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 937F5E0877; Mon, 29 Aug 2022 21:13:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 797B7E0877 for ; Mon, 29 Aug 2022 21:13:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 87644341002 for ; Mon, 29 Aug 2022 21:13:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA3E858D for ; Mon, 29 Aug 2022 21:13:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1661807569.0c4fa0909a8ff4cf6e295d67fe4ec7c5f573cb10.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libcanberra/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libcanberra/libcanberra-0.30-r7.ebuild X-VCS-Directories: media-libs/libcanberra/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0c4fa0909a8ff4cf6e295d67fe4ec7c5f573cb10 X-VCS-Branch: master Date: Mon, 29 Aug 2022 21:13:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 157bdf3b-955a-4fb2-ab04-160abed9971a X-Archives-Hash: edad3da8893d95e4748484c5216063d6 commit: 0c4fa0909a8ff4cf6e295d67fe4ec7c5f573cb10 Author: Sam James gentoo org> AuthorDate: Mon Aug 29 21:12:49 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 29 21:12:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c4fa090 media-libs/libcanberra: migrate to libpulse dep Signed-off-by: Sam James gentoo.org> media-libs/libcanberra/libcanberra-0.30-r7.ebuild | 83 +++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/media-libs/libcanberra/libcanberra-0.30-r7.ebuild b/media-libs/libcanberra/libcanberra-0.30-r7.ebuild new file mode 100644 index 000000000000..9cd8f36ea291 --- /dev/null +++ b/media-libs/libcanberra/libcanberra-0.30-r7.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit multilib-minimal systemd + +DESCRIPTION="Portable sound event library" +HOMEPAGE="http://0pointer.de/lennart/projects/libcanberra/" +SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.xz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris" +IUSE="alsa gnome gstreamer gtk2 +gtk3 oss pulseaudio +sound tdb udev" + +DEPEND=" + dev-libs/libltdl:0[${MULTILIB_USEDEP}] + media-libs/libvorbis[${MULTILIB_USEDEP}] + alsa? ( + media-libs/alsa-lib:=[${MULTILIB_USEDEP}] + udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) ) + gstreamer? ( media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] ) + gtk2? ( + >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}] + >=x11-libs/gtk+-2.20.0:2[${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] ) + gtk3? ( + >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}] + x11-libs/gtk+:3[X,${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] ) + pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] ) + tdb? ( sys-libs/tdb:=[${MULTILIB_USEDEP}] ) +" +RDEPEND="${DEPEND} + gnome? ( + gnome-base/dconf + gnome-base/gsettings-desktop-schemas ) + sound? ( x11-themes/sound-theme-freedesktop )" # Required for index.theme wrt #323379 +BDEPEND=" + app-arch/xz-utils + virtual/pkgconfig +" + +REQUIRED_USE="udev? ( alsa )" + +PATCHES=( + # gtk: Don't assume all GdkDisplays are GdkX11Displays: broadway/wayland (from 'master') + "${FILESDIR}/${PN}-0.30-wayland.patch" +) + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable alsa) \ + $(use_enable oss) \ + $(use_enable pulseaudio pulse) \ + $(use_enable gstreamer) \ + $(use_enable gtk2 gtk) \ + $(use_enable gtk3) \ + $(use_enable tdb) \ + $(use_enable udev) \ + --disable-lynx \ + --disable-gtk-doc \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" + + if multilib_is_native_abi; then + ln -s "${S}"/gtkdoc/html gtkdoc/html || die + fi +} + +multilib_src_install() { + # Disable parallel installation until bug #253862 is solved + emake DESTDIR="${D}" -j1 install +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -type f -name '*.la' -delete || die + + # This is needed for desktops different than GNOME, bug #520550 + exeinto /etc/X11/xinit/xinitrc.d + newexe "${FILESDIR}"/libcanberra-gtk-module.sh 40-libcanberra-gtk-module +}