diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-04-16 21:21:48 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-04-16 21:36:53 +0200 |
commit | 842ddf8b02284b037ee18088ce5935bf2065a8bc (patch) | |
tree | f3229b4aaa0f6a5a128c1c874b0d6fd6dad812e6 /kde-apps/libkcompactdisc | |
parent | dev-ml/ppx_optcomp: add missing dev-lang/ocaml:= dep, bug #615768 (diff) | |
download | gentoo-842ddf8b02284b037ee18088ce5935bf2065a8bc.tar.gz gentoo-842ddf8b02284b037ee18088ce5935bf2065a8bc.tar.bz2 gentoo-842ddf8b02284b037ee18088ce5935bf2065a8bc.zip |
kde-apps/libkcompactdisc: Restore linking to media-libs/alsa-lib
At the same time, fix USE=-alsa
Gentoo-bug: 615776
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'kde-apps/libkcompactdisc')
-rw-r--r-- | kde-apps/libkcompactdisc/files/libkcompactdisc-16.12.3-no-alsa.patch | 22 | ||||
-rw-r--r-- | kde-apps/libkcompactdisc/libkcompactdisc-16.12.3-r1.ebuild | 33 |
2 files changed, 55 insertions, 0 deletions
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 new file mode 100644 index 000000000000..3fceacc9e3fc --- /dev/null +++ b/kde-apps/libkcompactdisc/files/libkcompactdisc-16.12.3-no-alsa.patch @@ -0,0 +1,22 @@ +commit 6509952dd6eff48d608a0e4124fa771bfaf53b53 +Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> +Date: Sun Apr 16 21:09:55 2017 +0200 + + Fix build without ALSA again + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 30e6a98..fb79bdd 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -7,7 +7,10 @@ if(CMAKE_COMPILER_IS_GNUCXX) + endif() + + find_package(Alsa) +-alsa_configure_file(${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h) ++if(ALSA_FOUND) ++ alsa_configure_file(${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h) ++ add_definitions(-DHAVE_LIBASOUND2) ++endif(ALSA_FOUND) + + set(wmlib_audio_SRCS + wmlib/audio/audio.c diff --git a/kde-apps/libkcompactdisc/libkcompactdisc-16.12.3-r1.ebuild b/kde-apps/libkcompactdisc/libkcompactdisc-16.12.3-r1.ebuild new file mode 100644 index 000000000000..fd4684fa6a7f --- /dev/null +++ b/kde-apps/libkcompactdisc/libkcompactdisc-16.12.3-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +KDE_BLOCK_SLOT4="false" +inherit kde5 + +DESCRIPTION="Library for playing & ripping CDs" +LICENSE="GPL-2+ LGPL-2+" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="alsa" + +RDEPEND=" + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep solid) + $(add_qt_dep qtdbus) + media-libs/phonon[qt5] + alsa? ( media-libs/alsa-lib ) +" +DEPEND="${RDEPEND} + $(add_frameworks_dep kdelibs4support) +" + +PATCHES=( "${FILESDIR}/${P}-no-alsa.patch" ) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package alsa Alsa) + ) + kde5_src_configure +} |