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