media-sound/csound: Restrict to <media-sound/fluidsynth-2
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 1 Aug 2019 21:25:56 +0000 (23:25 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 1 Aug 2019 21:36:22 +0000 (23:36 +0200)
Bug: https://bugs.gentoo.org/659400
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-sound/csound/csound-6.10.0.ebuild

index 185ce6f382b4b79d99ce358fff1764afde209054..2c61ca708be868f1a7da6d6a9a05bd961e31245f 100644 (file)
@@ -53,7 +53,7 @@ RDEPEND="
                media-libs/dssi
                media-libs/ladspa-sdk
        )
-       fluidsynth? ( media-sound/fluidsynth:= )
+       fluidsynth? ( <media-sound/fluidsynth-2:= )
        fltk? ( x11-libs/fltk:1[threads?] )
        image? ( media-libs/libpng:0= )
        jack? ( media-sound/jack-audio-connection-kit )
@@ -111,6 +111,9 @@ pkg_setup() {
 src_prepare() {
        cmake-utils_src_prepare
 
+       has_version ">=media-sound/fluidsynth-2" &&
+               eapply "${FILESDIR}/${P}-fluidsynth2.patch" # 680062
+
        sed -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' \
                -e '/-O3/d' \
                -i CMakeLists.txt || die