media-libs/portmidi: [QA] Add cmake-utils_src_prepare
authorDavid Seifert <soap@gentoo.org>
Sat, 18 Nov 2017 20:48:03 +0000 (21:48 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 19 Nov 2017 09:11:51 +0000 (10:11 +0100)
Closes: https://bugs.gentoo.org/637358
Package-Manager: Portage-2.3.14, Repoman-2.3.6

media-libs/portmidi/portmidi-217-r1.ebuild

index 1542a98315c7a4a6c5a04c7e8dfd86b3a2e0c0c6..b08b58ff44ccf7c0b023841ef66a43bd0a067946 100644 (file)
@@ -37,17 +37,21 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 S=${WORKDIR}/${PN}
 
+PATCHES=(
+       # fix parallel make failures, fix java support, and allow optional
+       # components like test programs and static libs to be skipped
+       "${FILESDIR}"/${P}-cmake.patch
+
+       # add include directories and remove references to missing files
+       "${FILESDIR}"/${P}-python.patch
+)
+
 pkg_setup() {
        use java && java-pkg-opt-2_pkg_setup
 }
 
 src_prepare() {
-       # fix parallel make failures, fix java support, and allow optional
-       # components like test programs and static libs to be skipped
-       epatch "${FILESDIR}"/${P}-cmake.patch
-
-       # add include directories and remove references to missing files
-       epatch "${FILESDIR}"/${P}-python.patch
+       cmake-utils_src_prepare
 
        # install wrapper for pmdefaults
        if use java ; then