media-sound/pianobooster: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Sun, 30 Apr 2017 22:00:06 +0000 (00:00 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 30 Apr 2017 22:07:06 +0000 (00:07 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

media-sound/pianobooster/files/pianobooster-0.6.4b-cmake.patch
media-sound/pianobooster/files/pianobooster-0.6.4b-gcc47.patch
media-sound/pianobooster/files/pianobooster-0.6.4b-underlinking.patch
media-sound/pianobooster/pianobooster-0.6.4b.ebuild

index 8cdd8738e2b302b54cf29f13defea7e0aca3375a..6808c77d6e612ed219a8ef9f2149e3d394b93843 100644 (file)
@@ -1,5 +1,5 @@
---- pianobooster-src-0.6.4b/src/CMakeLists.txt.orig
-+++ pianobooster-src-0.6.4b/src/CMakeLists.txt
+--- a/CMakeLists.txt.orig
++++ b/CMakeLists.txt
 @@ -2,12 +2,6 @@
  # for the debug build type cmake -DCMAKE_BUILD_TYPE=Debug\r
  SET(CMAKE_BUILD_TYPE Release)\r
index 2b1b28c5a849bdaff08340ee87baef88b00834a9..101809716d33a6d4794c3cef7423725d4296fceb 100644 (file)
@@ -1,5 +1,5 @@
---- pianobooster-src-0.6.4b/src/CMakeLists.txt.orig    2013-04-06 10:48:02.469532914 -0700
-+++ pianobooster-src-0.6.4b/src/CMakeLists.txt 2013-04-06 10:48:12.989532445 -0700
+--- a/CMakeLists.txt.orig      2013-04-06 10:48:02.469532914 -0700
++++ b/CMakeLists.txt   2013-04-06 10:48:12.989532445 -0700
 @@ -203,8 +203,6 @@
          ${PIANOBOOSTER_UI_HDRS} )\r
  ENDIF(WIN32)\r
index 37720e534a3d935c2bc3c69945dd55e8f2419aa0..c462ca016aa33cd9345c52309b2bdce2620545b9 100644 (file)
@@ -2,8 +2,8 @@ Fix build failure caused by underlinking.
 
 Gentoo-bug: 369697
 
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -57,6 +57,8 @@
      #IF(ALSA_FOUND)\r
          ADD_DEFINITIONS(-D__LINUX_ALSASEQ__)\r
index 5b72ba44adb1cb65a4220685e670b2841218b62f..ca211b2aa50a7b36f52adf43cd78268c9f50a9cb 100644 (file)
@@ -1,11 +1,12 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=6
 
 inherit cmake-utils
 
 MY_P=${PN}-src-${PV}
+
 DESCRIPTION="A MIDI file player that teaches how to play the piano"
 HOMEPAGE="http://pianobooster.sourceforge.net"
 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
@@ -23,20 +24,18 @@ DEPEND="fluidsynth? ( media-sound/fluidsynth )
        dev-qt/qtopengl:4"
 RDEPEND="${DEPEND}"
 
-DOCS="ReleaseNote.txt ../README.txt"
-
 PATCHES=(
        "${FILESDIR}"/${P}-cmake.patch
        "${FILESDIR}"/${P}-gcc47.patch
        "${FILESDIR}"/${P}-underlinking.patch
 )
+DOCS=( ReleaseNote.txt ../README.txt )
 
 S=${WORKDIR}/${MY_P}/src
 
 src_configure() {
-       mycmakeargs=(
-               $(cmake-utils_use_use fluidsynth)
+       local mycmakeargs=(
+               -DUSE_FLUIDSYNTH=$(usex fluidsynth)
        )
-
        cmake-utils_src_configure
 }