Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/alure/files/, media-libs/alure/
Date: Sun, 05 Jun 2016 16:34:13
Message-Id: 1465144434.937a0fe10289f67201f7384ef57b0a833e9a1cea.kensington@gentoo
1 commit: 937a0fe10289f67201f7384ef57b0a833e9a1cea
2 Author: Joshua Clayton <stillcompiling <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 5 16:32:52 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 5 16:33:54 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=937a0fe1
7
8 media-libs/alure: add patch to fix build with USE="fluidsynth"
9
10 Gentoo-bug: 500164
11
12 Package-Manager: portage-2.3.0_rc1
13
14 media-libs/alure/alure-1.2.ebuild | 5 +++--
15 media-libs/alure/files/alure-1.2-include-unistd.patch | 13 +++++++++++++
16 2 files changed, 16 insertions(+), 2 deletions(-)
17
18 diff --git a/media-libs/alure/alure-1.2.ebuild b/media-libs/alure/alure-1.2.ebuild
19 index 3d694ae..8f07f4e 100644
20 --- a/media-libs/alure/alure-1.2.ebuild
21 +++ b/media-libs/alure/alure-1.2.ebuild
22 @@ -1,9 +1,9 @@
23 -# Copyright 1999-2012 Gentoo Foundation
24 +# Copyright 1999-2016 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 # $Id$
27
28 EAPI=4
29 -inherit cmake-utils
30 +inherit cmake-utils eutils
31
32 DESCRIPTION="The OpenAL Utility Toolkit"
33 HOMEPAGE="http://kcat.strangesoft.net/alure.html"
34 @@ -24,6 +24,7 @@ RDEPEND=">=media-libs/openal-1.1
35 DEPEND="${RDEPEND}"
36
37 src_prepare() {
38 + epatch "${FILESDIR}/${P}-include-unistd.patch"
39 sed -i -e "/DESTINATION/s:doc/alure:doc/${PF}:" CMakeLists.txt || die
40 }
41
42
43 diff --git a/media-libs/alure/files/alure-1.2-include-unistd.patch b/media-libs/alure/files/alure-1.2-include-unistd.patch
44 new file mode 100644
45 index 0000000..b2db3dc
46 --- /dev/null
47 +++ b/media-libs/alure/files/alure-1.2-include-unistd.patch
48 @@ -0,0 +1,13 @@
49 +Gentoo-bug: 500164
50 +
51 +--- a/src/codec_fluidsynth.cpp
52 ++++ b/src/codec_fluidsynth.cpp
53 +@@ -30,6 +30,8 @@
54 + #ifdef _WIN32
55 + #include <io.h>
56 ++#else
57 ++#include <unistd.h>
58 + #endif
59 +
60 + #include <istream>
61 +