Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/libkcompactdisc/, kde-apps/libkcompactdisc/files/
Date: Sun, 16 Apr 2017 19:37:06
Message-Id: 1492371413.842ddf8b02284b037ee18088ce5935bf2065a8bc.asturm@gentoo
1 commit: 842ddf8b02284b037ee18088ce5935bf2065a8bc
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 16 19:21:48 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 16 19:36:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=842ddf8b
7
8 kde-apps/libkcompactdisc: Restore linking to media-libs/alsa-lib
9
10 At the same time, fix USE=-alsa
11
12 Gentoo-bug: 615776
13
14 Package-Manager: Portage-2.3.3, Repoman-2.3.1
15
16 .../files/libkcompactdisc-16.12.3-no-alsa.patch | 22 +++++++++++++++
17 .../libkcompactdisc-16.12.3-r1.ebuild | 33 ++++++++++++++++++++++
18 2 files changed, 55 insertions(+)
19
20 diff --git a/kde-apps/libkcompactdisc/files/libkcompactdisc-16.12.3-no-alsa.patch b/kde-apps/libkcompactdisc/files/libkcompactdisc-16.12.3-no-alsa.patch
21 new file mode 100644
22 index 00000000000..3fceacc9e3f
23 --- /dev/null
24 +++ b/kde-apps/libkcompactdisc/files/libkcompactdisc-16.12.3-no-alsa.patch
25 @@ -0,0 +1,22 @@
26 +commit 6509952dd6eff48d608a0e4124fa771bfaf53b53
27 +Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
28 +Date: Sun Apr 16 21:09:55 2017 +0200
29 +
30 + Fix build without ALSA again
31 +
32 +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
33 +index 30e6a98..fb79bdd 100644
34 +--- a/src/CMakeLists.txt
35 ++++ b/src/CMakeLists.txt
36 +@@ -7,7 +7,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
37 + endif()
38 +
39 + find_package(Alsa)
40 +-alsa_configure_file(${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
41 ++if(ALSA_FOUND)
42 ++ alsa_configure_file(${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
43 ++ add_definitions(-DHAVE_LIBASOUND2)
44 ++endif(ALSA_FOUND)
45 +
46 + set(wmlib_audio_SRCS
47 + wmlib/audio/audio.c
48
49 diff --git a/kde-apps/libkcompactdisc/libkcompactdisc-16.12.3-r1.ebuild b/kde-apps/libkcompactdisc/libkcompactdisc-16.12.3-r1.ebuild
50 new file mode 100644
51 index 00000000000..fd4684fa6a7
52 --- /dev/null
53 +++ b/kde-apps/libkcompactdisc/libkcompactdisc-16.12.3-r1.ebuild
54 @@ -0,0 +1,33 @@
55 +# Copyright 1999-2017 Gentoo Foundation
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=6
59 +
60 +KDE_BLOCK_SLOT4="false"
61 +inherit kde5
62 +
63 +DESCRIPTION="Library for playing & ripping CDs"
64 +LICENSE="GPL-2+ LGPL-2+"
65 +KEYWORDS="~amd64 ~arm ~x86"
66 +IUSE="alsa"
67 +
68 +RDEPEND="
69 + $(add_frameworks_dep kcoreaddons)
70 + $(add_frameworks_dep ki18n)
71 + $(add_frameworks_dep solid)
72 + $(add_qt_dep qtdbus)
73 + media-libs/phonon[qt5]
74 + alsa? ( media-libs/alsa-lib )
75 +"
76 +DEPEND="${RDEPEND}
77 + $(add_frameworks_dep kdelibs4support)
78 +"
79 +
80 +PATCHES=( "${FILESDIR}/${P}-no-alsa.patch" )
81 +
82 +src_configure() {
83 + local mycmakeargs=(
84 + $(cmake-utils_use_find_package alsa Alsa)
85 + )
86 + kde5_src_configure
87 +}