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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ED2A6138334 for ; Sun, 24 Nov 2019 11:10:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F5B8E0798; Sun, 24 Nov 2019 11:10:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06A1DE0798 for ; Sun, 24 Nov 2019 11:10:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 955F134D2B4 for ; Sun, 24 Nov 2019 11:10:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 791978B5 for ; Sun, 24 Nov 2019 11:10:40 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1574593836.5cda3e88379fa65ba0843ce4280ff1cfd51b68db.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libao/, media-libs/libao/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libao/files/libao-1.2.2-implicit.patch media-libs/libao/libao-1.2.2-r1.ebuild X-VCS-Directories: media-libs/libao/files/ media-libs/libao/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 5cda3e88379fa65ba0843ce4280ff1cfd51b68db X-VCS-Branch: master Date: Sun, 24 Nov 2019 11:10:40 +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: 26174117-1d45-4c6b-b523-1b846012eb5c X-Archives-Hash: dc91ef9362c9d6e943540821901d07fa commit: 5cda3e88379fa65ba0843ce4280ff1cfd51b68db Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Nov 24 11:09:50 2019 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Nov 24 11:10:36 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cda3e88 media-libs/libao: backport nanosleep() declaration Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich gentoo.org> media-libs/libao/files/libao-1.2.2-implicit.patch | 22 +++++++++ media-libs/libao/libao-1.2.2-r1.ebuild | 57 +++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/media-libs/libao/files/libao-1.2.2-implicit.patch b/media-libs/libao/files/libao-1.2.2-implicit.patch new file mode 100644 index 00000000000..92542c802d0 --- /dev/null +++ b/media-libs/libao/files/libao-1.2.2-implicit.patch @@ -0,0 +1,22 @@ +From 1f998f5d6d77674dad01b181811638578ad68242 Mon Sep 17 00:00:00 2001 +From: Tristan Matthews +Date: Sun, 15 Jan 2017 12:15:07 -0500 +Subject: [PATCH] pulse: fix missing include warning for nanosleep + +--- + src/plugins/pulse/ao_pulse.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/src/plugins/pulse/ao_pulse.c ++++ b/src/plugins/pulse/ao_pulse.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + + #include +-- +2.24.0 + diff --git a/media-libs/libao/libao-1.2.2-r1.ebuild b/media-libs/libao/libao-1.2.2-r1.ebuild new file mode 100644 index 00000000000..d03e0147608 --- /dev/null +++ b/media-libs/libao/libao-1.2.2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools libtool multilib multilib-minimal + +DESCRIPTION="The Audio Output library" +HOMEPAGE="https://www.xiph.org/ao/" +#SRC_URI="https://downloads.xiph.org/releases/ao/${P}.tar.gz" +#SRC_URI="https://git.xiph.org/?p=libao.git;a=snapshot;h=refs/tags/${PV};sf=tgz -> ${P}.tar.gz" +SRC_URI="https://github.com/xiph/libao/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +IUSE="alsa nas mmap pulseaudio static-libs" + +RDEPEND=" + alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) + nas? ( >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] ) + pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-implicit.patch +) + +src_prepare() { + default + sed -i "s:/lib:/$(get_libdir):g" ao.m4 || die + eautoreconf +} + +multilib_src_configure() { + local myeconfargs=( + --disable-arts + --disable-esd + $(use_enable alsa alsa) + $(use_enable mmap alsa-mmap) + $(use_enable nas) + $(use_enable pulseaudio pulse) + $(use_enable static-libs static) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install() { + emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}/html" install +} + +multilib_src_install_all() { + dodoc AUTHORS CHANGES README TODO + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die +}